@automovie/evidence 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -92
- package/lib/IAutoMovieDevelopmentProps.d.ts +26 -20
- package/lib/IAutoMovieEvidenceConfigProps.d.ts +19 -18
- package/lib/IAutoMovieNarrativeProps.d.ts +10 -8
- package/lib/IAutoMovieNoNarrativeProps.d.ts +4 -6
- package/lib/createDevelopmentContractClaims.d.ts +16 -26
- package/lib/createDevelopmentContractClaims.js +45 -30
- package/lib/createDevelopmentContractClaims.js.map +1 -1
- package/lib/createEngineeringClaims.d.ts +16 -21
- package/lib/createEngineeringClaims.js +15 -20
- package/lib/createEngineeringClaims.js.map +1 -1
- package/lib/createEvidenceConfig.d.ts +7 -11
- package/lib/createEvidenceConfig.js +34 -12
- package/lib/createEvidenceConfig.js.map +1 -1
- package/lib/createResearchClaims.d.ts +5 -13
- package/lib/createResearchClaims.js +6 -14
- package/lib/createResearchClaims.js.map +1 -1
- package/lib/internal/IContractLocation.d.ts +6 -7
- package/lib/internal/PRODUCTION_CONTRACTS.d.ts +14 -7
- package/lib/internal/PRODUCTION_CONTRACTS.js +14 -7
- package/lib/internal/PRODUCTION_CONTRACTS.js.map +1 -1
- package/lib/internal/SKILLS_ROOT.d.ts +13 -7
- package/lib/internal/SKILLS_ROOT.js +13 -7
- package/lib/internal/SKILLS_ROOT.js.map +1 -1
- package/lib/internal/STORY_CONTRACTS.d.ts +12 -9
- package/lib/internal/STORY_CONTRACTS.js +12 -9
- package/lib/internal/STORY_CONTRACTS.js.map +1 -1
- package/lib/internal/assertFilmCatalogLayout.d.ts +12 -0
- package/lib/internal/assertFilmCatalogLayout.js +144 -0
- package/lib/internal/assertFilmCatalogLayout.js.map +1 -0
- package/lib/internal/assertProductionContractLayout.d.ts +2 -10
- package/lib/internal/assertProductionContractLayout.js +2 -10
- package/lib/internal/assertProductionContractLayout.js.map +1 -1
- package/lib/internal/createReferenceRoot.d.ts +0 -8
- package/lib/internal/createReferenceRoot.js +0 -8
- package/lib/internal/createReferenceRoot.js.map +1 -1
- package/lib/internal/hasMatchingFile.d.ts +5 -0
- package/lib/internal/hasMatchingFile.js +20 -0
- package/lib/internal/hasMatchingFile.js.map +1 -0
- package/lib/internal/resolveSkillsDirectory.d.ts +2 -9
- package/lib/internal/resolveSkillsDirectory.js +2 -9
- package/lib/internal/resolveSkillsDirectory.js.map +1 -1
- package/lib/narrative/AuthoredLayer.d.ts +2 -6
- package/lib/narrative/EvidenceMetadataRewriteOwnership.d.ts +0 -5
- package/lib/narrative/IEvidenceMetadataRenderedSample.d.ts +1 -8
- package/lib/narrative/IEvidenceMetadataRewriteFile.d.ts +1 -8
- package/lib/narrative/IEvidenceMetadataRewriteProps.d.ts +1 -8
- package/lib/narrative/IEvidenceMetadataRewriteReport.d.ts +1 -8
- package/lib/narrative/IPackageChecklistClaimProps.d.ts +2 -7
- package/lib/narrative/IPackageContractProps.d.ts +4 -11
- package/lib/narrative/IPackagePopulationContractProps.d.ts +1 -8
- package/lib/narrative/IProductionConfigProps.d.ts +7 -11
- package/lib/narrative/IProductionConstruction.d.ts +3 -10
- package/lib/narrative/NarrativeLayer.d.ts +3 -8
- package/lib/narrative/NarrativeScope.d.ts +2 -7
- package/lib/narrative/ProductionStage.d.ts +2 -6
- package/lib/narrative/createBriefFiles.d.ts +5 -12
- package/lib/narrative/createBriefFiles.js +5 -12
- package/lib/narrative/createBriefFiles.js.map +1 -1
- package/lib/narrative/createNarrativeUnitFiles.d.ts +0 -8
- package/lib/narrative/createNarrativeUnitFiles.js +0 -8
- package/lib/narrative/createNarrativeUnitFiles.js.map +1 -1
- package/lib/narrative/createPackageChecklistClaim.d.ts +3 -11
- package/lib/narrative/createPackageChecklistClaim.js +5 -15
- package/lib/narrative/createPackageChecklistClaim.js.map +1 -1
- package/lib/narrative/createPackageContract.d.ts +0 -8
- package/lib/narrative/createPackageContract.js +0 -8
- package/lib/narrative/createPackageContract.js.map +1 -1
- package/lib/narrative/createPackagePopulationContract.d.ts +3 -11
- package/lib/narrative/createPackagePopulationContract.js +3 -11
- package/lib/narrative/createPackagePopulationContract.js.map +1 -1
- package/lib/narrative/createProductionClaims.d.ts +0 -8
- package/lib/narrative/createProductionClaims.js +0 -8
- package/lib/narrative/createProductionClaims.js.map +1 -1
- package/lib/narrative/createProductionConfig.d.ts +1 -11
- package/lib/narrative/createProductionConfig.js +1 -11
- package/lib/narrative/createProductionConfig.js.map +1 -1
- package/lib/narrative/createSettingsFiles.d.ts +0 -8
- package/lib/narrative/createSettingsFiles.js +0 -8
- package/lib/narrative/createSettingsFiles.js.map +1 -1
- package/lib/narrative/internal/AUTHORED_LAYERS.d.ts +14 -7
- package/lib/narrative/internal/AUTHORED_LAYERS.js +14 -7
- package/lib/narrative/internal/AUTHORED_LAYERS.js.map +1 -1
- package/lib/narrative/internal/claims/createDiscoveryClaim.d.ts +17 -22
- package/lib/narrative/internal/claims/createDiscoveryClaim.js +17 -22
- package/lib/narrative/internal/claims/createDiscoveryClaim.js.map +1 -1
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.d.ts +7 -15
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js +7 -15
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js.map +1 -1
- package/lib/narrative/internal/claims/createLayerClaims.d.ts +2 -10
- package/lib/narrative/internal/claims/createLayerClaims.js +2 -28
- package/lib/narrative/internal/claims/createLayerClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createOutlineClaims.d.ts +6 -14
- package/lib/narrative/internal/claims/createOutlineClaims.js +9 -18
- package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +4 -14
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js +10 -36
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createReviewClaims.d.ts +11 -19
- package/lib/narrative/internal/claims/createReviewClaims.js +57 -56
- package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +1 -9
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js +1 -9
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js.map +1 -1
- package/lib/narrative/internal/claims/index.d.ts +0 -1
- package/lib/narrative/internal/claims/index.js +0 -1
- package/lib/narrative/internal/claims/index.js.map +1 -1
- package/lib/narrative/internal/collectProductionClaims.d.ts +1 -11
- package/lib/narrative/internal/collectProductionClaims.js +2 -15
- package/lib/narrative/internal/collectProductionClaims.js.map +1 -1
- package/lib/narrative/internal/constructionStage.d.ts +2 -9
- package/lib/narrative/internal/constructionStage.js +2 -9
- package/lib/narrative/internal/constructionStage.js.map +1 -1
- package/lib/narrative/internal/createGraphConfig.d.ts +4 -12
- package/lib/narrative/internal/createGraphConfig.js +4 -12
- package/lib/narrative/internal/createGraphConfig.js.map +1 -1
- package/lib/narrative/internal/index.d.ts +0 -1
- package/lib/narrative/internal/index.js +0 -1
- package/lib/narrative/internal/index.js.map +1 -1
- package/lib/narrative/internal/isCanonLayer.d.ts +2 -9
- package/lib/narrative/internal/isCanonLayer.js +2 -9
- package/lib/narrative/internal/isCanonLayer.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.d.ts +10 -7
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js +10 -7
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/EvidenceDeclarationKind.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.d.ts +10 -7
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js +10 -7
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.d.ts +10 -7
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js +10 -7
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/IEvidenceHeading.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/IEvidenceSection.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/IMetadataFragment.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/IProjectionSegment.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/IProtectedProjection.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/REVIEW.d.ts +11 -7
- package/lib/narrative/internal/metadataRewrite/REVIEW.js +11 -7
- package/lib/narrative/internal/metadataRewrite/REVIEW.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.d.ts +13 -8
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js +13 -8
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/UTF8.d.ts +10 -7
- package/lib/narrative/internal/metadataRewrite/UTF8.js +10 -7
- package/lib/narrative/internal/metadataRewrite/UTF8.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/between.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/between.js +1 -11
- package/lib/narrative/internal/metadataRewrite/between.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/continuation.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/continuation.js +1 -11
- package/lib/narrative/internal/metadataRewrite/continuation.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/declarationKind.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/declarationKind.js +1 -11
- package/lib/narrative/internal/metadataRewrite/declarationKind.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/decode.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/decode.js +1 -11
- package/lib/narrative/internal/metadataRewrite/decode.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/directory.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/directory.js +1 -11
- package/lib/narrative/internal/metadataRewrite/directory.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/errorMessage.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/errorMessage.js +1 -11
- package/lib/narrative/internal/metadataRewrite/errorMessage.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.js +1 -11
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/evidenceSections.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/evidenceSections.js +1 -11
- package/lib/narrative/internal/metadataRewrite/evidenceSections.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/findClose.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/findClose.js +1 -11
- package/lib/narrative/internal/metadataRewrite/findClose.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/firstDifference.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/firstDifference.js +1 -11
- package/lib/narrative/internal/metadataRewrite/firstDifference.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.d.ts +2 -9
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js +2 -9
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js +1 -11
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/isDeclaration.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/isDeclaration.js +1 -11
- package/lib/narrative/internal/metadataRewrite/isDeclaration.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/isNodeError.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/isNodeError.js +1 -11
- package/lib/narrative/internal/metadataRewrite/isNodeError.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/lineEnding.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/lineEnding.js +1 -11
- package/lib/narrative/internal/metadataRewrite/lineEnding.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/locate.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/locate.js +1 -11
- package/lib/narrative/internal/metadataRewrite/locate.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/markdownFiles.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/markdownFiles.js +1 -11
- package/lib/narrative/internal/metadataRewrite/markdownFiles.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.js +1 -11
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/normalizeFile.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/normalizeFile.js +1 -11
- package/lib/narrative/internal/metadataRewrite/normalizeFile.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js +1 -11
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/occurrences.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/occurrences.js +1 -11
- package/lib/narrative/internal/metadataRewrite/occurrences.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/originalOffset.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/originalOffset.js +1 -11
- package/lib/narrative/internal/metadataRewrite/originalOffset.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/project.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/project.js +1 -11
- package/lib/narrative/internal/metadataRewrite/project.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.js +1 -11
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/replacementSafety.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/replacementSafety.js +1 -11
- package/lib/narrative/internal/metadataRewrite/replacementSafety.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/sameMetadata.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/sameMetadata.js +1 -11
- package/lib/narrative/internal/metadataRewrite/sameMetadata.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/selectFiles.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/selectFiles.js +1 -11
- package/lib/narrative/internal/metadataRewrite/selectFiles.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js +1 -11
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/textLocation.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/textLocation.js +1 -11
- package/lib/narrative/internal/metadataRewrite/textLocation.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js +1 -11
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/withoutEnding.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/withoutEnding.js +1 -11
- package/lib/narrative/internal/metadataRewrite/withoutEnding.js.map +1 -1
- package/lib/narrative/internal/productionLayers.d.ts +1 -11
- package/lib/narrative/internal/productionLayers.js +1 -11
- package/lib/narrative/internal/productionLayers.js.map +1 -1
- package/lib/narrative/internal/readSettingsFiles.d.ts +4 -12
- package/lib/narrative/internal/readSettingsFiles.js +8 -13
- package/lib/narrative/internal/readSettingsFiles.js.map +1 -1
- package/lib/narrative/internal/references/createCoverageReference.d.ts +2 -10
- package/lib/narrative/internal/references/createCoverageReference.js +2 -10
- package/lib/narrative/internal/references/createCoverageReference.js.map +1 -1
- package/lib/narrative/internal/references/createDiscoveryReferences.d.ts +5 -13
- package/lib/narrative/internal/references/createDiscoveryReferences.js +5 -13
- package/lib/narrative/internal/references/createDiscoveryReferences.js.map +1 -1
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.d.ts +1 -11
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js +1 -11
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js.map +1 -1
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.d.ts +3 -13
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +4 -13
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js.map +1 -1
- package/lib/narrative/internal/references/createLineageReference.d.ts +6 -14
- package/lib/narrative/internal/references/createLineageReference.js +6 -14
- package/lib/narrative/internal/references/createLineageReference.js.map +1 -1
- package/lib/narrative/internal/references/createLocalContractReference.d.ts +0 -8
- package/lib/narrative/internal/references/createLocalContractReference.js +0 -8
- package/lib/narrative/internal/references/createLocalContractReference.js.map +1 -1
- package/lib/narrative/internal/references/createPrincipleReferences.d.ts +2 -21
- package/lib/narrative/internal/references/createPrincipleReferences.js +6 -35
- package/lib/narrative/internal/references/createPrincipleReferences.js.map +1 -1
- package/lib/narrative/internal/references/createSettingReferences.d.ts +3 -10
- package/lib/narrative/internal/references/createSettingReferences.js +3 -10
- package/lib/narrative/internal/references/createSettingReferences.js.map +1 -1
- package/lib/narrative/internal/references/createSharedReference.d.ts +7 -16
- package/lib/narrative/internal/references/createSharedReference.js +8 -17
- package/lib/narrative/internal/references/createSharedReference.js.map +1 -1
- package/lib/narrative/internal/references/createUpstreamReference.d.ts +0 -8
- package/lib/narrative/internal/references/createUpstreamReference.js +0 -8
- package/lib/narrative/internal/references/createUpstreamReference.js.map +1 -1
- package/lib/narrative/internal/references/layerFiles.d.ts +4 -13
- package/lib/narrative/internal/references/layerFiles.js +5 -15
- package/lib/narrative/internal/references/layerFiles.js.map +1 -1
- package/lib/narrative/internal/settingsEntryAnchor.d.ts +2 -9
- package/lib/narrative/internal/settingsEntryAnchor.js +2 -9
- package/lib/narrative/internal/settingsEntryAnchor.js.map +1 -1
- package/lib/narrative/internal/topology/createTopologyFiles.d.ts +1 -11
- package/lib/narrative/internal/topology/createTopologyFiles.js +1 -11
- package/lib/narrative/internal/topology/createTopologyFiles.js.map +1 -1
- package/lib/narrative/internal/utilities/BODY_ROOT.d.ts +14 -7
- package/lib/narrative/internal/utilities/BODY_ROOT.js +14 -7
- package/lib/narrative/internal/utilities/BODY_ROOT.js.map +1 -1
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.d.ts +15 -7
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js +15 -7
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js.map +1 -1
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.d.ts +2 -9
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js +2 -9
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js.map +1 -1
- package/lib/narrative/internal/utilities/createContractDirectory.d.ts +4 -10
- package/lib/narrative/internal/utilities/createContractDirectory.js +4 -10
- package/lib/narrative/internal/utilities/createContractDirectory.js.map +1 -1
- package/lib/narrative/internal/utilities/createContractRoot.d.ts +8 -18
- package/lib/narrative/internal/utilities/createContractRoot.js +8 -18
- package/lib/narrative/internal/utilities/createContractRoot.js.map +1 -1
- package/lib/narrative/internal/utilities/createEvidenceFiles.d.ts +1 -11
- package/lib/narrative/internal/utilities/createEvidenceFiles.js +1 -11
- package/lib/narrative/internal/utilities/createEvidenceFiles.js.map +1 -1
- package/lib/narrative/internal/utilities/createUnitFiles.d.ts +0 -8
- package/lib/narrative/internal/utilities/createUnitFiles.js +0 -8
- package/lib/narrative/internal/utilities/createUnitFiles.js.map +1 -1
- package/lib/narrative/internal/utilities/hasStoryContract.d.ts +9 -0
- package/lib/narrative/internal/utilities/hasStoryContract.js +20 -0
- package/lib/narrative/internal/utilities/hasStoryContract.js.map +1 -0
- package/lib/narrative/internal/utilities/referenceLocation.d.ts +2 -9
- package/lib/narrative/internal/utilities/referenceLocation.js +2 -9
- package/lib/narrative/internal/utilities/referenceLocation.js.map +1 -1
- package/lib/narrative/internal/validateSettingsOutline.d.ts +6 -12
- package/lib/narrative/internal/validateSettingsOutline.js +27 -20
- package/lib/narrative/internal/validateSettingsOutline.js.map +1 -1
- package/lib/narrative/isFirstPartPilot.d.ts +1 -11
- package/lib/narrative/isFirstPartPilot.js +1 -11
- package/lib/narrative/isFirstPartPilot.js.map +1 -1
- package/lib/narrative/verifyEvidenceMetadataRewrite.d.ts +2 -10
- package/lib/narrative/verifyEvidenceMetadataRewrite.js +2 -10
- package/lib/narrative/verifyEvidenceMetadataRewrite.js.map +1 -1
- package/package.json +6 -5
- package/src/IAutoMovieDevelopmentProps.ts +27 -20
- package/src/IAutoMovieEvidenceConfigProps.ts +19 -18
- package/src/IAutoMovieNarrativeProps.ts +10 -8
- package/src/IAutoMovieNoNarrativeProps.ts +4 -6
- package/src/createDevelopmentContractClaims.ts +46 -30
- package/src/createEngineeringClaims.ts +17 -22
- package/src/createEvidenceConfig.ts +45 -12
- package/src/createResearchClaims.ts +6 -14
- package/src/internal/IContractLocation.ts +6 -7
- package/src/internal/PRODUCTION_CONTRACTS.ts +14 -7
- package/src/internal/SKILLS_ROOT.ts +13 -7
- package/src/internal/STORY_CONTRACTS.ts +12 -9
- package/src/internal/assertFilmCatalogLayout.ts +173 -0
- package/src/internal/assertProductionContractLayout.ts +2 -10
- package/src/internal/createReferenceRoot.ts +0 -8
- package/src/internal/hasMatchingFile.ts +21 -0
- package/src/internal/index.ts +1 -1
- package/src/internal/resolveSkillsDirectory.ts +2 -9
- package/src/narrative/AuthoredLayer.ts +2 -6
- package/src/narrative/EvidenceMetadataRewriteOwnership.ts +0 -5
- package/src/narrative/IEvidenceMetadataRenderedSample.ts +1 -8
- package/src/narrative/IEvidenceMetadataRewriteFile.ts +1 -8
- package/src/narrative/IEvidenceMetadataRewriteProps.ts +1 -8
- package/src/narrative/IEvidenceMetadataRewriteReport.ts +1 -8
- package/src/narrative/IPackageChecklistClaimProps.ts +2 -7
- package/src/narrative/IPackageContractProps.ts +4 -11
- package/src/narrative/IPackagePopulationContractProps.ts +1 -8
- package/src/narrative/IProductionConfigProps.ts +7 -11
- package/src/narrative/IProductionConstruction.ts +3 -10
- package/src/narrative/NarrativeLayer.ts +3 -8
- package/src/narrative/NarrativeScope.ts +2 -7
- package/src/narrative/ProductionStage.ts +2 -6
- package/src/narrative/createBriefFiles.ts +5 -12
- package/src/narrative/createNarrativeUnitFiles.ts +0 -8
- package/src/narrative/createPackageChecklistClaim.ts +5 -15
- package/src/narrative/createPackageContract.ts +0 -8
- package/src/narrative/createPackagePopulationContract.ts +3 -11
- package/src/narrative/createProductionClaims.ts +0 -8
- package/src/narrative/createProductionConfig.ts +1 -11
- package/src/narrative/createSettingsFiles.ts +0 -8
- package/src/narrative/internal/AUTHORED_LAYERS.ts +14 -7
- package/src/narrative/internal/claims/createDiscoveryClaim.ts +17 -22
- package/src/narrative/internal/claims/createInstructionCoverageClaim.ts +7 -15
- package/src/narrative/internal/claims/createLayerClaims.ts +2 -30
- package/src/narrative/internal/claims/createOutlineClaims.ts +9 -26
- package/src/narrative/internal/claims/createPopulationObligationClaims.ts +12 -53
- package/src/narrative/internal/claims/createReviewClaims.ts +57 -64
- package/src/narrative/internal/claims/createSettingCoverageClaim.ts +1 -9
- package/src/narrative/internal/claims/index.ts +0 -1
- package/src/narrative/internal/collectProductionClaims.ts +2 -15
- package/src/narrative/internal/constructionStage.ts +2 -9
- package/src/narrative/internal/createGraphConfig.ts +4 -12
- package/src/narrative/internal/index.ts +0 -1
- package/src/narrative/internal/isCanonLayer.ts +2 -9
- package/src/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.ts +10 -7
- package/src/narrative/internal/metadataRewrite/EvidenceDeclarationKind.ts +1 -8
- package/src/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.ts +10 -7
- package/src/narrative/internal/metadataRewrite/HEADING_REVIEW.ts +10 -7
- package/src/narrative/internal/metadataRewrite/IEvidenceHeading.ts +1 -8
- package/src/narrative/internal/metadataRewrite/IEvidenceSection.ts +1 -8
- package/src/narrative/internal/metadataRewrite/IMetadataFragment.ts +1 -8
- package/src/narrative/internal/metadataRewrite/IProjectionSegment.ts +1 -8
- package/src/narrative/internal/metadataRewrite/IProtectedProjection.ts +1 -8
- package/src/narrative/internal/metadataRewrite/REVIEW.ts +11 -7
- package/src/narrative/internal/metadataRewrite/SUSPICIOUS.ts +13 -8
- package/src/narrative/internal/metadataRewrite/UTF8.ts +10 -7
- package/src/narrative/internal/metadataRewrite/between.ts +1 -11
- package/src/narrative/internal/metadataRewrite/continuation.ts +1 -11
- package/src/narrative/internal/metadataRewrite/declarationKind.ts +1 -11
- package/src/narrative/internal/metadataRewrite/decode.ts +1 -11
- package/src/narrative/internal/metadataRewrite/directory.ts +1 -11
- package/src/narrative/internal/metadataRewrite/errorMessage.ts +1 -11
- package/src/narrative/internal/metadataRewrite/evidenceHeading.ts +1 -11
- package/src/narrative/internal/metadataRewrite/evidenceSections.ts +1 -11
- package/src/narrative/internal/metadataRewrite/findClose.ts +1 -11
- package/src/narrative/internal/metadataRewrite/firstDifference.ts +1 -11
- package/src/narrative/internal/metadataRewrite/flatFingerprintStart.ts +2 -9
- package/src/narrative/internal/metadataRewrite/invalidUtf8Offset.ts +1 -11
- package/src/narrative/internal/metadataRewrite/isDeclaration.ts +1 -11
- package/src/narrative/internal/metadataRewrite/isNodeError.ts +1 -11
- package/src/narrative/internal/metadataRewrite/lineEnding.ts +1 -11
- package/src/narrative/internal/metadataRewrite/locate.ts +1 -11
- package/src/narrative/internal/metadataRewrite/markdownFiles.ts +1 -11
- package/src/narrative/internal/metadataRewrite/metadataOwnership.ts +1 -11
- package/src/narrative/internal/metadataRewrite/normalizeFile.ts +1 -11
- package/src/narrative/internal/metadataRewrite/occurrenceOffsets.ts +1 -11
- package/src/narrative/internal/metadataRewrite/occurrences.ts +1 -11
- package/src/narrative/internal/metadataRewrite/originalOffset.ts +1 -11
- package/src/narrative/internal/metadataRewrite/project.ts +1 -11
- package/src/narrative/internal/metadataRewrite/protectedFileKind.ts +1 -11
- package/src/narrative/internal/metadataRewrite/replacementSafety.ts +1 -11
- package/src/narrative/internal/metadataRewrite/sameMetadata.ts +1 -11
- package/src/narrative/internal/metadataRewrite/selectFiles.ts +1 -11
- package/src/narrative/internal/metadataRewrite/singleLineDeclaration.ts +1 -11
- package/src/narrative/internal/metadataRewrite/textLocation.ts +1 -11
- package/src/narrative/internal/metadataRewrite/validateRenderedSample.ts +1 -11
- package/src/narrative/internal/metadataRewrite/withoutEnding.ts +1 -11
- package/src/narrative/internal/productionLayers.ts +1 -11
- package/src/narrative/internal/readSettingsFiles.ts +8 -13
- package/src/narrative/internal/references/createCoverageReference.ts +2 -10
- package/src/narrative/internal/references/createDiscoveryReferences.ts +5 -13
- package/src/narrative/internal/references/createLanguageDiscoveryReferences.ts +1 -11
- package/src/narrative/internal/references/createLanguagePrincipleReferences.ts +4 -14
- package/src/narrative/internal/references/createLineageReference.ts +6 -14
- package/src/narrative/internal/references/createLocalContractReference.ts +0 -8
- package/src/narrative/internal/references/createPrincipleReferences.ts +9 -42
- package/src/narrative/internal/references/createSettingReferences.ts +3 -10
- package/src/narrative/internal/references/createSharedReference.ts +8 -17
- package/src/narrative/internal/references/createUpstreamReference.ts +0 -8
- package/src/narrative/internal/references/layerFiles.ts +5 -15
- package/src/narrative/internal/settingsEntryAnchor.ts +2 -9
- package/src/narrative/internal/topology/createTopologyFiles.ts +1 -11
- package/src/narrative/internal/utilities/BODY_ROOT.ts +14 -7
- package/src/narrative/internal/utilities/PACKAGE_DOCS_ROOT.ts +15 -7
- package/src/narrative/internal/utilities/assertProductionEvidenceSources.ts +2 -9
- package/src/narrative/internal/utilities/createContractDirectory.ts +4 -10
- package/src/narrative/internal/utilities/createContractRoot.ts +8 -18
- package/src/narrative/internal/utilities/createEvidenceFiles.ts +1 -11
- package/src/narrative/internal/utilities/createUnitFiles.ts +0 -8
- package/src/narrative/internal/utilities/hasStoryContract.ts +21 -0
- package/src/narrative/internal/utilities/referenceLocation.ts +2 -9
- package/src/narrative/internal/validateSettingsOutline.ts +27 -20
- package/src/narrative/isFirstPartPilot.ts +1 -11
- package/src/narrative/verifyEvidenceMetadataRewrite.ts +2 -10
- package/lib/narrative/internal/REALIZED_LAYERS.d.ts +0 -16
- package/lib/narrative/internal/REALIZED_LAYERS.js +0 -19
- package/lib/narrative/internal/REALIZED_LAYERS.js.map +0 -1
- package/lib/narrative/internal/claims/createExpressionObligationClaims.d.ts +0 -26
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js +0 -93
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js.map +0 -1
- package/src/narrative/internal/REALIZED_LAYERS.ts +0 -18
- package/src/narrative/internal/claims/createExpressionObligationClaims.ts +0 -125
|
@@ -29,16 +29,8 @@ const createSettingCoverageClaim_1 = require("./createSettingCoverageClaim");
|
|
|
29
29
|
* scene H2, so a script episode file becomes the screenplay episode folder of
|
|
30
30
|
* its scene files.
|
|
31
31
|
*
|
|
32
|
-
* Script
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* @evidence contracts/development/implementation.md#principled-implementation Construction H2 claims and file inheritance use native reference flags for per-unit checklists, treatment coverage and exact script-scene lineage, where each screenplay scene file cites the one script scene H2 it realizes; scripts construction also selects its expression family.
|
|
36
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One layer factory centralizes stage/root/parent choices, while population obligations, discovery and review remain separate factories with their distinct respondents.
|
|
37
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Short screenplay cites its actual brief without invented treatment or script parents; canon has no inherited file claim, and only scripts construction selects the expression questions.
|
|
38
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose distinguishes unit/population duties, layer-specific parents, the scene-file lineage and scripts expression; nearby comments explain topology capture.
|
|
39
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of claims and reference families are constructed per layer; helper existence probes dominate most layers, while treatments and short screenplay also enumerate canon files for coverage, whose scans and sorting scale with the installed canon.
|
|
40
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Unit/topology selectors, parent-reference builders and scalar stages are reused within the construction; each build refreshes filesystem-dependent contract/canon observations instead of retaining stale config results.
|
|
41
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned native claims own their layer-family objects and any canon-derived references; synchronous discovery leaves no filesystem handle or background task open.
|
|
32
|
+
* Script scenes establish choices and draft exchanges. Final expression is
|
|
33
|
+
* assessed in the screenplay construction checklist.
|
|
42
34
|
*/
|
|
43
35
|
function createLayerClaims(props, layer) {
|
|
44
36
|
const stage = (0, constructionStage_1.constructionStage)(props, layer);
|
|
@@ -68,21 +60,6 @@ function createLayerClaims(props, layer) {
|
|
|
68
60
|
? [(0, createCoverageReference_1.createCoverageReference)(treatments, symbol)]
|
|
69
61
|
: []),
|
|
70
62
|
];
|
|
71
|
-
// Script expression must remain repairable in the same construction body.
|
|
72
|
-
const expression = layer === "scripts"
|
|
73
|
-
? [
|
|
74
|
-
...(0, createPrincipleReferences_1.createPrincipleReferences)({
|
|
75
|
-
contracts: props,
|
|
76
|
-
layer,
|
|
77
|
-
family: "naturalness",
|
|
78
|
-
}),
|
|
79
|
-
...(0, createLanguagePrincipleReferences_1.createLanguagePrincipleReferences)({
|
|
80
|
-
location: props.location,
|
|
81
|
-
layer,
|
|
82
|
-
family: "naturalness",
|
|
83
|
-
}),
|
|
84
|
-
]
|
|
85
|
-
: [];
|
|
86
63
|
const inherits = (0, isCanonLayer_1.isCanonLayer)(layer)
|
|
87
64
|
? ""
|
|
88
65
|
: ", and account for the layers they inherit";
|
|
@@ -97,15 +74,12 @@ function createLayerClaims(props, layer) {
|
|
|
97
74
|
...(0, createPrincipleReferences_1.createPrincipleReferences)({
|
|
98
75
|
contracts: props,
|
|
99
76
|
layer,
|
|
100
|
-
family: "principles",
|
|
101
77
|
}),
|
|
102
78
|
...(0, createLanguagePrincipleReferences_1.createLanguagePrincipleReferences)({
|
|
103
79
|
location: props.location,
|
|
104
80
|
layer,
|
|
105
|
-
family: "principles",
|
|
106
81
|
}),
|
|
107
82
|
...((0, isCanonLayer_1.isCanonLayer)(layer) ? [] : [(0, createUpstreamReference_1.createUpstreamReference)(props, layer)]),
|
|
108
|
-
...expression,
|
|
109
83
|
...parents("h2"),
|
|
110
84
|
],
|
|
111
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLayerClaims.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createLayerClaims.ts"],"names":[],"mappings":";;;AAKA,6EAA0E;AAC1E,4DAAyD;AACzD,kDAA+C;AAC/C,mFAAgF;AAChF,uGAAoG;AACpG,iFAA8E;AAC9E,uFAAoF;AACpF,mFAAgF;AAChF,yEAAsE;AACtE,sDAAmD;AACnD,kEAA+D;AAC/D,6EAA0E;AAE1E
|
|
1
|
+
{"version":3,"file":"createLayerClaims.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createLayerClaims.ts"],"names":[],"mappings":";;;AAKA,6EAA0E;AAC1E,4DAAyD;AACzD,kDAA+C;AAC/C,mFAAgF;AAChF,uGAAoG;AACpG,iFAA8E;AAC9E,uFAAoF;AACpF,mFAAgF;AAChF,yEAAsE;AACtE,sDAAmD;AACnD,kEAA+D;AAC/D,6EAA0E;AAE1E;;;;;;;;;;;;;;;;;;GAkBG;AACH,2BACE,KAA6B,EAC7B,KAAoB;IAEpB,MAAM,KAAK,GAAoB,IAAA,qCAAiB,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IA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C"}
|
|
@@ -5,27 +5,19 @@ import type { IProductionConfigProps } from "../../IProductionConfigProps";
|
|
|
5
5
|
*
|
|
6
6
|
* The two installed outline contracts opt a package into this topology. A
|
|
7
7
|
* legacy installation keeps its optional, stage-free part coverage until an
|
|
8
|
-
* explicit contract migration. The part principles and the arrangement
|
|
9
|
-
* follow `construction.index` (the settings stage when omitted) and
|
|
10
|
-
* file-to-entry claim follows the settings stage. Activating either stage
|
|
8
|
+
* explicit contract migration. The part principles and the arrangement
|
|
9
|
+
* obligations follow `construction.index` (the settings stage when omitted) and
|
|
10
|
+
* the file-to-entry claim follows the settings stage. Activating either stage
|
|
11
11
|
* validates the layout.
|
|
12
12
|
*
|
|
13
13
|
* Three claims answer three different questions, so none reads another's
|
|
14
14
|
* population. Each outline part H2 answers every part principle for itself, the
|
|
15
15
|
* outline file answers each arrangement obligation once, and every settings
|
|
16
16
|
* file cites exactly one outline entry, so a missing, duplicated or invented
|
|
17
|
-
* file fails the build. The general canon claims never read `index.md`,
|
|
18
|
-
*
|
|
17
|
+
* file fails the build. The general canon claims never read `index.md`, and the
|
|
18
|
+
* outline never answers a canon principle.
|
|
19
19
|
*
|
|
20
|
-
* @param completeSubmission
|
|
20
|
+
* @param completeSubmission Explicitly requests layout validation even while
|
|
21
21
|
* both stages are `disabled`.
|
|
22
|
-
*
|
|
23
|
-
* @evidence contracts/development/implementation.md#principled-implementation Paired outline contracts installed in the shared skills tree select independent part principles, population arrangement and canon-entry bijection claims; activating either outline or settings, or requesting complete submission, validates the actual outline layout.
|
|
24
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Three respondent populations remain separate, so the outline cannot answer canon principles and a settings file cannot substitute for an outline part.
|
|
25
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The explicit older-installation branch preserves optional stage-free H2 coverage when neither new outline contract exists; a mismatched pair throws instead of silently falling back.
|
|
26
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose gives migration behavior, stage fallback, respondent/cardinality semantics and completeSubmission forcing layout validation even when disabled.
|
|
27
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two shared-tree contract existence probes and optional outline/canon validation dominate; validation enumerates and sorts settings paths and reads the outline plus each selected canon file, so work/storage scale with directory entries and file bytes rather than the three returned claims.
|
|
28
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The settings/outline stage booleans and selector builders are reused within one call; live layout validation is deliberately refreshed per configuration build, with no cross-build filesystem cache.
|
|
29
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Synchronous reads return in-memory text whose lifetime ends in the validator; the factory retains only up to three caller-owned claims and opens no lasting descriptors or tasks.
|
|
30
22
|
*/
|
|
31
23
|
export declare function createOutlineClaims(props: IProductionConfigProps, completeSubmission?: boolean): IEvidenceClaim[];
|
|
@@ -8,42 +8,33 @@ const node_fs_1 = __importDefault(require("node:fs"));
|
|
|
8
8
|
const node_path_1 = __importDefault(require("node:path"));
|
|
9
9
|
const createSharedReference_1 = require("../references/createSharedReference");
|
|
10
10
|
const BODY_ROOT_1 = require("../utilities/BODY_ROOT");
|
|
11
|
-
const createContractDirectory_1 = require("../utilities/createContractDirectory");
|
|
12
11
|
const createUnitFiles_1 = require("../utilities/createUnitFiles");
|
|
12
|
+
const hasStoryContract_1 = require("../utilities/hasStoryContract");
|
|
13
13
|
const validateSettingsOutline_1 = require("../validateSettingsOutline");
|
|
14
14
|
/**
|
|
15
15
|
* Selects the outline's own respondents and the canon-to-entry bijection.
|
|
16
16
|
*
|
|
17
17
|
* The two installed outline contracts opt a package into this topology. A
|
|
18
18
|
* legacy installation keeps its optional, stage-free part coverage until an
|
|
19
|
-
* explicit contract migration. The part principles and the arrangement
|
|
20
|
-
* follow `construction.index` (the settings stage when omitted) and
|
|
21
|
-
* file-to-entry claim follows the settings stage. Activating either stage
|
|
19
|
+
* explicit contract migration. The part principles and the arrangement
|
|
20
|
+
* obligations follow `construction.index` (the settings stage when omitted) and
|
|
21
|
+
* the file-to-entry claim follows the settings stage. Activating either stage
|
|
22
22
|
* validates the layout.
|
|
23
23
|
*
|
|
24
24
|
* Three claims answer three different questions, so none reads another's
|
|
25
25
|
* population. Each outline part H2 answers every part principle for itself, the
|
|
26
26
|
* outline file answers each arrangement obligation once, and every settings
|
|
27
27
|
* file cites exactly one outline entry, so a missing, duplicated or invented
|
|
28
|
-
* file fails the build. The general canon claims never read `index.md`,
|
|
29
|
-
*
|
|
28
|
+
* file fails the build. The general canon claims never read `index.md`, and the
|
|
29
|
+
* outline never answers a canon principle.
|
|
30
30
|
*
|
|
31
|
-
* @param completeSubmission
|
|
31
|
+
* @param completeSubmission Explicitly requests layout validation even while
|
|
32
32
|
* both stages are `disabled`.
|
|
33
|
-
*
|
|
34
|
-
* @evidence contracts/development/implementation.md#principled-implementation Paired outline contracts installed in the shared skills tree select independent part principles, population arrangement and canon-entry bijection claims; activating either outline or settings, or requesting complete submission, validates the actual outline layout.
|
|
35
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Three respondent populations remain separate, so the outline cannot answer canon principles and a settings file cannot substitute for an outline part.
|
|
36
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The explicit older-installation branch preserves optional stage-free H2 coverage when neither new outline contract exists; a mismatched pair throws instead of silently falling back.
|
|
37
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose gives migration behavior, stage fallback, respondent/cardinality semantics and completeSubmission forcing layout validation even when disabled.
|
|
38
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two shared-tree contract existence probes and optional outline/canon validation dominate; validation enumerates and sorts settings paths and reads the outline plus each selected canon file, so work/storage scale with directory entries and file bytes rather than the three returned claims.
|
|
39
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The settings/outline stage booleans and selector builders are reused within one call; live layout validation is deliberately refreshed per configuration build, with no cross-build filesystem cache.
|
|
40
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Synchronous reads return in-memory text whose lifetime ends in the validator; the factory retains only up to three caller-owned claims and opens no lasting descriptors or tasks.
|
|
41
33
|
*/
|
|
42
34
|
function createOutlineClaims(props, completeSubmission = false) {
|
|
43
35
|
const outline = "settings/outline/index.md";
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
if (principle !== installed("obligations"))
|
|
36
|
+
const principle = (0, hasStoryContract_1.hasStoryContract)(props, "principles/index.md");
|
|
37
|
+
if (principle !== (0, hasStoryContract_1.hasStoryContract)(props, "obligations/index.md"))
|
|
47
38
|
throw new Error("Settings outline contracts must be installed as a pair.");
|
|
48
39
|
if (principle === false) {
|
|
49
40
|
if (!node_fs_1.default.existsSync(node_path_1.default.join(props.location, BODY_ROOT_1.BODY_ROOT, outline)))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOutlineClaims.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createOutlineClaims.ts"],"names":[],"mappings":";;;;;;AACA,sDAAyB;AACzB,0DAA6B;AAG7B,+EAA4E;AAC5E,sDAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"createOutlineClaims.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createOutlineClaims.ts"],"names":[],"mappings":";;;;;;AACA,sDAAyB;AACzB,0DAA6B;AAG7B,+EAA4E;AAC5E,sDAAmD;AACnD,kEAA+D;AAC/D,oEAAiE;AACjE,wEAAqE;AAErE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,6BACE,KAA6B,EAC7B,kBAAkB,GAAY,KAAK;IAEnC,MAAM,OAAO,GAAW,2BAA2B,CAAC;IACpD,MAAM,SAAS,GAAY,IAAA,mCAAgB,EAAC,KAAK,EAAE,qBAAqB,CAAC,CAAC;IAC1E,IAAI,SAAS,KAAK,IAAA,mCAAgB,EAAC,KAAK,EAAE,sBAAsB,CAAC;QAC/D,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAE7E,IAAI,SAAS,KAAK,KAAK,EAAE,CAAC;QACxB,IAAI,CAAC,iBAAE,CAAC,UAAU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C;SACH;QACD;YACE,IAAI,EAAE,2DAA2D;YACjE,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,qBAAS;YACf,KAAK,EAAE,CAAC,OAAO,CAAC;YAChB,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,eAAe;YACzB,SAAS,EAAE;gBACT,GAAG,IAAA,6CAAqB,EAAC;oBACvB,SAAS,EAAE,KAAK;oBAChB,IAAI,EAAE,sBAAsB;oBAC5B,SAAS,EAAE,KAAK;oBAChB,SAAS,EAAE,KAAK;iBACjB,CAAC;gBACF,cAAc,EAAE,IAAI;aACrB;SACF;QACD;YACE,IAAI,EAAE,6DAA6D;YACnE,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,qBAAS;YACf,KAAK,EAAE,IAAA,iCAAe,EAAC,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC;YACxD,MAAM,EAAE,MAAM;YACd,QAAQ;YACR,SAAS,EAAE;gBACT,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,qBAAS;gBACf,KAAK,EAAE,CAAC,OAAO,CAAC;gBAChB,MAAM,EAAE,IAAI;gBACZ,uBAAuB,EAAE,IAAI;gBAC7B,cAAc,EAAE,IAAI;gBACpB,iBAAiB,EAAE,IAAI;aACxB;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -6,20 +6,10 @@ import type { IProductionConfigProps } from "../../IProductionConfigProps";
|
|
|
6
6
|
*
|
|
7
7
|
* An obligation asks one question about the whole layer, so the layer's own
|
|
8
8
|
* authored documents answer it once, at file level, through their detached
|
|
9
|
-
* construction evidence. Each item has exactly one answering document.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* restatement per unit.
|
|
9
|
+
* construction evidence. Each item has exactly one answering document. An
|
|
10
|
+
* obligation is never a per-H2 checklist, because repeating a population
|
|
11
|
+
* question on every unit turns one comparison into a restatement per unit.
|
|
13
12
|
*
|
|
14
|
-
*
|
|
15
|
-
* separate expression obligation claims rather than repeating their question per unit.
|
|
16
|
-
*
|
|
17
|
-
* @evidence contracts/development/implementation.md#principled-implementation Construction stage controls whole-layer file-level obligation coverage, with one answering document per shared/language population item and no per-H2 repetition of the same comparison; createContractDirectory probes shared documents in the shared skills tree and language documents in the production's own `docs/contracts`.
|
|
18
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The exported factory delegates one family build while keeping population scope distinct from principle checklists and expression obligations.
|
|
19
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Required shared common/narrative files stay selected even when missing so the compiler reports a broken tree; only realized and layer-specific optional documents are conditionally selected.
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains whole-layer respondents, unique evidence and the boundary with per-unit and script expression families; the helper comment identifies optional-file compatibility.
|
|
21
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms At most four candidates per scope are filtered and mapped, with a bounded number of synchronous existence probes and selector constructions; this factory never scans the manuscript population.
|
|
22
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared/language selection reuses layerFiles and reference builders; optional installed files are observed per config build, so changes in the contract tree invalidate naturally without a retained cache.
|
|
23
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Intermediate and returned arrays have a fixed family bound; returned claim/reference objects belong to the config owner and existence probes retain no exposed handles.
|
|
13
|
+
* Screenplay expression is answered here alongside the other screenplay duties.
|
|
24
14
|
*/
|
|
25
15
|
export declare function createPopulationObligationClaims(props: IProductionConfigProps, layer: AuthoredLayer): IEvidenceClaim[];
|
|
@@ -1,54 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.createPopulationObligationClaims = createPopulationObligationClaims;
|
|
7
|
-
const node_fs_1 = __importDefault(require("node:fs"));
|
|
8
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
9
4
|
const constructionStage_1 = require("../constructionStage");
|
|
10
5
|
const createLocalContractReference_1 = require("../references/createLocalContractReference");
|
|
11
6
|
const createSharedReference_1 = require("../references/createSharedReference");
|
|
12
7
|
const layerFiles_1 = require("../references/layerFiles");
|
|
13
8
|
const BODY_ROOT_1 = require("../utilities/BODY_ROOT");
|
|
14
|
-
const createContractDirectory_1 = require("../utilities/createContractDirectory");
|
|
15
9
|
const createUnitFiles_1 = require("../utilities/createUnitFiles");
|
|
10
|
+
const hasStoryContract_1 = require("../utilities/hasStoryContract");
|
|
16
11
|
/**
|
|
17
12
|
* Creates the population obligation claims for a complete layer.
|
|
18
13
|
*
|
|
19
14
|
* An obligation asks one question about the whole layer, so the layer's own
|
|
20
15
|
* authored documents answer it once, at file level, through their detached
|
|
21
|
-
* construction evidence. Each item has exactly one answering document.
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* restatement per unit.
|
|
16
|
+
* construction evidence. Each item has exactly one answering document. An
|
|
17
|
+
* obligation is never a per-H2 checklist, because repeating a population
|
|
18
|
+
* question on every unit turns one comparison into a restatement per unit.
|
|
25
19
|
*
|
|
26
|
-
*
|
|
27
|
-
* separate expression obligation claims rather than repeating their question per unit.
|
|
28
|
-
*
|
|
29
|
-
* @evidence contracts/development/implementation.md#principled-implementation Construction stage controls whole-layer file-level obligation coverage, with one answering document per shared/language population item and no per-H2 repetition of the same comparison; createContractDirectory probes shared documents in the shared skills tree and language documents in the production's own `docs/contracts`.
|
|
30
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The exported factory delegates one family build while keeping population scope distinct from principle checklists and expression obligations.
|
|
31
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Required shared common/narrative files stay selected even when missing so the compiler reports a broken tree; only realized and layer-specific optional documents are conditionally selected.
|
|
32
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains whole-layer respondents, unique evidence and the boundary with per-unit and script expression families; the helper comment identifies optional-file compatibility.
|
|
33
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms At most four candidates per scope are filtered and mapped, with a bounded number of synchronous existence probes and selector constructions; this factory never scans the manuscript population.
|
|
34
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared/language selection reuses layerFiles and reference builders; optional installed files are observed per config build, so changes in the contract tree invalidate naturally without a retained cache.
|
|
35
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Intermediate and returned arrays have a fixed family bound; returned claim/reference objects belong to the config owner and existence probes retain no exposed handles.
|
|
20
|
+
* Screenplay expression is answered here alongside the other screenplay duties.
|
|
36
21
|
*/
|
|
37
22
|
function createPopulationObligationClaims(props, layer) {
|
|
38
|
-
return family(props, layer, (0, constructionStage_1.constructionStage)(props, layer));
|
|
39
|
-
}
|
|
40
|
-
/** Creates the obligation claims for one layer's shared and language duties. */
|
|
41
|
-
function family(props, layer, stage) {
|
|
42
23
|
const directory = "obligations";
|
|
43
|
-
const disabled =
|
|
44
|
-
//
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
// filtered: `realized.md`, which older trees predate, and the layer file,
|
|
48
|
-
// which exists only where that layer owes a duty of its own.
|
|
49
|
-
const optional = (file) => file === "realized.md" || file === `${layer}.md`;
|
|
24
|
+
const disabled = (0, constructionStage_1.constructionStage)(props, layer) === "disabled";
|
|
25
|
+
// Older trees can omit supplements and earlier layers' own obligations.
|
|
26
|
+
const optional = (file) => file === "realized.md" ||
|
|
27
|
+
(layer !== "screenplay" && file === `${layer}.md`);
|
|
50
28
|
const shared = (0, layerFiles_1.layerFiles)(layer)
|
|
51
|
-
.filter((file) => !optional(file) ||
|
|
29
|
+
.filter((file) => !optional(file) || (0, hasStoryContract_1.hasStoryContract)(props, `${directory}/${file}`))
|
|
52
30
|
.map((file) => claim({
|
|
53
31
|
disabled,
|
|
54
32
|
layer,
|
|
@@ -86,8 +64,4 @@ function claim(props) {
|
|
|
86
64
|
reference: { ...props.reference, uniqueEvidence: true },
|
|
87
65
|
};
|
|
88
66
|
}
|
|
89
|
-
/** Reports whether one optional contract-family document is installed. */
|
|
90
|
-
function exists(contracts, scope, file) {
|
|
91
|
-
return node_fs_1.default.existsSync(node_path_1.default.join((0, createContractDirectory_1.createContractDirectory)(contracts, scope), scope, ...file.split("/")));
|
|
92
|
-
}
|
|
93
67
|
//# sourceMappingURL=createPopulationObligationClaims.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPopulationObligationClaims.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createPopulationObligationClaims.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createPopulationObligationClaims.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createPopulationObligationClaims.ts"],"names":[],"mappings":";;;AAOA,4DAAyD;AACzD,6FAA0F;AAC1F,+EAA4E;AAC5E,yDAAsD;AACtD,sDAAmD;AACnD,kEAA+D;AAC/D,oEAAiE;AAEjE;;;;;;;;;;GAUG;AACH,0CACE,KAA6B,EAC7B,KAAoB;IAEpB,MAAM,SAAS,GAAW,aAAa,CAAC;IACxC,MAAM,QAAQ,GAAY,IAAA,qCAAiB,EAAC,KAAK,EAAE,KAAK,CAAC,KAAK,UAAU,CAAC;IAEzE,wEAAwE;IACxE,MAAM,QAAQ,GAA8B,CAAC,IAAY,EAAW,EAAE,CACpE,IAAI,KAAK,aAAa;QACtB,CAAC,KAAK,KAAK,YAAY,IAAI,IAAI,KAAK,GAAG,KAAK,KAAK,CAAC,CAAC;IACrD,MAAM,MAAM,GAAqB,IAAA,uBAAU,EAAC,KAAK,CAAC;SAC/C,MAAM,CACL,CAAC,IAAY,EAAW,EAAE,CACxB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAA,mCAAgB,EAAC,KAAK,EAAE,GAAG,SAAS,IAAI,IAAI,EAAE,CAAC,CACrE;SACA,GAAG,CACF,CAAC,IAAY,EAAkB,EAAE,CAC/B,KAAK,CAAC;QACJ,QAAQ;QACR,KAAK;QACL,K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SAAS,EAAE,cAAc,EAAE,IAAI,EAAE;KACxD,CAAC;AACJ,CAAC"}
|
|
@@ -7,28 +7,20 @@ import type { IProductionConfigProps } from "../../IProductionConfigProps";
|
|
|
7
7
|
* A reviewer writes one review file per authored file and one review H2 per
|
|
8
8
|
* authored H2, directly under `docs/review/draft/<layer>` in a tree that
|
|
9
9
|
* mirrors the authored layer. A selected review file or `verdict/index.md`
|
|
10
|
-
* starts this current population; missing counterparts never come from a
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
10
|
+
* starts this current population; missing counterparts never come from a legacy
|
|
11
|
+
* round. Without current files, the highest numbered legacy round remains
|
|
12
|
+
* supported. Each review H2 cites its authored H2 and keeps a current review of
|
|
13
|
+
* it, so an authored change expires exactly the reviews it touched and the
|
|
14
|
+
* graph shows which unit to read again. Each review H2 also answers the review
|
|
15
|
+
* principles for itself. One verdict file per layer answers the review
|
|
16
|
+
* obligations once, because they compare the whole population.
|
|
17
17
|
*
|
|
18
|
-
* No claim binds the review files to the authored files one to one, because
|
|
19
|
-
*
|
|
18
|
+
* No claim binds the review files to the authored files one to one, because the
|
|
19
|
+
* H2 bijection already leaves no authored H2 without a review.
|
|
20
20
|
*
|
|
21
21
|
* Review claims are active only while the layer's construction stage is
|
|
22
|
-
* `evidence`. A package whose installed contract predates the review family,
|
|
23
|
-
*
|
|
22
|
+
* `evidence`. A package whose installed contract predates the review family, or
|
|
23
|
+
* whose reviewer has not yet written current files or a legacy round under
|
|
24
24
|
* `docs/review/draft/<layer>`, has no review claims for that layer.
|
|
25
|
-
*
|
|
26
|
-
* @evidence contracts/development/implementation.md#principled-implementation Actual in-scope direct review files or a verdict select the canonical population exclusively; otherwise the highest numeric legacy round supplies exact current-review lineage and a separate file-level verdict obligation, both following the construction stage.
|
|
27
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One root selector keeps current-versus-legacy admission separate from the unchanged unit bijection, freshness and whole-population verdict claims.
|
|
28
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Older contract families, probed in the shared skills tree that also roots their references, and not-yet-created review roots yield no claims; native inactive populations do not establish that independent review occurred.
|
|
29
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states canonical admission, exclusive legacy fallback, current-review invalidation, H2 bijection, verdict ownership and optional roots/contracts.
|
|
30
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One review root scans entries only as deep as its actual selectors; directory entries and native glob matching dominate, with a linear root scan for legacy selection when no canonical file exists.
|
|
31
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The resolved files, selected root and lineage serve both claims; filesystem observation repeats per config build so new current files replace legacy selection.
|
|
32
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Directory arrays are transient and bounded by visited entries; returned claims belong to the config, and synchronous scans retain no history, handle or task.
|
|
33
25
|
*/
|
|
34
26
|
export declare function createReviewClaims(props: IProductionConfigProps, layer: AuthoredLayer): IEvidenceClaim[];
|
|
@@ -12,41 +12,33 @@ const createLineageReference_1 = require("../references/createLineageReference")
|
|
|
12
12
|
const createSharedReference_1 = require("../references/createSharedReference");
|
|
13
13
|
const BODY_ROOT_1 = require("../utilities/BODY_ROOT");
|
|
14
14
|
const PACKAGE_DOCS_ROOT_1 = require("../utilities/PACKAGE_DOCS_ROOT");
|
|
15
|
-
const createContractDirectory_1 = require("../utilities/createContractDirectory");
|
|
16
15
|
const createUnitFiles_1 = require("../utilities/createUnitFiles");
|
|
16
|
+
const hasStoryContract_1 = require("../utilities/hasStoryContract");
|
|
17
17
|
/**
|
|
18
18
|
* Creates the claims that record the evidence-stage reviews in the graph.
|
|
19
19
|
*
|
|
20
20
|
* A reviewer writes one review file per authored file and one review H2 per
|
|
21
21
|
* authored H2, directly under `docs/review/draft/<layer>` in a tree that
|
|
22
22
|
* mirrors the authored layer. A selected review file or `verdict/index.md`
|
|
23
|
-
* starts this current population; missing counterparts never come from a
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
23
|
+
* starts this current population; missing counterparts never come from a legacy
|
|
24
|
+
* round. Without current files, the highest numbered legacy round remains
|
|
25
|
+
* supported. Each review H2 cites its authored H2 and keeps a current review of
|
|
26
|
+
* it, so an authored change expires exactly the reviews it touched and the
|
|
27
|
+
* graph shows which unit to read again. Each review H2 also answers the review
|
|
28
|
+
* principles for itself. One verdict file per layer answers the review
|
|
29
|
+
* obligations once, because they compare the whole population.
|
|
30
30
|
*
|
|
31
|
-
* No claim binds the review files to the authored files one to one, because
|
|
32
|
-
*
|
|
31
|
+
* No claim binds the review files to the authored files one to one, because the
|
|
32
|
+
* H2 bijection already leaves no authored H2 without a review.
|
|
33
33
|
*
|
|
34
34
|
* Review claims are active only while the layer's construction stage is
|
|
35
|
-
* `evidence`. A package whose installed contract predates the review family,
|
|
36
|
-
*
|
|
35
|
+
* `evidence`. A package whose installed contract predates the review family, or
|
|
36
|
+
* whose reviewer has not yet written current files or a legacy round under
|
|
37
37
|
* `docs/review/draft/<layer>`, has no review claims for that layer.
|
|
38
|
-
*
|
|
39
|
-
* @evidence contracts/development/implementation.md#principled-implementation Actual in-scope direct review files or a verdict select the canonical population exclusively; otherwise the highest numeric legacy round supplies exact current-review lineage and a separate file-level verdict obligation, both following the construction stage.
|
|
40
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One root selector keeps current-versus-legacy admission separate from the unchanged unit bijection, freshness and whole-population verdict claims.
|
|
41
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Older contract families, probed in the shared skills tree that also roots their references, and not-yet-created review roots yield no claims; native inactive populations do not establish that independent review occurred.
|
|
42
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states canonical admission, exclusive legacy fallback, current-review invalidation, H2 bijection, verdict ownership and optional roots/contracts.
|
|
43
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One review root scans entries only as deep as its actual selectors; directory entries and native glob matching dominate, with a linear root scan for legacy selection when no canonical file exists.
|
|
44
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The resolved files, selected root and lineage serve both claims; filesystem observation repeats per config build so new current files replace legacy selection.
|
|
45
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Directory arrays are transient and bounded by visited entries; returned claims belong to the config, and synchronous scans retain no history, handle or task.
|
|
46
38
|
*/
|
|
47
39
|
function createReviewClaims(props, layer) {
|
|
48
|
-
const principles =
|
|
49
|
-
const obligations =
|
|
40
|
+
const principles = (0, hasStoryContract_1.hasStoryContract)(props, "principles/review.md");
|
|
41
|
+
const obligations = (0, hasStoryContract_1.hasStoryContract)(props, "obligations/review.md");
|
|
50
42
|
if (!principles && !obligations)
|
|
51
43
|
return [];
|
|
52
44
|
const files = (0, createUnitFiles_1.createUnitFiles)(layer, props.narrativeScope);
|
|
@@ -111,20 +103,33 @@ function createReviewClaims(props, layer) {
|
|
|
111
103
|
* Selects current or legacy review hosts, or no review root.
|
|
112
104
|
*
|
|
113
105
|
* An empty relative root selects current files; a round name selects legacy.
|
|
114
|
-
* Current host selectors exclude every observed numeric round subtree.
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
106
|
+
* Current host selectors exclude every observed numeric round subtree. Files
|
|
107
|
+
* outside the actual authored scope cannot start a current review. Traversal
|
|
108
|
+
* stops at selector depth and never enters legacy round subtrees. Filesystem
|
|
109
|
+
* errors and malformed round entries propagate instead of hiding unavailable
|
|
110
|
+
* review input behind another population. A non-directory numeric round is
|
|
111
|
+
* rejected when legacy selection is needed.
|
|
120
112
|
*
|
|
121
|
-
* Principled implementation: Native EvidenceFileGlob membership admits selected
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
113
|
+
* Principled implementation: Native EvidenceFileGlob membership admits selected
|
|
114
|
+
* direct files or the canonical verdict before numeric legacy fallback; maximum
|
|
115
|
+
* selector segment count bounds traversal, and exact observed numeric-round
|
|
116
|
+
* exclusions prevent legacy hosts entering canonical extraction. Clear and
|
|
117
|
+
* simple design: The private selector returns the relative root and its host
|
|
118
|
+
* selectors together, leaving extraction and all review semantics with the
|
|
119
|
+
* existing native claims. Prohibited implementation shortcuts: Partial current
|
|
120
|
+
* populations win without legacy backfill; out-of-scope files cannot trigger
|
|
121
|
+
* admission, filesystem failures propagate and non-directory numeric rounds
|
|
122
|
+
* throw. Meaningful documentation: The comment defines all three results,
|
|
123
|
+
* scope-sensitive admission, traversal bounds and failure behavior. Efficient
|
|
124
|
+
* algorithms: Native glob matching checks visited files up to maximum selector
|
|
125
|
+
* depth; a short-circuit current match ends traversal, otherwise one additional
|
|
126
|
+
* root-entry scan selects the highest numeric round. Storage is directory
|
|
127
|
+
* arrays along the bounded traversal stack. Reuse equivalent work: One glob and
|
|
128
|
+
* maximum depth serve the current scan; the initial root listing is reused for
|
|
129
|
+
* legacy selection, and each config build observes the filesystem anew. Bound
|
|
130
|
+
* retention and release resources: Synchronous directory listings and the glob
|
|
131
|
+
* are call-local, with no retained cache, descriptor or task; the selected root
|
|
132
|
+
* and host selector strings belong to the caller.
|
|
128
133
|
*/
|
|
129
134
|
function selectReviewRoot(directory, files) {
|
|
130
135
|
if (!node_fs_1.default.existsSync(directory))
|
|
@@ -163,13 +168,23 @@ function selectReviewRoot(directory, files) {
|
|
|
163
168
|
/**
|
|
164
169
|
* Tests actual file membership within the selector's remaining path depth.
|
|
165
170
|
*
|
|
166
|
-
* Principled implementation: Relative paths are matched by the native glob;
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
171
|
+
* Principled implementation: Relative paths are matched by the native glob;
|
|
172
|
+
* symlink status follows its actual target, recursion consumes one selector
|
|
173
|
+
* segment and skips top-level round directories, preventing legacy files from
|
|
174
|
+
* masquerading as canonical files. Clear and simple design: This bounded
|
|
175
|
+
* traversal owns only canonical membership and returns as soon as a
|
|
176
|
+
* participating file exists. Prohibited implementation shortcuts: No body or
|
|
177
|
+
* consumer name is special-cased; the numeric round grammar denotes the
|
|
178
|
+
* supported legacy format, and read failures propagate unchanged. Meaningful
|
|
179
|
+
* documentation: The comment states selector depth and membership; parameter
|
|
180
|
+
* names expose root-relative prefix and remaining depth. Efficient algorithms:
|
|
181
|
+
* The depth-first short-circuit scan visits at most entries reachable within
|
|
182
|
+
* selector depth, with one native glob match per file and directory arrays
|
|
183
|
+
* retained only along that bounded stack. Reuse equivalent work: The caller
|
|
184
|
+
* supplies the same glob and initial directory entries; recursive calls reuse
|
|
185
|
+
* it and read each reached child directory once. Bound retention and release
|
|
186
|
+
* resources: Child entry arrays and relative path strings expire on return, and
|
|
187
|
+
* synchronous reads leave no open handle or background task.
|
|
173
188
|
*/
|
|
174
189
|
function hasCurrentReview(directory, entries, glob, depth, prefix) {
|
|
175
190
|
for (const entry of entries) {
|
|
@@ -194,18 +209,4 @@ function hasCurrentReview(directory, entries, glob, depth, prefix) {
|
|
|
194
209
|
}
|
|
195
210
|
return false;
|
|
196
211
|
}
|
|
197
|
-
/**
|
|
198
|
-
* Reports whether one review-family document is installed.
|
|
199
|
-
*
|
|
200
|
-
* Principled implementation: The shared story tree from createContractDirectory and the requested relative family path identify the installed optional review question document, wherever a workspace keeps the shared tree.
|
|
201
|
-
* Clear and simple design: This private predicate keeps optional-family discovery separate from review host selection and native evaluation.
|
|
202
|
-
* Prohibited implementation shortcuts: Existence only determines whether the optional family is installed; native extraction still owns readable valid contract content and cannot be replaced by this probe.
|
|
203
|
-
* Meaningful documentation: The comment identifies optional review-family document discovery; the caller supplies the two supported relative contract paths.
|
|
204
|
-
* Efficient algorithms: One path assembly and synchronous existence probe cost path-length work and constant-size metadata observation.
|
|
205
|
-
* Reuse equivalent work: Each factory build observes current installation instead of caching a mutable contract path's existence.
|
|
206
|
-
* Bound retention and release resources: The temporary path and synchronous probe retain no cache, open handle or task.
|
|
207
|
-
*/
|
|
208
|
-
function installed(contracts, file) {
|
|
209
|
-
return node_fs_1.default.existsSync(node_path_1.default.join((0, createContractDirectory_1.createContractDirectory)(contracts, "shared"), "shared", ...file.split("/")));
|
|
210
|
-
}
|
|
211
212
|
//# sourceMappingURL=createReviewClaims.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createReviewClaims.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createReviewClaims.ts"],"names":[],"mappings":";;;;;;AAAA,iDAI4B;AAC5B,sDAAyB;AACzB,0DAA6B;
|
|
1
|
+
{"version":3,"file":"createReviewClaims.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createReviewClaims.ts"],"names":[],"mappings":";;;;;;AAAA,iDAI4B;AAC5B,sDAAyB;AACzB,0DAA6B;AAI7B,4DAAyD;AACzD,iFAA8E;AAC9E,+EAA4E;AAC5E,sDAAmD;AACnD,sEAAmE;AACnE,kEAA+D;AAC/D,oEAAiE;AAEjE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,4BACE,KAA6B,EAC7B,KAAoB;IAEpB,MAAM,UAAU,GAAY,IAAA,mCAAgB,EAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC;IAC5E,MAAM,WAAW,GAAY,IAAA,mCAAgB,EAAC,KAAK,EAAE,uBAAuB,CAAC,CAAC;IAC9E,IAAI,CAAC,UAAU,IAAI,CAAC,WAAW;QAAE,OAAO,EAAE,CAAC;IAC3C,MAAM,KAAK,GAAa,IAAA,iCAAe,EAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IACrE,MAAM,MAAM,GAAa,KAAK,CAAC,GAAG,CAAC,CAAC,IAAY,EAAU,EAAE,CAC1D,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAC7B,CAAC;IACF,MAAM,IAAI,GAAW,GAAG,qCAAiB,iBA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C,oBAAoB,CAAC,QAAQ,CAAC,CAAC;QACnD,IAAI,CAAC,QAAQ,IAAI,CAAC,UAAU;YAAE,SAAS;QACvC,MAAM,MAAM,GAAyB,KAAK,CAAC,cAAc,EAAE;YACzD,CAAC,CAAC,iBAAE,CAAC,QAAQ,CAAC,mBAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YAC/C,CAAC,CAAC,KAAK,CAAC;QACV,IAAI,MAAM,CAAC,MAAM,EAAE,IAAI,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC7C,IACE,MAAM,CAAC,WAAW,EAAE;YACpB,UAAU;YACV,gBAAgB,CACd,mBAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,EAChC,iBAAE,CAAC,WAAW,CAAC,mBAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE;gBAC/C,aAAa,EAAE,IAAI;aACpB,CAAC,EACF,IAAI,EACJ,KAAK,GAAG,CAAC,EACT,GAAG,QAAQ,GAAG,CACf;YAED,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
import type { IEvidenceClaim } from "@wrtnlabs/evidence";
|
|
2
2
|
import type { IProductionConfigProps } from "../../IProductionConfigProps";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Connects treatment H2s to settings, or short screenplay H2s to the brief.
|
|
5
5
|
*
|
|
6
6
|
* Edges stay on the concrete consumers: a narrative H2 cites the canon H2 it
|
|
7
7
|
* depends on, and a canon H2 no selected narrative H2 uses is answered by an
|
|
8
8
|
* exclusion on the narrative H2 whose scope makes it absent.
|
|
9
|
-
*
|
|
10
|
-
* @evidence contracts/development/implementation.md#principled-implementation Actual treatment or short-screenplay H2 consumers cover H2s of every enumerated canon body file, settings or brief as `canon` names, while the scalar construction stage controls the consumer stage; an empty canon returns undefined.
|
|
11
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Canon coverage lives on the concrete event or short-scene consumers, separate from structural prerequisite readiness and inherited script/screenplay relations.
|
|
12
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Empty reference populations are omitted because there is no canon dependency to cite; pass readiness remains a separate required check rather than being excused by this omission.
|
|
13
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states which canon each consumer cites, dependency hosts and truthful scope exclusions, and the nearby comment distinguishes empty coverage from readiness.
|
|
14
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Canon enumeration and sorting dominate: one reference is allocated per canon file after directory scans, while the consumer selector and claim have fixed size; factory work does not read canon file contents.
|
|
15
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The canon reference builder centralizes every supported layout; this call reobserves installed canon paths each config build rather than caching a potentially obsolete file population.
|
|
16
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned claim retains one reference per canon file under config ownership; enumeration arrays are transient and synchronous directory operations retain no open descriptor or running task.
|
|
17
9
|
*/
|
|
18
10
|
export declare function createSettingCoverageClaim(props: IProductionConfigProps, layer: "treatments" | "screenplay", canon?: "settings" | "brief"): IEvidenceClaim | undefined;
|
|
@@ -6,19 +6,11 @@ const constructionStage_1 = require("../constructionStage");
|
|
|
6
6
|
const createSettingReferences_1 = require("../references/createSettingReferences");
|
|
7
7
|
const BODY_ROOT_1 = require("../utilities/BODY_ROOT");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Connects treatment H2s to settings, or short screenplay H2s to the brief.
|
|
10
10
|
*
|
|
11
11
|
* Edges stay on the concrete consumers: a narrative H2 cites the canon H2 it
|
|
12
12
|
* depends on, and a canon H2 no selected narrative H2 uses is answered by an
|
|
13
13
|
* exclusion on the narrative H2 whose scope makes it absent.
|
|
14
|
-
*
|
|
15
|
-
* @evidence contracts/development/implementation.md#principled-implementation Actual treatment or short-screenplay H2 consumers cover H2s of every enumerated canon body file, settings or brief as `canon` names, while the scalar construction stage controls the consumer stage; an empty canon returns undefined.
|
|
16
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Canon coverage lives on the concrete event or short-scene consumers, separate from structural prerequisite readiness and inherited script/screenplay relations.
|
|
17
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Empty reference populations are omitted because there is no canon dependency to cite; pass readiness remains a separate required check rather than being excused by this omission.
|
|
18
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states which canon each consumer cites, dependency hosts and truthful scope exclusions, and the nearby comment distinguishes empty coverage from readiness.
|
|
19
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Canon enumeration and sorting dominate: one reference is allocated per canon file after directory scans, while the consumer selector and claim have fixed size; factory work does not read canon file contents.
|
|
20
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The canon reference builder centralizes every supported layout; this call reobserves installed canon paths each config build rather than caching a potentially obsolete file population.
|
|
21
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned claim retains one reference per canon file under config ownership; enumeration arrays are transient and synchronous directory operations retain no open descriptor or running task.
|
|
22
14
|
*/
|
|
23
15
|
function createSettingCoverageClaim(props, layer, canon = "settings") {
|
|
24
16
|
const stage = (0, constructionStage_1.constructionStage)(props, layer);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSettingCoverageClaim.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createSettingCoverageClaim.ts"],"names":[],"mappings":";;;AAIA,6EAA0E;AAC1E,4DAAyD;AACzD,mFAAgF;AAChF,sDAAmD;AAEnD
|
|
1
|
+
{"version":3,"file":"createSettingCoverageClaim.js","sourceRoot":"","sources":["../../../../src/narrative/internal/claims/createSettingCoverageClaim.ts"],"names":[],"mappings":";;;AAIA,6EAA0E;AAC1E,4DAAyD;AACzD,mFAAgF;AAChF,sDAAmD;AAEnD;;;;;;GAMG;AACH,oCACE,KAA6B,EAC7B,KAAkC,EAClC,KAAK,GAAyB,UAAU;IAExC,MAAM,KAAK,GAAoB,IAAA,qCAAiB,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAyB,IAAA,iDAAuB,EAC7D,KAAK,CAAC,QAAQ,EACd,KAAK,CACN,CAAC;IACF,4CAA4C;IAC5C,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC7C,OAAO;QACL,IAAI,EAAE,GAAG,KAAK,4BAA4B,KAAK,eAAe;QAC9D,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,qBAAS;QACf,KAAK,EAAE,IAAA,mDAAwB,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,cAAc,EAAE,CAAC;QACvE,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,KAAK,KAAK,UAAU;QAC9B,SAAS;KACV,CAAC;AACJ,CAAC"}
|