@automovie/evidence 0.0.0-stage → 0.0.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/LICENSE +21 -0
- package/README.md +95 -2
- package/lib/IAutoMovieDevelopmentProps.d.ts +38 -0
- package/lib/IAutoMovieDevelopmentProps.js +3 -0
- package/lib/IAutoMovieDevelopmentProps.js.map +1 -0
- package/lib/IAutoMovieEvidenceConfigProps.d.ts +38 -0
- package/lib/IAutoMovieEvidenceConfigProps.js +3 -0
- package/lib/IAutoMovieEvidenceConfigProps.js.map +1 -0
- package/lib/IAutoMovieNarrativeProps.d.ts +24 -0
- package/lib/IAutoMovieNarrativeProps.js +3 -0
- package/lib/IAutoMovieNarrativeProps.js.map +1 -0
- package/lib/createDevelopmentContractClaims.d.ts +38 -0
- package/lib/createDevelopmentContractClaims.js +89 -0
- package/lib/createDevelopmentContractClaims.js.map +1 -0
- package/lib/createEngineeringClaims.d.ts +55 -0
- package/lib/createEngineeringClaims.js +96 -0
- package/lib/createEngineeringClaims.js.map +1 -0
- package/lib/createEvidenceConfig.d.ts +20 -0
- package/lib/createEvidenceConfig.js +68 -0
- package/lib/createEvidenceConfig.js.map +1 -0
- package/lib/createResearchClaims.d.ts +31 -0
- package/lib/createResearchClaims.js +44 -0
- package/lib/createResearchClaims.js.map +1 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +25 -0
- package/lib/index.js.map +1 -0
- package/lib/internal/IContractLocation.d.ts +24 -0
- package/lib/internal/IContractLocation.js +3 -0
- package/lib/internal/IContractLocation.js.map +1 -0
- package/lib/internal/PRODUCTION_CONTRACTS.d.ts +19 -0
- package/lib/internal/PRODUCTION_CONTRACTS.js +23 -0
- package/lib/internal/PRODUCTION_CONTRACTS.js.map +1 -0
- package/lib/internal/SKILLS_ROOT.d.ts +19 -0
- package/lib/internal/SKILLS_ROOT.js +23 -0
- package/lib/internal/SKILLS_ROOT.js.map +1 -0
- package/lib/internal/STORY_CONTRACTS.d.ts +16 -0
- package/lib/internal/STORY_CONTRACTS.js +20 -0
- package/lib/internal/STORY_CONTRACTS.js.map +1 -0
- package/lib/internal/assertProductionContractLayout.d.ts +23 -0
- package/lib/internal/assertProductionContractLayout.js +41 -0
- package/lib/internal/assertProductionContractLayout.js.map +1 -0
- package/lib/internal/createReferenceRoot.d.ts +22 -0
- package/lib/internal/createReferenceRoot.js +35 -0
- package/lib/internal/createReferenceRoot.js.map +1 -0
- package/lib/internal/resolveSkillsDirectory.d.ts +22 -0
- package/lib/internal/resolveSkillsDirectory.js +36 -0
- package/lib/internal/resolveSkillsDirectory.js.map +1 -0
- package/lib/narrative/AuthoredLayer.d.ts +13 -0
- package/lib/narrative/AuthoredLayer.js +3 -0
- package/lib/narrative/AuthoredLayer.js.map +1 -0
- package/lib/narrative/AuthoredPass.d.ts +16 -0
- package/lib/narrative/AuthoredPass.js +3 -0
- package/lib/narrative/AuthoredPass.js.map +1 -0
- package/lib/narrative/EvidenceMetadataRewriteOwnership.d.ts +16 -0
- package/lib/narrative/EvidenceMetadataRewriteOwnership.js +3 -0
- package/lib/narrative/EvidenceMetadataRewriteOwnership.js.map +1 -0
- package/lib/narrative/IEvidenceMetadataRenderedSample.d.ts +20 -0
- package/lib/narrative/IEvidenceMetadataRenderedSample.js +3 -0
- package/lib/narrative/IEvidenceMetadataRenderedSample.js.map +1 -0
- package/lib/narrative/IEvidenceMetadataRewriteFile.d.ts +16 -0
- package/lib/narrative/IEvidenceMetadataRewriteFile.js +3 -0
- package/lib/narrative/IEvidenceMetadataRewriteFile.js.map +1 -0
- package/lib/narrative/IEvidenceMetadataRewriteProps.d.ts +28 -0
- package/lib/narrative/IEvidenceMetadataRewriteProps.js +3 -0
- package/lib/narrative/IEvidenceMetadataRewriteProps.js.map +1 -0
- package/lib/narrative/IEvidenceMetadataRewriteReport.d.ts +21 -0
- package/lib/narrative/IEvidenceMetadataRewriteReport.js +3 -0
- package/lib/narrative/IEvidenceMetadataRewriteReport.js.map +1 -0
- package/lib/narrative/IPackageChecklistClaimProps.d.ts +71 -0
- package/lib/narrative/IPackageChecklistClaimProps.js +3 -0
- package/lib/narrative/IPackageChecklistClaimProps.js.map +1 -0
- package/lib/narrative/IPackageContractProps.d.ts +67 -0
- package/lib/narrative/IPackageContractProps.js +3 -0
- package/lib/narrative/IPackageContractProps.js.map +1 -0
- package/lib/narrative/IPackagePopulationContractProps.d.ts +35 -0
- package/lib/narrative/IPackagePopulationContractProps.js +3 -0
- package/lib/narrative/IPackagePopulationContractProps.js.map +1 -0
- package/lib/narrative/IProductionConfigProps.d.ts +59 -0
- package/lib/narrative/IProductionConfigProps.js +3 -0
- package/lib/narrative/IProductionConfigProps.js.map +1 -0
- package/lib/narrative/IProductionConstruction.d.ts +49 -0
- package/lib/narrative/IProductionConstruction.js +3 -0
- package/lib/narrative/IProductionConstruction.js.map +1 -0
- package/lib/narrative/IProductionLayerStages.d.ts +15 -0
- package/lib/narrative/IProductionLayerStages.js +3 -0
- package/lib/narrative/IProductionLayerStages.js.map +1 -0
- package/lib/narrative/NarrativeLayer.d.ts +14 -0
- package/lib/narrative/NarrativeLayer.js +3 -0
- package/lib/narrative/NarrativeLayer.js.map +1 -0
- package/lib/narrative/NarrativeScope.d.ts +24 -0
- package/lib/narrative/NarrativeScope.js +3 -0
- package/lib/narrative/NarrativeScope.js.map +1 -0
- package/lib/narrative/ProductionStage.d.ts +9 -0
- package/lib/narrative/ProductionStage.js +3 -0
- package/lib/narrative/ProductionStage.js.map +1 -0
- package/lib/narrative/createBriefFiles.d.ts +16 -0
- package/lib/narrative/createBriefFiles.js +23 -0
- package/lib/narrative/createBriefFiles.js.map +1 -0
- package/lib/narrative/createNarrativeUnitFiles.d.ts +25 -0
- package/lib/narrative/createNarrativeUnitFiles.js +39 -0
- package/lib/narrative/createNarrativeUnitFiles.js.map +1 -0
- package/lib/narrative/createPackageChecklistClaim.d.ts +22 -0
- package/lib/narrative/createPackageChecklistClaim.js +100 -0
- package/lib/narrative/createPackageChecklistClaim.js.map +1 -0
- package/lib/narrative/createPackageContract.d.ts +18 -0
- package/lib/narrative/createPackageContract.js +40 -0
- package/lib/narrative/createPackageContract.js.map +1 -0
- package/lib/narrative/createPackagePopulationContract.d.ts +19 -0
- package/lib/narrative/createPackagePopulationContract.js +70 -0
- package/lib/narrative/createPackagePopulationContract.js.map +1 -0
- package/lib/narrative/createProductionClaims.d.ts +17 -0
- package/lib/narrative/createProductionClaims.js +22 -0
- package/lib/narrative/createProductionClaims.js.map +1 -0
- package/lib/narrative/createProductionConfig.d.ts +14 -0
- package/lib/narrative/createProductionConfig.js +19 -0
- package/lib/narrative/createProductionConfig.js.map +1 -0
- package/lib/narrative/createSettingsFiles.d.ts +14 -0
- package/lib/narrative/createSettingsFiles.js +25 -0
- package/lib/narrative/createSettingsFiles.js.map +1 -0
- package/lib/narrative/index.d.ts +27 -0
- package/lib/narrative/index.js +44 -0
- package/lib/narrative/index.js.map +1 -0
- package/lib/narrative/internal/AUTHORED_LAYERS.d.ts +13 -0
- package/lib/narrative/internal/AUTHORED_LAYERS.js +22 -0
- package/lib/narrative/internal/AUTHORED_LAYERS.js.map +1 -0
- package/lib/narrative/internal/REALIZED_LAYERS.d.ts +16 -0
- package/lib/narrative/internal/REALIZED_LAYERS.js +19 -0
- package/lib/narrative/internal/REALIZED_LAYERS.js.map +1 -0
- package/lib/narrative/internal/SETTINGS_DOMAINS.d.ts +8 -0
- package/lib/narrative/internal/SETTINGS_DOMAINS.js +20 -0
- package/lib/narrative/internal/SETTINGS_DOMAINS.js.map +1 -0
- package/lib/narrative/internal/claims/createDiscoveryClaim.d.ts +32 -0
- package/lib/narrative/internal/claims/createDiscoveryClaim.js +48 -0
- package/lib/narrative/internal/claims/createDiscoveryClaim.js.map +1 -0
- package/lib/narrative/internal/claims/createExpressionObligationClaims.d.ts +25 -0
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js +100 -0
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js.map +1 -0
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.d.ts +18 -0
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js +49 -0
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js.map +1 -0
- package/lib/narrative/internal/claims/createLayerClaims.d.ts +31 -0
- package/lib/narrative/internal/claims/createLayerClaims.js +153 -0
- package/lib/narrative/internal/claims/createLayerClaims.js.map +1 -0
- package/lib/narrative/internal/claims/createOutlineClaims.d.ts +31 -0
- package/lib/narrative/internal/claims/createOutlineClaims.js +127 -0
- package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -0
- package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +25 -0
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js +93 -0
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js.map +1 -0
- package/lib/narrative/internal/claims/createReviewClaims.d.ts +34 -0
- package/lib/narrative/internal/claims/createReviewClaims.js +224 -0
- package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -0
- package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +18 -0
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js +40 -0
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js.map +1 -0
- package/lib/narrative/internal/collectProductionClaims.d.ts +14 -0
- package/lib/narrative/internal/collectProductionClaims.js +59 -0
- package/lib/narrative/internal/collectProductionClaims.js.map +1 -0
- package/lib/narrative/internal/constructionStage.d.ts +15 -0
- package/lib/narrative/internal/constructionStage.js +18 -0
- package/lib/narrative/internal/constructionStage.js.map +1 -0
- package/lib/narrative/internal/createGraphConfig.d.ts +23 -0
- package/lib/narrative/internal/createGraphConfig.js +31 -0
- package/lib/narrative/internal/createGraphConfig.js.map +1 -0
- package/lib/narrative/internal/hasNaturalness.d.ts +14 -0
- package/lib/narrative/internal/hasNaturalness.js +19 -0
- package/lib/narrative/internal/hasNaturalness.js.map +1 -0
- package/lib/narrative/internal/isCanonLayer.d.ts +13 -0
- package/lib/narrative/internal/isCanonLayer.js +18 -0
- package/lib/narrative/internal/isCanonLayer.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js +16 -0
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/EvidenceDeclarationKind.d.ts +9 -0
- package/lib/narrative/internal/metadataRewrite/EvidenceDeclarationKind.js +3 -0
- package/lib/narrative/internal/metadataRewrite/EvidenceDeclarationKind.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js +16 -0
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js +16 -0
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/IEvidenceHeading.d.ts +19 -0
- package/lib/narrative/internal/metadataRewrite/IEvidenceHeading.js +3 -0
- package/lib/narrative/internal/metadataRewrite/IEvidenceHeading.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/IEvidenceSection.d.ts +19 -0
- package/lib/narrative/internal/metadataRewrite/IEvidenceSection.js +3 -0
- package/lib/narrative/internal/metadataRewrite/IEvidenceSection.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/IMetadataFragment.d.ts +14 -0
- package/lib/narrative/internal/metadataRewrite/IMetadataFragment.js +3 -0
- package/lib/narrative/internal/metadataRewrite/IMetadataFragment.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/IProjectionSegment.d.ts +16 -0
- package/lib/narrative/internal/metadataRewrite/IProjectionSegment.js +3 -0
- package/lib/narrative/internal/metadataRewrite/IProjectionSegment.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/IProtectedProjection.d.ts +22 -0
- package/lib/narrative/internal/metadataRewrite/IProtectedProjection.js +3 -0
- package/lib/narrative/internal/metadataRewrite/IProtectedProjection.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/REVIEW.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/REVIEW.js +16 -0
- package/lib/narrative/internal/metadataRewrite/REVIEW.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js +23 -0
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/UTF8.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/UTF8.js +20 -0
- package/lib/narrative/internal/metadataRewrite/UTF8.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/between.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/between.js +18 -0
- package/lib/narrative/internal/metadataRewrite/between.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/continuation.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/continuation.js +19 -0
- package/lib/narrative/internal/metadataRewrite/continuation.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/declarationKind.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/declarationKind.js +26 -0
- package/lib/narrative/internal/metadataRewrite/declarationKind.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/decode.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/decode.js +26 -0
- package/lib/narrative/internal/metadataRewrite/decode.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/directory.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/directory.js +26 -0
- package/lib/narrative/internal/metadataRewrite/directory.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/errorMessage.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/errorMessage.js +18 -0
- package/lib/narrative/internal/metadataRewrite/errorMessage.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.js +35 -0
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/evidenceSections.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/evidenceSections.js +106 -0
- package/lib/narrative/internal/metadataRewrite/evidenceSections.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/findClose.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/findClose.js +21 -0
- package/lib/narrative/internal/metadataRewrite/findClose.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/firstDifference.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/firstDifference.js +22 -0
- package/lib/narrative/internal/metadataRewrite/firstDifference.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js +20 -0
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js +78 -0
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/isDeclaration.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/isDeclaration.js +19 -0
- package/lib/narrative/internal/metadataRewrite/isDeclaration.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/isNodeError.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/isNodeError.js +18 -0
- package/lib/narrative/internal/metadataRewrite/isNodeError.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/lineEnding.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/lineEnding.js +19 -0
- package/lib/narrative/internal/metadataRewrite/lineEnding.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/locate.d.ts +15 -0
- package/lib/narrative/internal/metadataRewrite/locate.js +20 -0
- package/lib/narrative/internal/metadataRewrite/locate.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/markdownFiles.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/markdownFiles.js +33 -0
- package/lib/narrative/internal/metadataRewrite/markdownFiles.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.js +23 -0
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/normalizeFile.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/normalizeFile.js +33 -0
- package/lib/narrative/internal/metadataRewrite/normalizeFile.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js +25 -0
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/occurrences.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/occurrences.js +19 -0
- package/lib/narrative/internal/metadataRewrite/occurrences.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/originalOffset.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/originalOffset.js +24 -0
- package/lib/narrative/internal/metadataRewrite/originalOffset.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/project.d.ts +14 -0
- package/lib/narrative/internal/metadataRewrite/project.js +175 -0
- package/lib/narrative/internal/metadataRewrite/project.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.js +43 -0
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/replacementSafety.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/replacementSafety.js +36 -0
- package/lib/narrative/internal/metadataRewrite/replacementSafety.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/sameMetadata.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/sameMetadata.js +20 -0
- package/lib/narrative/internal/metadataRewrite/sameMetadata.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/selectFiles.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/selectFiles.js +28 -0
- package/lib/narrative/internal/metadataRewrite/selectFiles.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js +22 -0
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/textLocation.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/textLocation.js +21 -0
- package/lib/narrative/internal/metadataRewrite/textLocation.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.d.ts +17 -0
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js +48 -0
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/withoutEnding.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/withoutEnding.js +18 -0
- package/lib/narrative/internal/metadataRewrite/withoutEnding.js.map +1 -0
- package/lib/narrative/internal/productionLayers.d.ts +14 -0
- package/lib/narrative/internal/productionLayers.js +22 -0
- package/lib/narrative/internal/productionLayers.js.map +1 -0
- package/lib/narrative/internal/readSettingsFiles.d.ts +19 -0
- package/lib/narrative/internal/readSettingsFiles.js +101 -0
- package/lib/narrative/internal/readSettingsFiles.js.map +1 -0
- package/lib/narrative/internal/references/createCoverageReference.d.ts +29 -0
- package/lib/narrative/internal/references/createCoverageReference.js +39 -0
- package/lib/narrative/internal/references/createCoverageReference.js.map +1 -0
- package/lib/narrative/internal/references/createDiscoveryReferences.d.ts +26 -0
- package/lib/narrative/internal/references/createDiscoveryReferences.js +44 -0
- package/lib/narrative/internal/references/createDiscoveryReferences.js.map +1 -0
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.d.ts +13 -0
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js +26 -0
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js.map +1 -0
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.d.ts +21 -0
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +32 -0
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js.map +1 -0
- package/lib/narrative/internal/references/createLineageReference.d.ts +23 -0
- package/lib/narrative/internal/references/createLineageReference.js +36 -0
- package/lib/narrative/internal/references/createLineageReference.js.map +1 -0
- package/lib/narrative/internal/references/createLocalContractReference.d.ts +24 -0
- package/lib/narrative/internal/references/createLocalContractReference.js +40 -0
- package/lib/narrative/internal/references/createLocalContractReference.js.map +1 -0
- package/lib/narrative/internal/references/createPrincipleReferences.d.ts +31 -0
- package/lib/narrative/internal/references/createPrincipleReferences.js +53 -0
- package/lib/narrative/internal/references/createPrincipleReferences.js.map +1 -0
- package/lib/narrative/internal/references/createSettingReferences.d.ts +15 -0
- package/lib/narrative/internal/references/createSettingReferences.js +36 -0
- package/lib/narrative/internal/references/createSettingReferences.js.map +1 -0
- package/lib/narrative/internal/references/createSharedReference.d.ts +38 -0
- package/lib/narrative/internal/references/createSharedReference.js +45 -0
- package/lib/narrative/internal/references/createSharedReference.js.map +1 -0
- package/lib/narrative/internal/references/createUpstreamReference.d.ts +22 -0
- package/lib/narrative/internal/references/createUpstreamReference.js +31 -0
- package/lib/narrative/internal/references/createUpstreamReference.js.map +1 -0
- package/lib/narrative/internal/references/layerFiles.d.ts +19 -0
- package/lib/narrative/internal/references/layerFiles.js +31 -0
- package/lib/narrative/internal/references/layerFiles.js.map +1 -0
- package/lib/narrative/internal/settingsEntryAnchor.d.ts +12 -0
- package/lib/narrative/internal/settingsEntryAnchor.js +18 -0
- package/lib/narrative/internal/settingsEntryAnchor.js.map +1 -0
- package/lib/narrative/internal/topology/createTopologyFiles.d.ts +14 -0
- package/lib/narrative/internal/topology/createTopologyFiles.js +20 -0
- package/lib/narrative/internal/topology/createTopologyFiles.js.map +1 -0
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.d.ts +16 -0
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js +20 -0
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js.map +1 -0
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.d.ts +13 -0
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js +61 -0
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js.map +1 -0
- package/lib/narrative/internal/utilities/createContractDirectory.d.ts +24 -0
- package/lib/narrative/internal/utilities/createContractDirectory.js +38 -0
- package/lib/narrative/internal/utilities/createContractDirectory.js.map +1 -0
- package/lib/narrative/internal/utilities/createContractRoot.d.ts +29 -0
- package/lib/narrative/internal/utilities/createContractRoot.js +36 -0
- package/lib/narrative/internal/utilities/createContractRoot.js.map +1 -0
- package/lib/narrative/internal/utilities/createEvidenceFiles.d.ts +12 -0
- package/lib/narrative/internal/utilities/createEvidenceFiles.js +24 -0
- package/lib/narrative/internal/utilities/createEvidenceFiles.js.map +1 -0
- package/lib/narrative/internal/utilities/createUnitFiles.d.ts +21 -0
- package/lib/narrative/internal/utilities/createUnitFiles.js +32 -0
- package/lib/narrative/internal/utilities/createUnitFiles.js.map +1 -0
- package/lib/narrative/internal/utilities/passRoot.d.ts +16 -0
- package/lib/narrative/internal/utilities/passRoot.js +22 -0
- package/lib/narrative/internal/utilities/passRoot.js.map +1 -0
- package/lib/narrative/internal/utilities/referenceLocation.d.ts +28 -0
- package/lib/narrative/internal/utilities/referenceLocation.js +39 -0
- package/lib/narrative/internal/utilities/referenceLocation.js.map +1 -0
- package/lib/narrative/internal/validateSettingsOutline.d.ts +16 -0
- package/lib/narrative/internal/validateSettingsOutline.js +135 -0
- package/lib/narrative/internal/validateSettingsOutline.js.map +1 -0
- package/lib/narrative/isFirstPartPilot.d.ts +13 -0
- package/lib/narrative/isFirstPartPilot.js +18 -0
- package/lib/narrative/isFirstPartPilot.js.map +1 -0
- package/lib/narrative/stripNaturalnessComments.d.ts +12 -0
- package/lib/narrative/stripNaturalnessComments.js +34 -0
- package/lib/narrative/stripNaturalnessComments.js.map +1 -0
- package/lib/narrative/verifyEvidenceMetadataRewrite.d.ts +20 -0
- package/lib/narrative/verifyEvidenceMetadataRewrite.js +115 -0
- package/lib/narrative/verifyEvidenceMetadataRewrite.js.map +1 -0
- package/package.json +49 -3
- package/src/IAutoMovieDevelopmentProps.ts +40 -0
- package/src/IAutoMovieEvidenceConfigProps.ts +45 -0
- package/src/IAutoMovieNarrativeProps.ts +30 -0
- package/src/createDevelopmentContractClaims.ts +113 -0
- package/src/createEngineeringClaims.ts +126 -0
- package/src/createEvidenceConfig.ts +73 -0
- package/src/createResearchClaims.ts +54 -0
- package/src/index.ts +8 -0
- package/src/internal/IContractLocation.ts +25 -0
- package/src/internal/PRODUCTION_CONTRACTS.ts +19 -0
- package/src/internal/SKILLS_ROOT.ts +19 -0
- package/src/internal/STORY_CONTRACTS.ts +16 -0
- package/src/internal/assertProductionContractLayout.ts +50 -0
- package/src/internal/createReferenceRoot.ts +32 -0
- package/src/internal/resolveSkillsDirectory.ts +32 -0
- package/src/narrative/AuthoredLayer.ts +14 -0
- package/src/narrative/AuthoredPass.ts +16 -0
- package/src/narrative/EvidenceMetadataRewriteOwnership.ts +20 -0
- package/src/narrative/IEvidenceMetadataRenderedSample.ts +24 -0
- package/src/narrative/IEvidenceMetadataRewriteFile.ts +18 -0
- package/src/narrative/IEvidenceMetadataRewriteProps.ts +34 -0
- package/src/narrative/IEvidenceMetadataRewriteReport.ts +25 -0
- package/src/narrative/IPackageChecklistClaimProps.ts +80 -0
- package/src/narrative/IPackageContractProps.ts +76 -0
- package/src/narrative/IPackagePopulationContractProps.ts +41 -0
- package/src/narrative/IProductionConfigProps.ts +68 -0
- package/src/narrative/IProductionConstruction.ts +55 -0
- package/src/narrative/IProductionLayerStages.ts +16 -0
- package/src/narrative/NarrativeLayer.ts +14 -0
- package/src/narrative/NarrativeScope.ts +27 -0
- package/src/narrative/ProductionStage.ts +9 -0
- package/src/narrative/createBriefFiles.ts +22 -0
- package/src/narrative/createNarrativeUnitFiles.ts +44 -0
- package/src/narrative/createPackageChecklistClaim.ts +144 -0
- package/src/narrative/createPackageContract.ts +55 -0
- package/src/narrative/createPackagePopulationContract.ts +112 -0
- package/src/narrative/createProductionClaims.ts +24 -0
- package/src/narrative/createProductionConfig.ts +21 -0
- package/src/narrative/createSettingsFiles.ts +24 -0
- package/src/narrative/index.ts +27 -0
- package/src/narrative/internal/AUTHORED_LAYERS.ts +20 -0
- package/src/narrative/internal/REALIZED_LAYERS.ts +18 -0
- package/src/narrative/internal/SETTINGS_DOMAINS.ts +16 -0
- package/src/narrative/internal/claims/createDiscoveryClaim.ts +53 -0
- package/src/narrative/internal/claims/createExpressionObligationClaims.ts +134 -0
- package/src/narrative/internal/claims/createInstructionCoverageClaim.ts +53 -0
- package/src/narrative/internal/claims/createLayerClaims.ts +178 -0
- package/src/narrative/internal/claims/createOutlineClaims.ts +138 -0
- package/src/narrative/internal/claims/createPopulationObligationClaims.ts +134 -0
- package/src/narrative/internal/claims/createReviewClaims.ts +271 -0
- package/src/narrative/internal/claims/createSettingCoverageClaim.ts +48 -0
- package/src/narrative/internal/collectProductionClaims.ts +79 -0
- package/src/narrative/internal/constructionStage.ts +21 -0
- package/src/narrative/internal/createGraphConfig.ts +34 -0
- package/src/narrative/internal/hasNaturalness.ts +17 -0
- package/src/narrative/internal/isCanonLayer.ts +18 -0
- package/src/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.ts +13 -0
- package/src/narrative/internal/metadataRewrite/EvidenceDeclarationKind.ts +9 -0
- package/src/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.ts +13 -0
- package/src/narrative/internal/metadataRewrite/HEADING_REVIEW.ts +13 -0
- package/src/narrative/internal/metadataRewrite/IEvidenceHeading.ts +23 -0
- package/src/narrative/internal/metadataRewrite/IEvidenceSection.ts +23 -0
- package/src/narrative/internal/metadataRewrite/IMetadataFragment.ts +15 -0
- package/src/narrative/internal/metadataRewrite/IProjectionSegment.ts +18 -0
- package/src/narrative/internal/metadataRewrite/IProtectedProjection.ts +27 -0
- package/src/narrative/internal/metadataRewrite/REVIEW.ts +13 -0
- package/src/narrative/internal/metadataRewrite/SUSPICIOUS.ts +19 -0
- package/src/narrative/internal/metadataRewrite/UTF8.ts +17 -0
- package/src/narrative/internal/metadataRewrite/between.ts +18 -0
- package/src/narrative/internal/metadataRewrite/continuation.ts +16 -0
- package/src/narrative/internal/metadataRewrite/declarationKind.ts +28 -0
- package/src/narrative/internal/metadataRewrite/decode.ts +25 -0
- package/src/narrative/internal/metadataRewrite/directory.ts +22 -0
- package/src/narrative/internal/metadataRewrite/errorMessage.ts +14 -0
- package/src/narrative/internal/metadataRewrite/evidenceHeading.ts +33 -0
- package/src/narrative/internal/metadataRewrite/evidenceSections.ts +112 -0
- package/src/narrative/internal/metadataRewrite/findClose.ts +16 -0
- package/src/narrative/internal/metadataRewrite/firstDifference.ts +17 -0
- package/src/narrative/internal/metadataRewrite/flatFingerprintStart.ts +17 -0
- package/src/narrative/internal/metadataRewrite/invalidUtf8Offset.ts +84 -0
- package/src/narrative/internal/metadataRewrite/isDeclaration.ts +16 -0
- package/src/narrative/internal/metadataRewrite/isNodeError.ts +14 -0
- package/src/narrative/internal/metadataRewrite/lineEnding.ts +16 -0
- package/src/narrative/internal/metadataRewrite/locate.ts +19 -0
- package/src/narrative/internal/metadataRewrite/markdownFiles.ts +31 -0
- package/src/narrative/internal/metadataRewrite/metadataOwnership.ts +27 -0
- package/src/narrative/internal/metadataRewrite/normalizeFile.ts +29 -0
- package/src/narrative/internal/metadataRewrite/occurrenceOffsets.ts +20 -0
- package/src/narrative/internal/metadataRewrite/occurrences.ts +16 -0
- package/src/narrative/internal/metadataRewrite/originalOffset.ts +28 -0
- package/src/narrative/internal/metadataRewrite/project.ts +219 -0
- package/src/narrative/internal/metadataRewrite/protectedFileKind.ts +34 -0
- package/src/narrative/internal/metadataRewrite/replacementSafety.ts +42 -0
- package/src/narrative/internal/metadataRewrite/sameMetadata.ts +26 -0
- package/src/narrative/internal/metadataRewrite/selectFiles.ts +32 -0
- package/src/narrative/internal/metadataRewrite/singleLineDeclaration.ts +18 -0
- package/src/narrative/internal/metadataRewrite/textLocation.ts +21 -0
- package/src/narrative/internal/metadataRewrite/validateRenderedSample.ts +65 -0
- package/src/narrative/internal/metadataRewrite/withoutEnding.ts +14 -0
- package/src/narrative/internal/productionLayers.ts +23 -0
- package/src/narrative/internal/readSettingsFiles.ts +115 -0
- package/src/narrative/internal/references/createCoverageReference.ts +43 -0
- package/src/narrative/internal/references/createDiscoveryReferences.ts +54 -0
- package/src/narrative/internal/references/createLanguageDiscoveryReferences.ts +31 -0
- package/src/narrative/internal/references/createLanguagePrincipleReferences.ts +46 -0
- package/src/narrative/internal/references/createLineageReference.ts +41 -0
- package/src/narrative/internal/references/createLocalContractReference.ts +42 -0
- package/src/narrative/internal/references/createPrincipleReferences.ts +71 -0
- package/src/narrative/internal/references/createSettingReferences.ts +47 -0
- package/src/narrative/internal/references/createSharedReference.ts +50 -0
- package/src/narrative/internal/references/createUpstreamReference.ts +35 -0
- package/src/narrative/internal/references/layerFiles.ts +29 -0
- package/src/narrative/internal/settingsEntryAnchor.ts +14 -0
- package/src/narrative/internal/topology/createTopologyFiles.ts +22 -0
- package/src/narrative/internal/utilities/PACKAGE_DOCS_ROOT.ts +16 -0
- package/src/narrative/internal/utilities/assertProductionEvidenceSources.ts +75 -0
- package/src/narrative/internal/utilities/createContractDirectory.ts +40 -0
- package/src/narrative/internal/utilities/createContractRoot.ts +40 -0
- package/src/narrative/internal/utilities/createEvidenceFiles.ts +23 -0
- package/src/narrative/internal/utilities/createUnitFiles.ts +32 -0
- package/src/narrative/internal/utilities/passRoot.ts +20 -0
- package/src/narrative/internal/utilities/referenceLocation.ts +47 -0
- package/src/narrative/internal/validateSettingsOutline.ts +156 -0
- package/src/narrative/isFirstPartPilot.ts +16 -0
- package/src/narrative/stripNaturalnessComments.ts +31 -0
- package/src/narrative/verifyEvidenceMetadataRewrite.ts +169 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.layerFiles = layerFiles;
|
|
4
|
+
const REALIZED_LAYERS_1 = require("../REALIZED_LAYERS");
|
|
5
|
+
const isCanonLayer_1 = require("../isCanonLayer");
|
|
6
|
+
/**
|
|
7
|
+
* Names the layer-scoped documents one layer answers, narrowest last.
|
|
8
|
+
*
|
|
9
|
+
* Placement is decided by who can truthfully answer an item, so the axis is
|
|
10
|
+
* the same wherever it appears: everyone, then the layers that inherit a unit,
|
|
11
|
+
* then the layers holding literal text, then one layer. Both gates and both
|
|
12
|
+
* scopes reuse it, because the question of who can answer does not change with
|
|
13
|
+
* when the answer is owed.
|
|
14
|
+
*
|
|
15
|
+
* @evidence contracts/development/implementation.md#principled-implementation The fixed candidate order is common, optional inherited-narrative, optional literal-text and exact layer, matching the respondent populations declared by the four-layer pipeline.
|
|
16
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One shared axis serves discovery/principle/obligation selection without duplicating layer eligibility decisions across gates or language scopes.
|
|
17
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Canon layers omit inherited narrative duties and only REALIZED_LAYERS receives literal-text duties, both explicit semantic differences of the supported pipeline.
|
|
18
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains narrowest-last order and why eligibility depends on the respondent rather than gate timing.
|
|
19
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms At most four filenames and one constant-time Set membership check are produced, giving constant work and space independent of manuscript length.
|
|
20
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work REALIZED_LAYERS is the shared eligibility set, while the returned array is fresh so filtering or mutation by one family cannot alter another family selection.
|
|
21
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The at-most-four-element result is caller-owned and no cache or resource handle is retained.
|
|
22
|
+
*/
|
|
23
|
+
function layerFiles(layer) {
|
|
24
|
+
return [
|
|
25
|
+
"common.md",
|
|
26
|
+
...((0, isCanonLayer_1.isCanonLayer)(layer) ? [] : ["narratives.md"]),
|
|
27
|
+
...(REALIZED_LAYERS_1.REALIZED_LAYERS.has(layer) ? ["realized.md"] : []),
|
|
28
|
+
`${layer}.md`,
|
|
29
|
+
];
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=layerFiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layerFiles.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/layerFiles.ts"],"names":[],"mappings":";;;AACA,wDAAqD;AACrD,kDAA+C;AAE/C;;;;;;;;;;;;;;;;GAgBG;AACH,oBAA2B,KAAoB;IAC7C,OAAO;QACL,WAAW;QACX,GAAG,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;QACjD,GAAG,CAAC,iCAAe,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtD,GAAG,KAAK,KAAK;KACd,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Encodes a relative canon path as a stable outline H3 anchor without losing folder identity.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/implementation.md#principled-implementation Removing the terminal Markdown extension and encoding folder separators as double hyphens retains classified path identity in an explicit outline anchor; numbered lower-kebab source paths supply the supported alphabet.
|
|
5
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The encoder isolates file-to-outline identity spelling used by outline creation and validation.
|
|
6
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The separator encoding follows the supported settings layout and does not inspect consumer names or file contents.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies a stable relative-path-derived H3 anchor and explains why folder identity is kept.
|
|
8
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The suffix replacement and separator replacement scan the file path with linear string allocation.
|
|
9
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This scalar encoder coordinates no reusable requests or effectful work.
|
|
10
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned anchor string escapes; no map, descriptor or task is retained.
|
|
11
|
+
*/
|
|
12
|
+
export declare function settingsEntryAnchor(file: string): string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.settingsEntryAnchor = settingsEntryAnchor;
|
|
4
|
+
/**
|
|
5
|
+
* Encodes a relative canon path as a stable outline H3 anchor without losing folder identity.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/implementation.md#principled-implementation Removing the terminal Markdown extension and encoding folder separators as double hyphens retains classified path identity in an explicit outline anchor; numbered lower-kebab source paths supply the supported alphabet.
|
|
8
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The encoder isolates file-to-outline identity spelling used by outline creation and validation.
|
|
9
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The separator encoding follows the supported settings layout and does not inspect consumer names or file contents.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies a stable relative-path-derived H3 anchor and explains why folder identity is kept.
|
|
11
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The suffix replacement and separator replacement scan the file path with linear string allocation.
|
|
12
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This scalar encoder coordinates no reusable requests or effectful work.
|
|
13
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned anchor string escapes; no map, descriptor or task is retained.
|
|
14
|
+
*/
|
|
15
|
+
function settingsEntryAnchor(file) {
|
|
16
|
+
return file.replace(/\.md$/u, "").replaceAll("/", "--");
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=settingsEntryAnchor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settingsEntryAnchor.js","sourceRoot":"","sources":["../../../src/narrative/internal/settingsEntryAnchor.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,6BAAoC,IAAY;IAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { NarrativeLayer } from "../../NarrativeLayer";
|
|
2
|
+
import type { NarrativeScope } from "../../NarrativeScope";
|
|
3
|
+
/**
|
|
4
|
+
* Captures indexes and misplaced files without widening an exact pilot slice.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/implementation.md#principled-implementation Topology captures all descendants of a layer so indexes and malformed paths remain visible, narrowing scripts/screenplay only to the exact declared pilot part; treatments stay flat at validation time.
|
|
7
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One selector helper separates broad topology capture from the partitioned/flat-short authored-unit selector used by ordinary evidence.
|
|
8
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The first-part pilot is a declared production scope, so the selector retains that exact slice instead of widening to other parts.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment explains why indexes and misplaced files are included while an exact pilot slice stays narrow.
|
|
10
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One conditional constructs one glob string; work and returned storage scale only with layer and optional part text lengths.
|
|
11
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The selector is derived from the current scope each call, while downstream native inventory capture supplies reuse across topology inspections.
|
|
12
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The one-element returned array and string belong to the caller; no filesystem traversal, handle or retained cache is created.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createTopologyFiles(layer: NarrativeLayer, scope: NarrativeScope): string[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createTopologyFiles = createTopologyFiles;
|
|
4
|
+
/**
|
|
5
|
+
* Captures indexes and misplaced files without widening an exact pilot slice.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/implementation.md#principled-implementation Topology captures all descendants of a layer so indexes and malformed paths remain visible, narrowing scripts/screenplay only to the exact declared pilot part; treatments stay flat at validation time.
|
|
8
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One selector helper separates broad topology capture from the partitioned/flat-short authored-unit selector used by ordinary evidence.
|
|
9
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The first-part pilot is a declared production scope, so the selector retains that exact slice instead of widening to other parts.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment explains why indexes and misplaced files are included while an exact pilot slice stays narrow.
|
|
11
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One conditional constructs one glob string; work and returned storage scale only with layer and optional part text lengths.
|
|
12
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The selector is derived from the current scope each call, while downstream native inventory capture supplies reuse across topology inspections.
|
|
13
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The one-element returned array and string belong to the caller; no filesystem traversal, handle or retained cache is created.
|
|
14
|
+
*/
|
|
15
|
+
function createTopologyFiles(layer, scope) {
|
|
16
|
+
return layer !== "treatments" && scope.mode === "first-part-pilot"
|
|
17
|
+
? [`${layer}/${scope.part}/**/*`]
|
|
18
|
+
: [`${layer}/**/*`];
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=createTopologyFiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTopologyFiles.js","sourceRoot":"","sources":["../../../../src/narrative/internal/topology/createTopologyFiles.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;;;GAUG;AACH,6BACE,KAAqB,EACrB,KAAqB;IAErB,OAAO,KAAK,KAAK,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,kBAAkB;QAChE,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,KAAK,CAAC,IAAI,OAAO,CAAC;QACjC,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,CAAC,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Names the package's docs folder.
|
|
3
|
+
*
|
|
4
|
+
* Authored claims select body or the naturalness working tree through `passRoot`.
|
|
5
|
+
* Only the instruction coverage reference uses this constant directly,
|
|
6
|
+
* because `docs/instructions` is input that belongs to neither pass.
|
|
7
|
+
*
|
|
8
|
+
* Principled implementation: The literal docs string is the package-relative document directory shared by pass roots and instruction references, rather than a resolved filesystem identity.
|
|
9
|
+
* Clear and simple design: One constant supplies the common directory spelling while passRoot owns the distinction between current body and naturalness working text.
|
|
10
|
+
* Prohibited implementation shortcuts: The docs directory is a declared production layout value; it is not selected from fixture names, measured output or host-specific paths.
|
|
11
|
+
* Meaningful documentation: The prose identifies which consumers use the constant directly and which select an authored pass through passRoot.
|
|
12
|
+
* Efficient algorithms: The string initializer is constant-sized and performs no filesystem or population traversal.
|
|
13
|
+
* Reuse equivalent work: Consumers reuse the same immutable string, so no equivalent derivation or invalidation mechanism is needed unless the source layout contract changes.
|
|
14
|
+
* Bound retention and release resources: One fixed string is retained for module lifetime; it has no dynamic population, file handle or task to release.
|
|
15
|
+
*/
|
|
16
|
+
export declare const PACKAGE_DOCS_ROOT: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PACKAGE_DOCS_ROOT = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Names the package's docs folder.
|
|
6
|
+
*
|
|
7
|
+
* Authored claims select body or the naturalness working tree through `passRoot`.
|
|
8
|
+
* Only the instruction coverage reference uses this constant directly,
|
|
9
|
+
* because `docs/instructions` is input that belongs to neither pass.
|
|
10
|
+
*
|
|
11
|
+
* Principled implementation: The literal docs string is the package-relative document directory shared by pass roots and instruction references, rather than a resolved filesystem identity.
|
|
12
|
+
* Clear and simple design: One constant supplies the common directory spelling while passRoot owns the distinction between current body and naturalness working text.
|
|
13
|
+
* Prohibited implementation shortcuts: The docs directory is a declared production layout value; it is not selected from fixture names, measured output or host-specific paths.
|
|
14
|
+
* Meaningful documentation: The prose identifies which consumers use the constant directly and which select an authored pass through passRoot.
|
|
15
|
+
* Efficient algorithms: The string initializer is constant-sized and performs no filesystem or population traversal.
|
|
16
|
+
* Reuse equivalent work: Consumers reuse the same immutable string, so no equivalent derivation or invalidation mechanism is needed unless the source layout contract changes.
|
|
17
|
+
* Bound retention and release resources: One fixed string is retained for module lifetime; it has no dynamic population, file handle or task to release.
|
|
18
|
+
*/
|
|
19
|
+
exports.PACKAGE_DOCS_ROOT = "docs";
|
|
20
|
+
//# sourceMappingURL=PACKAGE_DOCS_ROOT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PACKAGE_DOCS_ROOT.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/PACKAGE_DOCS_ROOT.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACU,QAAA,iBAAiB,GAAW,MAAM,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IProductionConfigProps } from "../../IProductionConfigProps";
|
|
2
|
+
/**
|
|
3
|
+
* Checks supported narrative routes and stage option shapes before graph creation.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Routes admit only their authored layers, long work alone admits an outline, each supported stage is disabled or evidence, resolveSkillsDirectory refuses a relative shared skills tree, and assertProductionContractLayout refuses production-owned contracts left in the retired skills location, both before any contract is probed.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure A single shape check precedes graph expansion; native Evidence owns claim and reference evaluation.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The same route and stage vocabulary applies to every production; it does not inspect graph results or confer approval.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation Errors identify unsupported routes, layers, outline choices, stage values, a relative skills tree and each legacy contract directory with its new home.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The closed five-layer vocabulary bounds validation to constant time and storage, plus two directory existence probes.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The fixed vocabularies are reused within one call; there is no expensive computation or cross-call cache.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only local scalar values and the route array are allocated; the synchronous probes acquire no retained file handle or task.
|
|
12
|
+
*/
|
|
13
|
+
export declare function assertProductionEvidenceSources(props: IProductionConfigProps): void;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertProductionEvidenceSources = assertProductionEvidenceSources;
|
|
4
|
+
const assertProductionContractLayout_1 = require("../../../internal/assertProductionContractLayout");
|
|
5
|
+
const resolveSkillsDirectory_1 = require("../../../internal/resolveSkillsDirectory");
|
|
6
|
+
const AUTHORED_LAYERS_1 = require("../AUTHORED_LAYERS");
|
|
7
|
+
const constructionStage_1 = require("../constructionStage");
|
|
8
|
+
const hasNaturalness_1 = require("../hasNaturalness");
|
|
9
|
+
const productionLayers_1 = require("../productionLayers");
|
|
10
|
+
/**
|
|
11
|
+
* Checks supported narrative routes and stage option shapes before graph creation.
|
|
12
|
+
*
|
|
13
|
+
* @evidence contracts/development/implementation.md#principled-implementation Routes admit only their authored layers, long work alone admits an outline, each supported stage is disabled or evidence, resolveSkillsDirectory refuses a relative shared skills tree, and assertProductionContractLayout refuses production-owned contracts left in the retired skills location, both before any contract is probed.
|
|
14
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure A single shape check precedes graph expansion; native Evidence owns claim and reference evaluation.
|
|
15
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The same route and stage vocabulary applies to every production; it does not inspect graph results or confer approval.
|
|
16
|
+
* @evidence contracts/development/common.md#meaningful-documentation Errors identify unsupported routes, layers, outline choices, stage values, a relative skills tree and each legacy contract directory with its new home.
|
|
17
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The closed five-layer vocabulary bounds validation to constant time and storage, plus two directory existence probes.
|
|
18
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The fixed vocabularies are reused within one call; there is no expensive computation or cross-call cache.
|
|
19
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only local scalar values and the route array are allocated; the synchronous probes acquire no retained file handle or task.
|
|
20
|
+
*/
|
|
21
|
+
function assertProductionEvidenceSources(props) {
|
|
22
|
+
if (!["long", "short", "asset"].includes(props.mode))
|
|
23
|
+
throw new Error("Unknown production route.");
|
|
24
|
+
// A relative shared tree or a production still keeping its own contracts
|
|
25
|
+
// in the retired skills location is refused before any contract is probed.
|
|
26
|
+
(0, resolveSkillsDirectory_1.resolveSkillsDirectory)(props);
|
|
27
|
+
(0, assertProductionContractLayout_1.assertProductionContractLayout)(props.location);
|
|
28
|
+
const routed = (0, productionLayers_1.productionLayers)(props);
|
|
29
|
+
for (const layer of AUTHORED_LAYERS_1.AUTHORED_LAYERS) {
|
|
30
|
+
if (routed.includes(layer))
|
|
31
|
+
continue;
|
|
32
|
+
if ((0, constructionStage_1.constructionStage)(props, layer) !== "disabled" ||
|
|
33
|
+
((0, hasNaturalness_1.hasNaturalness)(layer) && props.naturalness.screenplay !== "disabled"))
|
|
34
|
+
throw new Error("Layers outside the production route must stay disabled.");
|
|
35
|
+
}
|
|
36
|
+
if (props.mode !== "long" && props.construction.index === "evidence")
|
|
37
|
+
throw new Error("Only long productions author a settings outline.");
|
|
38
|
+
if (props.mode === "asset" && (props.claims?.length ?? 0) > 0)
|
|
39
|
+
throw new Error("Asset productions use supportClaims rather than narrative claims.");
|
|
40
|
+
if (props.construction.index !== undefined &&
|
|
41
|
+
props.construction.index !== "disabled" &&
|
|
42
|
+
props.construction.index !== "evidence")
|
|
43
|
+
throw new Error("Unknown outline stage.");
|
|
44
|
+
for (const layer of AUTHORED_LAYERS_1.AUTHORED_LAYERS)
|
|
45
|
+
for (const pass of ["construction", "naturalness"]) {
|
|
46
|
+
if (pass === "naturalness" && !(0, hasNaturalness_1.hasNaturalness)(layer))
|
|
47
|
+
continue;
|
|
48
|
+
const stage = pass === "construction"
|
|
49
|
+
? (0, constructionStage_1.constructionStage)(props, layer)
|
|
50
|
+
: props.naturalness.screenplay;
|
|
51
|
+
if (stage !== "disabled" && stage !== "evidence")
|
|
52
|
+
throw new Error("Unknown stage: a layer is disabled or evidence.");
|
|
53
|
+
}
|
|
54
|
+
if ("scripts" in props.naturalness)
|
|
55
|
+
throw new Error("Scripts finish in construction; remove naturalness.scripts.");
|
|
56
|
+
if ("settings" in props.naturalness ||
|
|
57
|
+
"brief" in props.naturalness ||
|
|
58
|
+
"treatments" in props.naturalness)
|
|
59
|
+
throw new Error("Settings, brief and treatments finish in construction.");
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=assertProductionEvidenceSources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertProductionEvidenceSources.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/assertProductionEvidenceSources.ts"],"names":[],"mappings":";;;AAAA,qGAAkG;AAClG,qFAAkF;AAGlF,wDAAqD;AACrD,4DAAyD;AACzD,sDAAmD;AACnD,0DAAuD;AAEvD;;;;;;;;;;GAUG;AACH,yCACE,KAA6B;IAE7B,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC;QAClD,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAE/C,yEAAyE;IACzE,2EAA2E;IAC3E,IAAA,+CAAsB,EAAC,KAAK,CAAC,CAAC;IAC9B,IAAA,+DAA8B,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAE/C,MAAM,MAAM,GAA6B,IAAA,mCAAgB,EAAC,KAAK,CAAC,CAAC;IACjE,KAAK,MAAM,KAAK,IAAI,iCAAe,EAAE,CAAC;QACpC,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,SAAS;QACrC,IACE,IAAA,qCAAiB,EAAC,KAAK,EAAE,KAAK,CAAC,KAAK,UAAU;YAC9C,CAAC,IAAA,+BAAc,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,UAAU,KAAK,UAAU,CAAC;YAEtE,MAAM,IAAI,KAAK,CACb,yDAAyD,CAC1D,CAAC;IACN,CAAC;IACD,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,KAAK,UAAU;QAClE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC;QAC3D,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAC;IACJ,IACE,KAAK,CAAC,YAAY,CAAC,KAAK,KAAK,SAAS;QACtC,KAAK,CAAC,YAAY,CAAC,KAAK,KAAK,UAAU;QACvC,KAAK,CAAC,YAAY,CAAC,KAAK,KAAK,UAAU;QAEvC,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,KAAK,MAAM,KAAK,IAAI,iCAAe;QACjC,KAAK,MAAM,IAAI,IAAI,CAAC,cAAc,EAAE,aAAa,CAAU,EAAE,CAAC;YAC5D,IAAI,IAAI,KAAK,aAAa,IAAI,CAAC,IAAA,+BAAc,EAAC,KAAK,CAAC;gBAAE,SAAS;YAC/D,MAAM,KAAK,GACT,IAAI,KAAK,cAAc;gBACrB,CAAC,CAAC,IAAA,qCAAiB,EAAC,KAAK,EAAE,KAAK,CAAC;gBACjC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC;YACnC,IAAI,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,UAAU;gBAC9C,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;QACvE,CAAC;IACH,IAAI,SAAS,IAAI,KAAK,CAAC,WAAW;QAChC,MAAM,IAAI,KAAK,CACb,6DAA6D,CAC9D,CAAC;IACJ,IACE,UAAU,IAAI,KAAK,CAAC,WAAW;QAC/B,OAAO,IAAI,KAAK,CAAC,WAAW;QAC5B,YAAY,IAAI,KAAK,CAAC,WAAW;QAEjC,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IContractLocation } from "../../../internal/IContractLocation";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the absolute contract tree that owns one contract family.
|
|
4
|
+
*
|
|
5
|
+
* Ownership decides the tree. The `shared` family ships with the bundled
|
|
6
|
+
* skills, so it resolves under the shared skills tree's `contracts/story`,
|
|
7
|
+
* which a workspace places at its root and a standalone production under its
|
|
8
|
+
* own `.agents/skills`. The `work` and `language` families are contracts the
|
|
9
|
+
* production itself adopts, so they always resolve under its own
|
|
10
|
+
* `docs/contracts`, whichever tree holds the shared ones.
|
|
11
|
+
*
|
|
12
|
+
* @param contracts The production location and optional shared tree; read, not retained.
|
|
13
|
+
* @param scope The contract family whose owner is wanted.
|
|
14
|
+
* @returns The absolute tree holding that family's folder; the family folder is not appended.
|
|
15
|
+
*
|
|
16
|
+
* @evidence contracts/development/implementation.md#principled-implementation The scaffold's ownership rule, bundled shared contracts in the skills tree's `contracts/story` and adopted work/language contracts in the production's `docs/contracts`, maps each family to one tree, joined from the layout constants by `path.join`.
|
|
17
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns the family-to-owner decision for every existence probe and, through createContractRoot, every contract reference root, so no caller rebuilds either tree from the location.
|
|
18
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No family falls back to another tree when a file is missing, and the retired `.agents/skills/contracts/story/{work,language}` location is never consulted; a missing contract stays missing where its owner keeps it.
|
|
19
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One branch and one path join, linear in the path length.
|
|
20
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
21
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
22
|
+
* @evidence contracts/development/common.md#meaningful-documentation States which tree owns each family in workspace and standalone layouts, and that the result stops above the family folder.
|
|
23
|
+
*/
|
|
24
|
+
export declare function createContractDirectory(contracts: IContractLocation, scope: "shared" | "language" | "work"): string;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createContractDirectory = createContractDirectory;
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
+
const PRODUCTION_CONTRACTS_1 = require("../../../internal/PRODUCTION_CONTRACTS");
|
|
9
|
+
const STORY_CONTRACTS_1 = require("../../../internal/STORY_CONTRACTS");
|
|
10
|
+
const resolveSkillsDirectory_1 = require("../../../internal/resolveSkillsDirectory");
|
|
11
|
+
/**
|
|
12
|
+
* Resolves the absolute contract tree that owns one contract family.
|
|
13
|
+
*
|
|
14
|
+
* Ownership decides the tree. The `shared` family ships with the bundled
|
|
15
|
+
* skills, so it resolves under the shared skills tree's `contracts/story`,
|
|
16
|
+
* which a workspace places at its root and a standalone production under its
|
|
17
|
+
* own `.agents/skills`. The `work` and `language` families are contracts the
|
|
18
|
+
* production itself adopts, so they always resolve under its own
|
|
19
|
+
* `docs/contracts`, whichever tree holds the shared ones.
|
|
20
|
+
*
|
|
21
|
+
* @param contracts The production location and optional shared tree; read, not retained.
|
|
22
|
+
* @param scope The contract family whose owner is wanted.
|
|
23
|
+
* @returns The absolute tree holding that family's folder; the family folder is not appended.
|
|
24
|
+
*
|
|
25
|
+
* @evidence contracts/development/implementation.md#principled-implementation The scaffold's ownership rule, bundled shared contracts in the skills tree's `contracts/story` and adopted work/language contracts in the production's `docs/contracts`, maps each family to one tree, joined from the layout constants by `path.join`.
|
|
26
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns the family-to-owner decision for every existence probe and, through createContractRoot, every contract reference root, so no caller rebuilds either tree from the location.
|
|
27
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No family falls back to another tree when a file is missing, and the retired `.agents/skills/contracts/story/{work,language}` location is never consulted; a missing contract stays missing where its owner keeps it.
|
|
28
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One branch and one path join, linear in the path length.
|
|
29
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
30
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
31
|
+
* @evidence contracts/development/common.md#meaningful-documentation States which tree owns each family in workspace and standalone layouts, and that the result stops above the family folder.
|
|
32
|
+
*/
|
|
33
|
+
function createContractDirectory(contracts, scope) {
|
|
34
|
+
return scope === "shared"
|
|
35
|
+
? node_path_1.default.join((0, resolveSkillsDirectory_1.resolveSkillsDirectory)(contracts), ...STORY_CONTRACTS_1.STORY_CONTRACTS.split("/"))
|
|
36
|
+
: node_path_1.default.join(contracts.location, ...PRODUCTION_CONTRACTS_1.PRODUCTION_CONTRACTS.split("/"));
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=createContractDirectory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createContractDirectory.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/createContractDirectory.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAG7B,iFAA8E;AAC9E,uEAAoE;AACpE,qFAAkF;AAElF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iCACE,SAA4B,EAC5B,KAAqC;IAErC,OAAO,KAAK,KAAK,QAAQ;QACvB,CAAC,CAAC,mBAAI,CAAC,IAAI,CACP,IAAA,+CAAsB,EAAC,SAAS,CAAC,EACjC,GAAG,iCAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAC9B;QACH,CAAC,CAAC,mBAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,GAAG,2CAAoB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { IContractLocation } from "../../../internal/IContractLocation";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the reference root of the contract tree owning one family.
|
|
4
|
+
*
|
|
5
|
+
* The root stops above the family folder rather than descending into it, so a
|
|
6
|
+
* citation address carries the family that owns it: `shared/principles/...`,
|
|
7
|
+
* `language/naturalness/...`, and `work/...` are told apart by the address a
|
|
8
|
+
* host writes, instead of colliding on the same relative file name. Only the
|
|
9
|
+
* root differs between owners: the shared tree's `contracts/story`, reached
|
|
10
|
+
* through `..` segments in a workspace, or the production's own
|
|
11
|
+
* `docs/contracts`, so every citation address is the same in a workspace and
|
|
12
|
+
* in a standalone production.
|
|
13
|
+
*
|
|
14
|
+
* The same local Markdown bytes are both pre-draft instructions and later
|
|
15
|
+
* evidence targets. Config constructs the graph but owns no document mirror.
|
|
16
|
+
*
|
|
17
|
+
* @param contracts The production location and optional shared tree; read, not retained.
|
|
18
|
+
* @param scope The contract family the reference addresses.
|
|
19
|
+
* @returns The `/`-separated root relative to the production's configuration directory.
|
|
20
|
+
*
|
|
21
|
+
* @evidence contracts/development/implementation.md#principled-implementation createContractDirectory picks the owning tree for the family and createReferenceRoot expresses it relative to the production location, the directory native Evidence resolves reference roots against; family-qualified file addresses keep shared/language/work identity in every citation.
|
|
22
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Ownership and relative-root spelling each live with their own owner; this function only composes them for the shared, language and work reference factories.
|
|
23
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The installed shared and production trees are the layout contracts; no fallback remote root, retired location, fixture path or copied contract bytes are introduced.
|
|
24
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of path operations, linear in the location and skills path lengths, without reading directories or file bytes.
|
|
25
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
26
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
27
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains family-qualified addresses, the two owning roots, why only the root differs between owners, local Markdown ownership and the absence of a document mirror.
|
|
28
|
+
*/
|
|
29
|
+
export declare function createContractRoot(contracts: IContractLocation, scope: "shared" | "language" | "work"): string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createContractRoot = createContractRoot;
|
|
4
|
+
const createReferenceRoot_1 = require("../../../internal/createReferenceRoot");
|
|
5
|
+
const createContractDirectory_1 = require("./createContractDirectory");
|
|
6
|
+
/**
|
|
7
|
+
* Resolves the reference root of the contract tree owning one family.
|
|
8
|
+
*
|
|
9
|
+
* The root stops above the family folder rather than descending into it, so a
|
|
10
|
+
* citation address carries the family that owns it: `shared/principles/...`,
|
|
11
|
+
* `language/naturalness/...`, and `work/...` are told apart by the address a
|
|
12
|
+
* host writes, instead of colliding on the same relative file name. Only the
|
|
13
|
+
* root differs between owners: the shared tree's `contracts/story`, reached
|
|
14
|
+
* through `..` segments in a workspace, or the production's own
|
|
15
|
+
* `docs/contracts`, so every citation address is the same in a workspace and
|
|
16
|
+
* in a standalone production.
|
|
17
|
+
*
|
|
18
|
+
* The same local Markdown bytes are both pre-draft instructions and later
|
|
19
|
+
* evidence targets. Config constructs the graph but owns no document mirror.
|
|
20
|
+
*
|
|
21
|
+
* @param contracts The production location and optional shared tree; read, not retained.
|
|
22
|
+
* @param scope The contract family the reference addresses.
|
|
23
|
+
* @returns The `/`-separated root relative to the production's configuration directory.
|
|
24
|
+
*
|
|
25
|
+
* @evidence contracts/development/implementation.md#principled-implementation createContractDirectory picks the owning tree for the family and createReferenceRoot expresses it relative to the production location, the directory native Evidence resolves reference roots against; family-qualified file addresses keep shared/language/work identity in every citation.
|
|
26
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Ownership and relative-root spelling each live with their own owner; this function only composes them for the shared, language and work reference factories.
|
|
27
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The installed shared and production trees are the layout contracts; no fallback remote root, retired location, fixture path or copied contract bytes are introduced.
|
|
28
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of path operations, linear in the location and skills path lengths, without reading directories or file bytes.
|
|
29
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
30
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
31
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains family-qualified addresses, the two owning roots, why only the root differs between owners, local Markdown ownership and the absence of a document mirror.
|
|
32
|
+
*/
|
|
33
|
+
function createContractRoot(contracts, scope) {
|
|
34
|
+
return (0, createReferenceRoot_1.createReferenceRoot)(contracts.location, (0, createContractDirectory_1.createContractDirectory)(contracts, scope));
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=createContractRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createContractRoot.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/createContractRoot.ts"],"names":[],"mappings":";;;AACA,+EAA4E;AAC5E,uEAAoE;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,4BACE,SAA4B,EAC5B,KAAqC;IAErC,OAAO,IAAA,yCAAmB,EACxB,SAAS,CAAC,QAAQ,EAClB,IAAA,iDAAuB,EAAC,SAAS,EAAE,KAAK,CAAC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mirrors selected manuscript files under detached construction evidence.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/implementation.md#principled-implementation Each body-relative selector is placed under detached construction files or units according to its host symbol, preserving a leading exclusion marker around the qualified selector.
|
|
5
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One selector transform serves the native graph collector and package claim builders, so detached file/H2 evidence use the same carrier layout.
|
|
6
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Files and units are explicit native host distinctions; negative selectors keep their original exclusion semantics instead of widening coverage.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states the detached construction mirror, and the typed symbol input selects the documented file-versus-unit carrier.
|
|
8
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For n selectors with total text length p, one mapping pass costs O(n + p) text work and allocates n qualified strings; manuscript contents are not read.
|
|
9
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Carrier selection is computed once for the map and the transformation is shared by all claim builders; fresh arrays prevent callers from mutating another claim selection.
|
|
10
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The mapped array is returned to its config owner and scales with selector text; no filesystem handle, task or process-wide selector cache is retained.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createEvidenceFiles(symbol: "file" | "h2", files: string[]): string[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createEvidenceFiles = createEvidenceFiles;
|
|
4
|
+
/**
|
|
5
|
+
* Mirrors selected manuscript files under detached construction evidence.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/implementation.md#principled-implementation Each body-relative selector is placed under detached construction files or units according to its host symbol, preserving a leading exclusion marker around the qualified selector.
|
|
8
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One selector transform serves the native graph collector and package claim builders, so detached file/H2 evidence use the same carrier layout.
|
|
9
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Files and units are explicit native host distinctions; negative selectors keep their original exclusion semantics instead of widening coverage.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states the detached construction mirror, and the typed symbol input selects the documented file-versus-unit carrier.
|
|
11
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For n selectors with total text length p, one mapping pass costs O(n + p) text work and allocates n qualified strings; manuscript contents are not read.
|
|
12
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Carrier selection is computed once for the map and the transformation is shared by all claim builders; fresh arrays prevent callers from mutating another claim selection.
|
|
13
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The mapped array is returned to its config owner and scales with selector text; no filesystem handle, task or process-wide selector cache is retained.
|
|
14
|
+
*/
|
|
15
|
+
function createEvidenceFiles(symbol, files) {
|
|
16
|
+
const carrier = symbol === "file" ? "files" : "units";
|
|
17
|
+
return files.map((file) => {
|
|
18
|
+
const excluded = file.startsWith("!");
|
|
19
|
+
const relative = excluded ? file.slice(1) : file;
|
|
20
|
+
const selected = `docs/evidence/construction/${carrier}/${relative}`;
|
|
21
|
+
return excluded ? `!${selected}` : selected;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=createEvidenceFiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createEvidenceFiles.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/createEvidenceFiles.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,6BACE,MAAqB,EACrB,KAAe;IAEf,MAAM,OAAO,GAAsB,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IACzE,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAY,EAAU,EAAE;QACxC,MAAM,QAAQ,GAAY,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC/C,MAAM,QAAQ,GAAW,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACzD,MAAM,QAAQ,GAAW,8BAA8B,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC7E,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;IAC9C,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
2
|
+
import type { NarrativeScope } from "../../NarrativeScope";
|
|
3
|
+
/**
|
|
4
|
+
* Selects authored unit files relative to body, revision, or the naturalness working tree.
|
|
5
|
+
*
|
|
6
|
+
* Settings accepts the legacy flat layout, numbered subject folders or the
|
|
7
|
+
* scaffold's domain folders, and a short's brief the domain folders. The
|
|
8
|
+
* settings outline remains outside canon selectors. Narrative layers retain
|
|
9
|
+
* their release partition or flat short screenplay and delegate to their own selector.
|
|
10
|
+
* `referenceLocation` qualifies lineage targets against the revision snapshot;
|
|
11
|
+
* both logical passes host the same current manuscript paths.
|
|
12
|
+
*
|
|
13
|
+
* @evidence contracts/development/implementation.md#principled-implementation Settings and brief use their dedicated canon selectors excluding outline navigation, while narrative layers delegate to the scope-validating partition/flat-short selector; all outputs remain relative to the selected pass root.
|
|
14
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This dispatcher owns the authored-layer distinction and delegates narrative pilot/complete-work rules rather than repeating their validation.
|
|
15
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Legacy flat settings and exact first-part pilots are supported layouts/scopes; invalid narrative scope is rejected by the shared selector rather than widened to a matching fixture.
|
|
16
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose names supported settings layouts, outline exclusion, partitioned or flat-short narrative selection and revision-reference qualification.
|
|
17
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Each branch returns at most two selectors; narrative branches also validate scope text, so cost/storage are bounded by the selected scope/path text and independent of manuscript size.
|
|
18
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The same settings/narrative selector helpers serve hosts and references; fresh returned selector arrays keep config mutations local and no filesystem membership is cached.
|
|
19
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the one- or two-string result; this dispatcher opens no handle, starts no task and retains no population state.
|
|
20
|
+
*/
|
|
21
|
+
export declare function createUnitFiles(layer: AuthoredLayer, scope: NarrativeScope): string[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createUnitFiles = createUnitFiles;
|
|
4
|
+
const createBriefFiles_1 = require("../../createBriefFiles");
|
|
5
|
+
const createNarrativeUnitFiles_1 = require("../../createNarrativeUnitFiles");
|
|
6
|
+
const createSettingsFiles_1 = require("../../createSettingsFiles");
|
|
7
|
+
/**
|
|
8
|
+
* Selects authored unit files relative to body, revision, or the naturalness working tree.
|
|
9
|
+
*
|
|
10
|
+
* Settings accepts the legacy flat layout, numbered subject folders or the
|
|
11
|
+
* scaffold's domain folders, and a short's brief the domain folders. The
|
|
12
|
+
* settings outline remains outside canon selectors. Narrative layers retain
|
|
13
|
+
* their release partition or flat short screenplay and delegate to their own selector.
|
|
14
|
+
* `referenceLocation` qualifies lineage targets against the revision snapshot;
|
|
15
|
+
* both logical passes host the same current manuscript paths.
|
|
16
|
+
*
|
|
17
|
+
* @evidence contracts/development/implementation.md#principled-implementation Settings and brief use their dedicated canon selectors excluding outline navigation, while narrative layers delegate to the scope-validating partition/flat-short selector; all outputs remain relative to the selected pass root.
|
|
18
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This dispatcher owns the authored-layer distinction and delegates narrative pilot/complete-work rules rather than repeating their validation.
|
|
19
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Legacy flat settings and exact first-part pilots are supported layouts/scopes; invalid narrative scope is rejected by the shared selector rather than widened to a matching fixture.
|
|
20
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose names supported settings layouts, outline exclusion, partitioned or flat-short narrative selection and revision-reference qualification.
|
|
21
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Each branch returns at most two selectors; narrative branches also validate scope text, so cost/storage are bounded by the selected scope/path text and independent of manuscript size.
|
|
22
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The same settings/narrative selector helpers serve hosts and references; fresh returned selector arrays keep config mutations local and no filesystem membership is cached.
|
|
23
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the one- or two-string result; this dispatcher opens no handle, starts no task and retains no population state.
|
|
24
|
+
*/
|
|
25
|
+
function createUnitFiles(layer, scope) {
|
|
26
|
+
if (layer === "settings")
|
|
27
|
+
return (0, createSettingsFiles_1.createSettingsFiles)();
|
|
28
|
+
if (layer === "brief")
|
|
29
|
+
return (0, createBriefFiles_1.createBriefFiles)();
|
|
30
|
+
return (0, createNarrativeUnitFiles_1.createNarrativeUnitFiles)(layer, scope);
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=createUnitFiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createUnitFiles.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/createUnitFiles.ts"],"names":[],"mappings":";;;AAEA,6DAA0D;AAC1D,6EAA0E;AAC1E,mEAAgE;AAEhE;;;;;;;;;;;;;;;;;GAiBG;AACH,yBACE,KAAoB,EACpB,KAAqB;IAErB,IAAI,KAAK,KAAK,UAAU;QAAE,OAAO,IAAA,yCAAmB,GAAE,CAAC;IACvD,IAAI,KAAK,KAAK,OAAO;QAAE,OAAO,IAAA,mCAAgB,GAAE,CAAC;IACjD,OAAO,IAAA,mDAAwB,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AuthoredPass } from "../../AuthoredPass";
|
|
2
|
+
/**
|
|
3
|
+
* Names the docs subtree one pass writes into.
|
|
4
|
+
*
|
|
5
|
+
* Construction reads the current manuscript. Naturalness is written, evidenced,
|
|
6
|
+
* and reviewed in its working tree before comment-free promotion to body.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/implementation.md#principled-implementation The draft edition addresses the current body tree and the final edition addresses the naturalness working tree; frozen revision references are deliberately handled by referenceLocation instead.
|
|
9
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One two-way pass-root rule is shared by authored claim factories, while upstream/frozen reference addressing stays with the relation owner.
|
|
10
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The final-to-naturalness mapping is the declared review-before-promotion lifecycle and does not redirect a consumer to fabricated final output.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains current manuscript ownership and that naturalness is authored, evidenced and reviewed before comment-free promotion.
|
|
12
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One branch and string interpolation allocate a fixed-size relative path, independent of file population or document size.
|
|
13
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work PACKAGE_DOCS_ROOT shares the directory spelling across callers; this pure fixed mapping has no effectful work or cross-request result cache.
|
|
14
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned path is caller-owned and constant-sized; there are no open handles, retained tasks or growing module collections.
|
|
15
|
+
*/
|
|
16
|
+
export declare function passRoot(pass: AuthoredPass): string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.passRoot = passRoot;
|
|
4
|
+
const PACKAGE_DOCS_ROOT_1 = require("./PACKAGE_DOCS_ROOT");
|
|
5
|
+
/**
|
|
6
|
+
* Names the docs subtree one pass writes into.
|
|
7
|
+
*
|
|
8
|
+
* Construction reads the current manuscript. Naturalness is written, evidenced,
|
|
9
|
+
* and reviewed in its working tree before comment-free promotion to body.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/implementation.md#principled-implementation The draft edition addresses the current body tree and the final edition addresses the naturalness working tree; frozen revision references are deliberately handled by referenceLocation instead.
|
|
12
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One two-way pass-root rule is shared by authored claim factories, while upstream/frozen reference addressing stays with the relation owner.
|
|
13
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The final-to-naturalness mapping is the declared review-before-promotion lifecycle and does not redirect a consumer to fabricated final output.
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains current manuscript ownership and that naturalness is authored, evidenced and reviewed before comment-free promotion.
|
|
15
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One branch and string interpolation allocate a fixed-size relative path, independent of file population or document size.
|
|
16
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work PACKAGE_DOCS_ROOT shares the directory spelling across callers; this pure fixed mapping has no effectful work or cross-request result cache.
|
|
17
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned path is caller-owned and constant-sized; there are no open handles, retained tasks or growing module collections.
|
|
18
|
+
*/
|
|
19
|
+
function passRoot(pass) {
|
|
20
|
+
return `${PACKAGE_DOCS_ROOT_1.PACKAGE_DOCS_ROOT}/${pass === "final" ? "naturalness" : "body"}`;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=passRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passRoot.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/passRoot.ts"],"names":[],"mappings":";;;AACA,2DAAwD;AAExD;;;;;;;;;;;;;GAaG;AACH,kBAAyB,IAAkB;IACzC,OAAO,GAAG,qCAAiB,IAAI,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;AAC7E,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AuthoredPass } from "../../AuthoredPass";
|
|
2
|
+
/**
|
|
3
|
+
* Gives reference targets an explicit address in the graph's global space.
|
|
4
|
+
*
|
|
5
|
+
* Upstream references select the promoted manuscript for either pass. This is
|
|
6
|
+
* distinct from a naturalness claim's working host; revision references select
|
|
7
|
+
* its frozen pre-revision snapshot.
|
|
8
|
+
*
|
|
9
|
+
* File references use package-relative addresses. A claim that selects file
|
|
10
|
+
* hosts and a claim that selects section hosts read the same documents, and the
|
|
11
|
+
* engine offers every annotation in a claim's files to every reference of that
|
|
12
|
+
* claim. A file address that is also an ancestor address of a section reference
|
|
13
|
+
* would reach that reference as an aggregate target and be refused for lacking
|
|
14
|
+
* a section host. A distinct address space keeps each annotation with the
|
|
15
|
+
* reference it answers.
|
|
16
|
+
*
|
|
17
|
+
* @evidence contracts/development/implementation.md#principled-implementation Upstream draft/final references always target promoted body bytes, revision references target frozen bytes, and file references use package-global addresses distinct from H2-root addresses to avoid aggregate-target collisions.
|
|
18
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Address qualification is centralized for coverage, lineage and settings references, keeping native binder address-space rules out of their semantic flag builders.
|
|
19
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The file/H2 address distinction follows native aggregate binding semantics; no citation is rewritten to match an expected answer or silently redirected to a working edition.
|
|
20
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains promoted versus working ownership, frozen revision targets and why file references need a separate global address space.
|
|
21
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms File mode maps n selectors and their total text length p into qualified paths in O(n + p) work/storage; H2 mode constructs only its root and reuses the supplied files array.
|
|
22
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Coverage and lineage share this address rule, and H2 mode reuses the input selector array; there is no cache that could incorrectly equate mutable files arrays or different passes.
|
|
23
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned root/files record; file mode owns n new strings while H2 mode retains the caller array reference, with no filesystem handle or running task.
|
|
24
|
+
*/
|
|
25
|
+
export declare function referenceLocation(files: string[], pass: AuthoredPass | "revision", symbol?: "file" | "h2"): {
|
|
26
|
+
root: string;
|
|
27
|
+
files: string[];
|
|
28
|
+
};
|