@automovie/evidence 0.0.0-stage → 0.1.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 +9 -0
- package/lib/index.js +26 -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/index.d.ts +7 -0
- package/lib/internal/index.js +24 -0
- package/lib/internal/index.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 +28 -0
- package/lib/narrative/index.js +45 -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/claims/index.d.ts +8 -0
- package/lib/narrative/internal/claims/index.js +25 -0
- package/lib/narrative/internal/claims/index.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/index.d.ts +17 -0
- package/lib/narrative/internal/index.js +34 -0
- package/lib/narrative/internal/index.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/index.d.ts +43 -0
- package/lib/narrative/internal/metadataRewrite/index.js +60 -0
- package/lib/narrative/internal/metadataRewrite/index.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/index.d.ts +11 -0
- package/lib/narrative/internal/references/index.js +28 -0
- package/lib/narrative/internal/references/index.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/topology/index.d.ts +1 -0
- package/lib/narrative/internal/topology/index.js +18 -0
- package/lib/narrative/internal/topology/index.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/index.d.ts +8 -0
- package/lib/narrative/internal/utilities/index.js +25 -0
- package/lib/narrative/internal/utilities/index.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 +9 -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/index.ts +7 -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 +28 -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/claims/index.ts +8 -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/index.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/index.ts +43 -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/index.ts +11 -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/topology/index.ts +1 -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/index.ts +8 -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 @@
|
|
|
1
|
+
{"version":3,"file":"NarrativeLayer.js","sourceRoot":"","sources":["../../src/narrative/NarrativeLayer.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selects the exact narrative population being authored and reviewed.
|
|
3
|
+
*
|
|
4
|
+
* The two narrative axes are selected separately because they are different
|
|
5
|
+
* axes. `treatments` is a flat sequence of event units and never partitions the
|
|
6
|
+
* work for release, so nothing selects it: during a pilot the layer holds only
|
|
7
|
+
* the pilot's events, and after the complete-work reset it holds every event.
|
|
8
|
+
* `scripts` and `screenplay` carry the part and episode partition that `scripts`
|
|
9
|
+
* designs, so a pilot names the one part it authors.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/design.md#principled-representation The discriminated union selects all authored parts or one explicitly named first part; flat treatments retain the events currently authored rather than a fictitious release partition.
|
|
12
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The discriminant selects full work or one exact first part while leaving treatments unpartitioned.
|
|
13
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts The template literal fixes only the 001 prefix; createNarrativeUnitFiles validates the remaining lower-kebab spelling.
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains separate narrative axes, pilot treatments content and exact named script/screenplay part.
|
|
15
|
+
*/
|
|
16
|
+
export type NarrativeScope = {
|
|
17
|
+
/** Authors and reviews every currently declared narrative part. */
|
|
18
|
+
mode: "complete-work";
|
|
19
|
+
} | {
|
|
20
|
+
/** Authors and reviews only the exact first part named below. */
|
|
21
|
+
mode: "first-part-pilot";
|
|
22
|
+
/** Selects the one script and screenplay part directory the pilot authors. */
|
|
23
|
+
part: `001-${string}`;
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NarrativeScope.js","sourceRoot":"","sources":["../../src/narrative/NarrativeScope.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authoring stages select claims; independent readers decide creative completion.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/design.md#principled-representation The two literal stages express enabled structural evidence versus disabled duties, leaving completion to independent review.
|
|
5
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The two literals express participation without mixing authoring status and approval.
|
|
6
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Disabled is declared configuration rather than a diagnostic fallback; independent readers own completion.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment distinguishes claim selection from independent creative completion.
|
|
8
|
+
*/
|
|
9
|
+
export type ProductionStage = "disabled" | "evidence";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductionStage.js","sourceRoot":"","sources":["../../src/narrative/ProductionStage.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selects a short's brief canon: the scaffold's domain folders under `docs/body/brief`.
|
|
3
|
+
*
|
|
4
|
+
* The brief keeps the settings domain layout, `brief/<domain>/<subject>.md`,
|
|
5
|
+
* with the work's fixed conditions in `brief/world/work.md`, so the same reader,
|
|
6
|
+
* which refuses mixed layouts, and the same citations serve both canon layers.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/implementation.md#principled-implementation One glob per scaffold domain admits the brief's canon, sharing SETTINGS_DOMAINS with the settings selector and reader so the layouts cannot drift; no top-level glob is admitted because the reader refuses a mixed layout.
|
|
9
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The selector only describes the brief population; the shared reader owns concrete ordering and layout checks.
|
|
10
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only the declared domain folders are admitted; arbitrary nesting is not.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states the brief root, its domain layout and why it matches settings.
|
|
12
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The result has one entry per domain, built in time linear in the fixed domain list.
|
|
13
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each caller receives a separate array; the trivial allocation coordinates no reusable work or mutable shared selection.
|
|
14
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The returned array is bounded by the fixed domain list and the function retains no per-call state.
|
|
15
|
+
*/
|
|
16
|
+
export declare function createBriefFiles(): string[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createBriefFiles = createBriefFiles;
|
|
4
|
+
const SETTINGS_DOMAINS_1 = require("./internal/SETTINGS_DOMAINS");
|
|
5
|
+
/**
|
|
6
|
+
* Selects a short's brief canon: the scaffold's domain folders under `docs/body/brief`.
|
|
7
|
+
*
|
|
8
|
+
* The brief keeps the settings domain layout, `brief/<domain>/<subject>.md`,
|
|
9
|
+
* with the work's fixed conditions in `brief/world/work.md`, so the same reader,
|
|
10
|
+
* which refuses mixed layouts, and the same citations serve both canon layers.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/implementation.md#principled-implementation One glob per scaffold domain admits the brief's canon, sharing SETTINGS_DOMAINS with the settings selector and reader so the layouts cannot drift; no top-level glob is admitted because the reader refuses a mixed layout.
|
|
13
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The selector only describes the brief population; the shared reader owns concrete ordering and layout checks.
|
|
14
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only the declared domain folders are admitted; arbitrary nesting is not.
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states the brief root, its domain layout and why it matches settings.
|
|
16
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The result has one entry per domain, built in time linear in the fixed domain list.
|
|
17
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each caller receives a separate array; the trivial allocation coordinates no reusable work or mutable shared selection.
|
|
18
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The returned array is bounded by the fixed domain list and the function retains no per-call state.
|
|
19
|
+
*/
|
|
20
|
+
function createBriefFiles() {
|
|
21
|
+
return SETTINGS_DOMAINS_1.SETTINGS_DOMAINS.map((domain) => `brief/${domain}/*.md`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=createBriefFiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createBriefFiles.js","sourceRoot":"","sources":["../../src/narrative/createBriefFiles.ts"],"names":[],"mappings":";;;AAAA,kEAA+D;AAE/D;;;;;;;;;;;;;;GAcG;AACH;IACE,OAAO,mCAAgB,CAAC,GAAG,CACzB,CAAC,MAAc,EAAU,EAAE,CAAC,SAAS,MAAM,OAAO,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { NarrativeLayer } from "./NarrativeLayer";
|
|
2
|
+
import type { NarrativeScope } from "./NarrativeScope";
|
|
3
|
+
/**
|
|
4
|
+
* Selects the authored unit files of one narrative layer.
|
|
5
|
+
*
|
|
6
|
+
* `treatments` is flat and carries no release partition, so its population is
|
|
7
|
+
* every numbered event file it holds — during a pilot the layer contains only
|
|
8
|
+
* the pilot's events, so the same selector serves both modes. `scripts` and
|
|
9
|
+
* long-form `screenplay` carry the part partition, so a pilot narrows them to
|
|
10
|
+
* the one part it authors. Complete-work screenplay also selects flat Markdown
|
|
11
|
+
* for short productions. Route topology validation rejects flat files in long
|
|
12
|
+
* work rather than silently omitting their evidence.
|
|
13
|
+
*
|
|
14
|
+
* The selector is relative to the authored pass root. A naturalness comparison uses the
|
|
15
|
+
* same relative file identity under `docs/revision`.
|
|
16
|
+
*
|
|
17
|
+
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific globs preserve flat numbered treatments, partitioned scripts and exact first-part pilots; complete-work screenplay also captures flat short-film documents, with route-specific admission owned by topology validation.
|
|
18
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The selector owns only relative narrative population paths; callers choose body, frozen or working roots independently.
|
|
19
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Flat short screenplays and numbered long partitions are supported production layouts; no file or production name controls selection, and first-part pilots remain confined to their exact directory.
|
|
20
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states layer partition differences, pilot behavior, root relativity and frozen-snapshot identity.
|
|
21
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Complete-work returns one or two fixed-size globs; pilot validation and interpolation take time and output space proportional to the selected part string length.
|
|
22
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This selector builds one result from supplied values and coordinates no cross-request work; independent arrays avoid shared mutable selector state.
|
|
23
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned small selector array survives the call; no descriptor, task or module cache is acquired.
|
|
24
|
+
*/
|
|
25
|
+
export declare function createNarrativeUnitFiles(layer: NarrativeLayer, scope: NarrativeScope): string[];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createNarrativeUnitFiles = createNarrativeUnitFiles;
|
|
4
|
+
/**
|
|
5
|
+
* Selects the authored unit files of one narrative layer.
|
|
6
|
+
*
|
|
7
|
+
* `treatments` is flat and carries no release partition, so its population is
|
|
8
|
+
* every numbered event file it holds — during a pilot the layer contains only
|
|
9
|
+
* the pilot's events, so the same selector serves both modes. `scripts` and
|
|
10
|
+
* long-form `screenplay` carry the part partition, so a pilot narrows them to
|
|
11
|
+
* the one part it authors. Complete-work screenplay also selects flat Markdown
|
|
12
|
+
* for short productions. Route topology validation rejects flat files in long
|
|
13
|
+
* work rather than silently omitting their evidence.
|
|
14
|
+
*
|
|
15
|
+
* The selector is relative to the authored pass root. A naturalness comparison uses the
|
|
16
|
+
* same relative file identity under `docs/revision`.
|
|
17
|
+
*
|
|
18
|
+
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific globs preserve flat numbered treatments, partitioned scripts and exact first-part pilots; complete-work screenplay also captures flat short-film documents, with route-specific admission owned by topology validation.
|
|
19
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The selector owns only relative narrative population paths; callers choose body, frozen or working roots independently.
|
|
20
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Flat short screenplays and numbered long partitions are supported production layouts; no file or production name controls selection, and first-part pilots remain confined to their exact directory.
|
|
21
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states layer partition differences, pilot behavior, root relativity and frozen-snapshot identity.
|
|
22
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Complete-work returns one or two fixed-size globs; pilot validation and interpolation take time and output space proportional to the selected part string length.
|
|
23
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This selector builds one result from supplied values and coordinates no cross-request work; independent arrays avoid shared mutable selector state.
|
|
24
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned small selector array survives the call; no descriptor, task or module cache is acquired.
|
|
25
|
+
*/
|
|
26
|
+
function createNarrativeUnitFiles(layer, scope) {
|
|
27
|
+
if (scope.mode !== "complete-work" &&
|
|
28
|
+
(scope.mode !== "first-part-pilot" ||
|
|
29
|
+
!/^001-[a-z0-9]+(?:-[a-z0-9]+)*$/u.test(scope.part)))
|
|
30
|
+
throw new Error("A first-part pilot requires one exact 001-lower-kebab-case part directory.");
|
|
31
|
+
if (layer === "treatments")
|
|
32
|
+
return [`${layer}/???-*.md`];
|
|
33
|
+
if (scope.mode === "complete-work")
|
|
34
|
+
return layer === "screenplay"
|
|
35
|
+
? [`${layer}/*.md`, `${layer}/*/???-*.md`]
|
|
36
|
+
: [`${layer}/*/???-*.md`];
|
|
37
|
+
return [`${layer}/${scope.part}/???-*.md`];
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=createNarrativeUnitFiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createNarrativeUnitFiles.js","sourceRoot":"","sources":["../../src/narrative/createNarrativeUnitFiles.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,kCACE,KAAqB,EACrB,KAAqB;IAErB,IACE,KAAK,CAAC,IAAI,KAAK,eAAe;QAC9B,CAAC,KAAK,CAAC,IAAI,KAAK,kBAAkB;YAChC,CAAC,iCAAiC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEtD,MAAM,IAAI,KAAK,CACb,4EAA4E,CAC7E,CAAC;IACJ,IAAI,KAAK,KAAK,YAAY;QAAE,OAAO,CAAC,GAAG,KAAK,WAAW,CAAC,CAAC;IACzD,IAAI,KAAK,CAAC,IAAI,KAAK,eAAe;QAChC,OAAO,KAAK,KAAK,YAAY;YAC3B,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,EAAE,GAAG,KAAK,aAAa,CAAC;YAC1C,CAAC,CAAC,CAAC,GAAG,KAAK,aAAa,CAAC,CAAC;IAC9B,OAAO,CAAC,GAAG,KAAK,IAAI,KAAK,CAAC,IAAI,WAAW,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IEvidenceClaim } from "@wrtnlabs/evidence";
|
|
2
|
+
import type { IPackageChecklistClaimProps } from "./IPackageChecklistClaimProps";
|
|
3
|
+
/**
|
|
4
|
+
* Creates one work-local contract claim.
|
|
5
|
+
*
|
|
6
|
+
* Every selected host answers every H2 item of the document and may not exclude
|
|
7
|
+
* one. Independent review is represented by the separate review family.
|
|
8
|
+
* Set `checklist: false` for a role the population distributes
|
|
9
|
+
* among its hosts rather than one every host repeats.
|
|
10
|
+
*
|
|
11
|
+
* `symbol` is required rather than defaulted, because it is the same choice:
|
|
12
|
+
* `"h2"` binds the condition to every unit, `"file"` binds it once per file.
|
|
13
|
+
*
|
|
14
|
+
* @evidence contracts/development/implementation.md#principled-implementation Exact work-subtree paths and explicit file/H2 granularity are validated before building native Markdown references; principles remain per-H2 checklists, while population obligations are delegated to their dedicated factory. Every reference roots at the production's own `docs/contracts`, because only work documents are admitted and a production owns its work contracts even when a workspace keeps the shared ones elsewhere.
|
|
15
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One factory owns local contract validation and detached construction evidence mapping; independent review remains a separate claim family.
|
|
16
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The reserved discovery carrier and obligation subtree are excluded because built-in discovery and once-per-population factories own those duties; these checks apply to every work document.
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment explains per-host versus distributed duties, required symbol choice and independent review separation; errors identify unsupported document or host forms.
|
|
18
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For d document paths and f file globs, validation scans path characters and builds document references plus detached selectors in linear total input/output size; set construction detects duplicate documents without pairwise comparison.
|
|
19
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This factory owns one claim build from current props and performs no coordinated request reuse; returned references and arrays belong to that build.
|
|
20
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Temporary normalized documents and sets are released on return or throw; returned claim arrays reference caller file/symbol values where assigned and contain no open handle or task.
|
|
21
|
+
*/
|
|
22
|
+
export declare function createPackageChecklistClaim(props: IPackageChecklistClaimProps): IEvidenceClaim;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPackageChecklistClaim = createPackageChecklistClaim;
|
|
4
|
+
const PRODUCTION_CONTRACTS_1 = require("../internal/PRODUCTION_CONTRACTS");
|
|
5
|
+
const createEvidenceFiles_1 = require("./internal/utilities/createEvidenceFiles");
|
|
6
|
+
const passRoot_1 = require("./internal/utilities/passRoot");
|
|
7
|
+
/**
|
|
8
|
+
* Creates one work-local contract claim.
|
|
9
|
+
*
|
|
10
|
+
* Every selected host answers every H2 item of the document and may not exclude
|
|
11
|
+
* one. Independent review is represented by the separate review family.
|
|
12
|
+
* Set `checklist: false` for a role the population distributes
|
|
13
|
+
* among its hosts rather than one every host repeats.
|
|
14
|
+
*
|
|
15
|
+
* `symbol` is required rather than defaulted, because it is the same choice:
|
|
16
|
+
* `"h2"` binds the condition to every unit, `"file"` binds it once per file.
|
|
17
|
+
*
|
|
18
|
+
* @evidence contracts/development/implementation.md#principled-implementation Exact work-subtree paths and explicit file/H2 granularity are validated before building native Markdown references; principles remain per-H2 checklists, while population obligations are delegated to their dedicated factory. Every reference roots at the production's own `docs/contracts`, because only work documents are admitted and a production owns its work contracts even when a workspace keeps the shared ones elsewhere.
|
|
19
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One factory owns local contract validation and detached construction evidence mapping; independent review remains a separate claim family.
|
|
20
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The reserved discovery carrier and obligation subtree are excluded because built-in discovery and once-per-population factories own those duties; these checks apply to every work document.
|
|
21
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment explains per-host versus distributed duties, required symbol choice and independent review separation; errors identify unsupported document or host forms.
|
|
22
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For d document paths and f file globs, validation scans path characters and builds document references plus detached selectors in linear total input/output size; set construction detects duplicate documents without pairwise comparison.
|
|
23
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This factory owns one claim build from current props and performs no coordinated request reuse; returned references and arrays belong to that build.
|
|
24
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Temporary normalized documents and sets are released on return or throw; returned claim arrays reference caller file/symbol values where assigned and contain no open handle or task.
|
|
25
|
+
*/
|
|
26
|
+
function createPackageChecklistClaim(props) {
|
|
27
|
+
const documents = Array.isArray(props.document)
|
|
28
|
+
? props.document
|
|
29
|
+
: [props.document];
|
|
30
|
+
const canonicalDocuments = documents.map((document) => document.replaceAll("\\", "/"));
|
|
31
|
+
if (canonicalDocuments.length === 0)
|
|
32
|
+
throw new Error("A package contract requires at least one work document.");
|
|
33
|
+
if (new Set(canonicalDocuments).size !== canonicalDocuments.length)
|
|
34
|
+
throw new Error("A package contract cannot select the same work document twice.");
|
|
35
|
+
const foreign = canonicalDocuments.find((document) => !isWorkDocument(document));
|
|
36
|
+
if (foreign !== undefined)
|
|
37
|
+
throw new Error(`${foreign}: package contracts require one exact work/{principles,naturalness,obligations,discovery,targets}/...md address.`);
|
|
38
|
+
const obligation = canonicalDocuments.find((document) => document.startsWith("work/obligations/"));
|
|
39
|
+
if (obligation !== undefined)
|
|
40
|
+
throw new Error(`${obligation}: work obligations require createPackagePopulationContract, answered once per duty by the layer's documents.`);
|
|
41
|
+
if (canonicalDocuments.includes("work/discovery/results.md"))
|
|
42
|
+
throw new Error("work/discovery/results.md: the built-in discovery claim owns this negative carrier; a package claim would duplicate it.");
|
|
43
|
+
const principles = canonicalDocuments.filter((document) => /(?:^|[\\/])principles(?:[\\/]|-)/u.test(document));
|
|
44
|
+
const symbols = Array.isArray(props.symbol)
|
|
45
|
+
? props.symbol
|
|
46
|
+
: [props.symbol];
|
|
47
|
+
if (symbols.length !== 1 || (symbols[0] !== "file" && symbols[0] !== "h2"))
|
|
48
|
+
throw new Error("Work claims on the manuscript require one file or H2 host kind.");
|
|
49
|
+
if (principles.length !== 0 &&
|
|
50
|
+
(props.checklist === false || symbols.length !== 1 || symbols[0] !== "h2"))
|
|
51
|
+
throw new Error(`${principles.join(", ")}: principles require an H2 checklist whose selected hosts each answer independently.`);
|
|
52
|
+
return {
|
|
53
|
+
name: props.name,
|
|
54
|
+
type: "markdown",
|
|
55
|
+
root: (0, passRoot_1.passRoot)(props.pass ?? "draft"),
|
|
56
|
+
files: props.files,
|
|
57
|
+
symbol: props.symbol,
|
|
58
|
+
...(props.pass === "final"
|
|
59
|
+
? {}
|
|
60
|
+
: {
|
|
61
|
+
evidenceFiles: (0, createEvidenceFiles_1.createEvidenceFiles)(symbols[0], props.files),
|
|
62
|
+
}),
|
|
63
|
+
disabled: props.stage === "disabled" || props.inapplicable === true,
|
|
64
|
+
reference: canonicalDocuments.map((document) => ({
|
|
65
|
+
type: "markdown",
|
|
66
|
+
root: PRODUCTION_CONTRACTS_1.PRODUCTION_CONTRACTS,
|
|
67
|
+
files: [document],
|
|
68
|
+
symbol: "h2",
|
|
69
|
+
...(props.checklist === false ? {} : { checklist: true }),
|
|
70
|
+
noEvidenceExclude: true,
|
|
71
|
+
})),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Keeps the package API on the tracked work-owned contract subtree.
|
|
76
|
+
*
|
|
77
|
+
* `naturalness` is admitted for the same reason the shared and language trees
|
|
78
|
+
* carry one: a work's own observable form is a question its finished text
|
|
79
|
+
* answers. Screenplay selects `pass: "final"` and its naturalness stage; scripts
|
|
80
|
+
* select `pass: "draft"` and scripts construction explicitly. The document
|
|
81
|
+
* directory alone never chooses its host population.
|
|
82
|
+
*/
|
|
83
|
+
function isWorkDocument(document) {
|
|
84
|
+
const normalized = document.replaceAll("\\", "/");
|
|
85
|
+
const parts = normalized.split("/");
|
|
86
|
+
return (parts.length >= 3 &&
|
|
87
|
+
parts[0] === "work" &&
|
|
88
|
+
[
|
|
89
|
+
"principles",
|
|
90
|
+
"naturalness",
|
|
91
|
+
"obligations",
|
|
92
|
+
"discovery",
|
|
93
|
+
"targets",
|
|
94
|
+
].includes(parts[1]) &&
|
|
95
|
+
parts.every((part) => part !== "" && part !== "." && part !== "..") &&
|
|
96
|
+
!/[[\]*?#]/u.test(normalized) &&
|
|
97
|
+
normalized.endsWith(".md") &&
|
|
98
|
+
!normalized.toLowerCase().endsWith("/skill.md"));
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=createPackageChecklistClaim.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPackageChecklistClaim.js","sourceRoot":"","sources":["../../src/narrative/createPackageChecklistClaim.ts"],"names":[],"mappings":";;;AAKA,2EAAwE;AAExE,kFAA+E;AAC/E,4DAAyD;AAEzD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qCACE,KAAkC;IAElC,MAAM,SAAS,GAAa,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC;QACvD,CAAC,CAAC,KAAK,CAAC,QAAQ;QAChB,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACrB,MAAM,kBAAkB,GAAa,SAAS,CAAC,GAAG,CAChD,CAAC,QAAgB,EAAU,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAC7D,CAAC;IACF,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC;QACjC,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;IAC7E,IAAI,IAAI,GAAG,CAAC,kBAAkB,CAAC,CAAC,IAAI,KAAK,kBAAkB,CAAC,MAAM;QAChE,MAAM,IAAI,KAAK,CACb,gEAAgE,CACjE,CAAC;IACJ,MAAM,OAAO,GAAuB,kBAAkB,CAAC,IAAI,CACzD,CAAC,QAAgB,EAAW,EAAE,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,CACzD,CAAC;IACF,IAAI,OAAO,KAAK,SAAS;QACvB,MAAM,IAAI,KAAK,CACb,GAAG,OAAO,kHAAkH,CAC7H,CAAC;IACJ,MAAM,UAAU,GAAuB,kBAAkB,CAAC,IAAI,CAC5D,CAAC,QAAgB,EAAW,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC,CACxE,CAAC;IACF,IAAI,UAAU,KAAK,SAAS;QAC1B,MAAM,IAAI,KAAK,CACb,GAAG,UAAU,8GAA8G,CAC5H,CAAC;IACJ,IAAI,kBAAkB,CAAC,QAAQ,CAAC,2BAA2B,CAAC;QAC1D,MAAM,IAAI,KAAK,CACb,yHAAyH,CAC1H,CAAC;IACJ,MAAM,UAAU,GAAa,kBAAkB,CAAC,MAAM,CACpD,CAAC,QAAgB,EAAW,EAAE,CAC5B,mCAAmC,CAAC,IAAI,CAAC,QAAQ,CAAC,CACrD,CAAC;IACF,MAAM,OAAO,GAA6B,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;QACnE,CAAC,CAAC,KAAK,CAAC,MAAM;QACd,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnB,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;QACxE,MAAM,IAAI,KAAK,CACb,iEAAiE,CAClE,CAAC;IACJ,IACE,UAAU,CAAC,MAAM,KAAK,CAAC;QACvB,CAAC,KAAK,CAAC,SAAS,KAAK,KAAK,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;QAE1E,MAAM,IAAI,KAAK,CACb,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,sFAAsF,CAC/G,CAAC;IACJ,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,IAAA,mBAAQ,EAAC,KAAK,CAAC,IAAI,IAAI,OAAO,CAAC;QACrC,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO;YACxB,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC;gBACE,aAAa,EAAE,IAAA,yCAAmB,EAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC;aAC5D,CAAC;QACN,QAAQ,EAAE,KAAK,CAAC,KAAK,KAAK,UAAU,IAAI,KAAK,CAAC,YAAY,KAAK,IAAI;QACnE,SAAS,EAAE,kBAAkB,CAAC,GAAG,CAC/B,CACE,QAAgB,EAQhB,EAAE,CAAC,CAAC;YACJ,IAAI,EAAE,UAAmB;YACzB,IAAI,EAAE,2CAAoB;YAC1B,KAAK,EAAE,CAAC,QAAQ,CAAC;YACjB,MAAM,EAAE,IAAa;YACrB,GAAG,CAAC,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,IAAa,EAAE,CAAC;YAClE,iBAAiB,EAAE,IAAI;SACxB,CAAC,CACH;KACF,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,cAAc,CAAC,QAAgB;IACtC,MAAM,UAAU,GAAW,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC1D,MAAM,KAAK,GAAa,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC9C,OAAO,CACL,KAAK,CAAC,MAAM,IAAI,CAAC;QACjB,KAAK,CAAC,CAAC,CAAC,KAAK,MAAM;QACnB;YACE,YAAY;YACZ,aAAa;YACb,aAAa;YACb,WAAW;YACX,SAAS;SACV,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACpB,KAAK,CAAC,KAAK,CACT,CAAC,IAAY,EAAW,EAAE,CAAC,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,CACxE;QACD,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC;QAC7B,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC;QAC1B,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IEvidenceClaim } from "@wrtnlabs/evidence";
|
|
2
|
+
import type { IPackageContractProps } from "./IPackageContractProps";
|
|
3
|
+
/**
|
|
4
|
+
* Creates one adopted contract's claims, one per layer that answers it.
|
|
5
|
+
*
|
|
6
|
+
* A work rule usually binds several layers in the same terms, and writing that
|
|
7
|
+
* out is the same claim four times with only the layer's name, stage, and file
|
|
8
|
+
* glob changing. State the layers instead, and the wiring follows from them.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation Each declared layer stage becomes one checklist claim with that layer's exact narrative selector; final-pass contracts reject layers without naturalness before mapping.
|
|
11
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The wrapper keeps adopted rule identity and layer ownership together, delegating exact document/host checks to createPackageChecklistClaim.
|
|
12
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only the two actual naturalness layers are admitted on final; no special claim name or fixture changes validation.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states that one adopted contract expands to its owning layers; props document pass, granularity, activation and pilot scope.
|
|
14
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For l owning layers, d document-path characters and f selector output, expansion costs O(l*(d+f)) through delegated validation; l is at most the supported authored layer set for typed callers.
|
|
15
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each layer needs a distinct claim and diagnostic name; equivalent shared document paths are inputs, not cached effectful results, and no cross-request coordinator is created.
|
|
16
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The result owns l claim objects and their delegated arrays; local layer entries are discarded on completion or failure, with no handles or running tasks.
|
|
17
|
+
*/
|
|
18
|
+
export declare function createPackageContract(props: IPackageContractProps): IEvidenceClaim[];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPackageContract = createPackageContract;
|
|
4
|
+
const createPackageChecklistClaim_1 = require("./createPackageChecklistClaim");
|
|
5
|
+
const hasNaturalness_1 = require("./internal/hasNaturalness");
|
|
6
|
+
const createUnitFiles_1 = require("./internal/utilities/createUnitFiles");
|
|
7
|
+
/**
|
|
8
|
+
* Creates one adopted contract's claims, one per layer that answers it.
|
|
9
|
+
*
|
|
10
|
+
* A work rule usually binds several layers in the same terms, and writing that
|
|
11
|
+
* out is the same claim four times with only the layer's name, stage, and file
|
|
12
|
+
* glob changing. State the layers instead, and the wiring follows from them.
|
|
13
|
+
*
|
|
14
|
+
* @evidence contracts/development/implementation.md#principled-implementation Each declared layer stage becomes one checklist claim with that layer's exact narrative selector; final-pass contracts reject layers without naturalness before mapping.
|
|
15
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The wrapper keeps adopted rule identity and layer ownership together, delegating exact document/host checks to createPackageChecklistClaim.
|
|
16
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only the two actual naturalness layers are admitted on final; no special claim name or fixture changes validation.
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states that one adopted contract expands to its owning layers; props document pass, granularity, activation and pilot scope.
|
|
18
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For l owning layers, d document-path characters and f selector output, expansion costs O(l*(d+f)) through delegated validation; l is at most the supported authored layer set for typed callers.
|
|
19
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each layer needs a distinct claim and diagnostic name; equivalent shared document paths are inputs, not cached effectful results, and no cross-request coordinator is created.
|
|
20
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The result owns l claim objects and their delegated arrays; local layer entries are discarded on completion or failure, with no handles or running tasks.
|
|
21
|
+
*/
|
|
22
|
+
function createPackageContract(props) {
|
|
23
|
+
const layers = Object.entries(props.layers);
|
|
24
|
+
if (layers.length === 0)
|
|
25
|
+
throw new Error("A package contract requires at least one owning layer.");
|
|
26
|
+
if (props.pass === "final" &&
|
|
27
|
+
layers.some(([layer]) => !(0, hasNaturalness_1.hasNaturalness)(layer)))
|
|
28
|
+
throw new Error("Only screenplay has a naturalness pass; adopt scripts contracts in construction.");
|
|
29
|
+
return layers.map(([layer, stage]) => (0, createPackageChecklistClaim_1.createPackageChecklistClaim)({
|
|
30
|
+
name: `${layer} units ${props.reason}`,
|
|
31
|
+
document: props.document,
|
|
32
|
+
files: (0, createUnitFiles_1.createUnitFiles)(layer, props.narrativeScope),
|
|
33
|
+
stage,
|
|
34
|
+
pass: props.pass,
|
|
35
|
+
symbol: props.symbol,
|
|
36
|
+
checklist: props.checklist,
|
|
37
|
+
inapplicable: props.inapplicable,
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=createPackageContract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPackageContract.js","sourceRoot":"","sources":["../../src/narrative/createPackageContract.ts"],"names":[],"mappings":";;;AAKA,+EAA4E;AAC5E,8DAA2D;AAC3D,0EAAuE;AAEvE;;;;;;;;;;;;;;GAcG;AACH,+BACE,KAA4B;IAE5B,MAAM,MAAM,GAAgC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;IAC5E,IACE,KAAK,CAAC,IAAI,KAAK,OAAO;QACtB,MAAM,CAAC,IAAI,CACT,CAAC,CAAC,KAAK,CAA4B,EAAW,EAAE,CAC9C,CAAC,IAAA,+BAAc,EAAC,KAAsB,CAAC,CAC1C;QAED,MAAM,IAAI,KAAK,CACb,kFAAkF,CACnF,CAAC;IAEJ,OAAO,MAAM,CAAC,GAAG,CACf,CAAC,CAAC,KAAK,EAAE,KAAK,CAA4B,EAAkB,EAAE,CAC5D,IAAA,yDAA2B,EAAC;QAC1B,IAAI,EAAE,GAAG,KAAK,UAAU,KAAK,CAAC,MAAM,EAAE;QACtC,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,KAAK,EAAE,IAAA,iCAAe,EAAC,KAAsB,EAAE,KAAK,CAAC,cAAc,CAAC;QACpE,KAAK;QACL,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,YAAY,EAAE,KAAK,CAAC,YAAY;KACjC,CAAC,CACL,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IEvidenceClaim } from "@wrtnlabs/evidence";
|
|
2
|
+
import type { IPackagePopulationContractProps } from "./IPackagePopulationContractProps";
|
|
3
|
+
/**
|
|
4
|
+
* Creates one population obligation claim per selected layer.
|
|
5
|
+
*
|
|
6
|
+
* The layer's own documents answer each duty once, at file level. Construction
|
|
7
|
+
* uses detached evidence; naturalness uses a working-file comment. Each duty
|
|
8
|
+
* has exactly one answering document. A duty is never repeated per H2, because a
|
|
9
|
+
* population question restated on every unit is no longer one comparison.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/implementation.md#principled-implementation An exact work/obligations path yields one unique-evidence file-level duty reference per owning layer; naturalness eligibility and pilot-only inapplicability are checked before constructing claims. The reference roots at the production's own `docs/contracts`, because the work obligation is production-owned even when a workspace keeps the shared contracts elsewhere.
|
|
12
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The factory keeps once-per-population ownership separate from per-H2 checklist expansion and delegates manuscript selectors to createUnitFiles.
|
|
13
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Pilot-only deferral follows the explicit scope contract; complete-work obligations cannot be suppressed through the inapplicable flag.
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies detached versus inline evidence, file-level answering and exactly one answering document per duty; props state ownership and deferral.
|
|
15
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The document path is scanned once, then l layer entries each produce selector strings and one reference. Time and allocation scale with path bytes plus layer/selector output; typed workloads have only the authored layer set.
|
|
16
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Claims remain distinct per layer and their evidence roots differ by pass; this stateless factory coordinates no reusable requests or mutable shared result.
|
|
17
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Local path and entry arrays expire on return or throw; the returned claims own their reference and selector arrays and acquire no file handles or tasks.
|
|
18
|
+
*/
|
|
19
|
+
export declare function createPackagePopulationContract(props: IPackagePopulationContractProps): IEvidenceClaim[];
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPackagePopulationContract = createPackagePopulationContract;
|
|
4
|
+
const PRODUCTION_CONTRACTS_1 = require("../internal/PRODUCTION_CONTRACTS");
|
|
5
|
+
const hasNaturalness_1 = require("./internal/hasNaturalness");
|
|
6
|
+
const createEvidenceFiles_1 = require("./internal/utilities/createEvidenceFiles");
|
|
7
|
+
const createUnitFiles_1 = require("./internal/utilities/createUnitFiles");
|
|
8
|
+
const passRoot_1 = require("./internal/utilities/passRoot");
|
|
9
|
+
/**
|
|
10
|
+
* Creates one population obligation claim per selected layer.
|
|
11
|
+
*
|
|
12
|
+
* The layer's own documents answer each duty once, at file level. Construction
|
|
13
|
+
* uses detached evidence; naturalness uses a working-file comment. Each duty
|
|
14
|
+
* has exactly one answering document. A duty is never repeated per H2, because a
|
|
15
|
+
* population question restated on every unit is no longer one comparison.
|
|
16
|
+
*
|
|
17
|
+
* @evidence contracts/development/implementation.md#principled-implementation An exact work/obligations path yields one unique-evidence file-level duty reference per owning layer; naturalness eligibility and pilot-only inapplicability are checked before constructing claims. The reference roots at the production's own `docs/contracts`, because the work obligation is production-owned even when a workspace keeps the shared contracts elsewhere.
|
|
18
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The factory keeps once-per-population ownership separate from per-H2 checklist expansion and delegates manuscript selectors to createUnitFiles.
|
|
19
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Pilot-only deferral follows the explicit scope contract; complete-work obligations cannot be suppressed through the inapplicable flag.
|
|
20
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies detached versus inline evidence, file-level answering and exactly one answering document per duty; props state ownership and deferral.
|
|
21
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The document path is scanned once, then l layer entries each produce selector strings and one reference. Time and allocation scale with path bytes plus layer/selector output; typed workloads have only the authored layer set.
|
|
22
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Claims remain distinct per layer and their evidence roots differ by pass; this stateless factory coordinates no reusable requests or mutable shared result.
|
|
23
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Local path and entry arrays expire on return or throw; the returned claims own their reference and selector arrays and acquire no file handles or tasks.
|
|
24
|
+
*/
|
|
25
|
+
function createPackagePopulationContract(props) {
|
|
26
|
+
const normalizedDocument = props.document.replaceAll("\\", "/");
|
|
27
|
+
if (!normalizedDocument.startsWith("work/obligations/") ||
|
|
28
|
+
normalizedDocument
|
|
29
|
+
.split("/")
|
|
30
|
+
.some((part) => part === "" || part === "." || part === "..") ||
|
|
31
|
+
/[[\]*?#]/u.test(normalizedDocument) ||
|
|
32
|
+
!normalizedDocument.endsWith(".md") ||
|
|
33
|
+
normalizedDocument.toLowerCase().endsWith("/skill.md"))
|
|
34
|
+
throw new Error(`${props.document}: a population obligation must be one exact work/obligations/...md document.`);
|
|
35
|
+
const layers = Object.entries(props.layers);
|
|
36
|
+
if (layers.length === 0)
|
|
37
|
+
throw new Error("A population contract requires at least one owning layer.");
|
|
38
|
+
if (props.pass === "final" &&
|
|
39
|
+
layers.some(([layer]) => !(0, hasNaturalness_1.hasNaturalness)(layer)))
|
|
40
|
+
throw new Error("Only screenplay has a naturalness pass; adopt scripts obligations in construction.");
|
|
41
|
+
if (props.inapplicable === true &&
|
|
42
|
+
props.narrativeScope.mode !== "first-part-pilot")
|
|
43
|
+
throw new Error("A population contract is inapplicable only while a first-part pilot defers a complete-work obligation.");
|
|
44
|
+
return layers.map(([layer, stage]) => {
|
|
45
|
+
const obligation = {
|
|
46
|
+
type: "markdown",
|
|
47
|
+
root: PRODUCTION_CONTRACTS_1.PRODUCTION_CONTRACTS,
|
|
48
|
+
files: [normalizedDocument],
|
|
49
|
+
symbol: "h2",
|
|
50
|
+
noEvidenceExclude: true,
|
|
51
|
+
uniqueEvidence: true,
|
|
52
|
+
};
|
|
53
|
+
const files = (0, createUnitFiles_1.createUnitFiles)(layer, props.narrativeScope);
|
|
54
|
+
return {
|
|
55
|
+
name: `${layer} documents ${props.reason}`,
|
|
56
|
+
type: "markdown",
|
|
57
|
+
root: (0, passRoot_1.passRoot)(props.pass ?? "draft"),
|
|
58
|
+
files,
|
|
59
|
+
symbol: "file",
|
|
60
|
+
...(props.pass === "final"
|
|
61
|
+
? {}
|
|
62
|
+
: {
|
|
63
|
+
evidenceFiles: (0, createEvidenceFiles_1.createEvidenceFiles)("file", files),
|
|
64
|
+
}),
|
|
65
|
+
disabled: stage === "disabled" || props.inapplicable === true,
|
|
66
|
+
reference: obligation,
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=createPackagePopulationContract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPackagePopulationContract.js","sourceRoot":"","sources":["../../src/narrative/createPackagePopulationContract.ts"],"names":[],"mappings":";;;AAKA,2EAAwE;AAIxE,8DAA2D;AAC3D,kFAA+E;AAC/E,0EAAuE;AACvE,4DAAyD;AAEzD;;;;;;;;;;;;;;;GAeG;AACH,yCACE,KAAsC;IAEtC,MAAM,kBAAkB,GAAW,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACxE,IACE,CAAC,kBAAkB,CAAC,UAAU,CAAC,mBAAmB,CAAC;QACnD,kBAAkB;aACf,KAAK,CAAC,GAAG,CAAC;aACV,IAAI,CACH,CAAC,IAAY,EAAW,EAAE,CAAC,IAAI,KAAK,EAAE,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,CACxE;QACH,WAAW,CAAC,IAAI,CAAC,kBAAkB,CAAC;QACpC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC;QACnC,kBAAkB,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC;QAEtD,MAAM,IAAI,KAAK,CACb,GAAG,KAAK,CAAC,QAAQ,8EAA8E,CAChG,CAAC;IAEJ,MAAM,MAAM,GAAgC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACzE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QACrB,MAAM,IAAI,KAAK,CACb,2DAA2D,CAC5D,CAAC;IACJ,IACE,KAAK,CAAC,IAAI,KAAK,OAAO;QACtB,MAAM,CAAC,IAAI,CACT,CAAC,CAAC,KAAK,CAA4B,EAAW,EAAE,CAC9C,CAAC,IAAA,+BAAc,EAAC,KAAsB,CAAC,CAC1C;QAED,MAAM,IAAI,KAAK,CACb,oFAAoF,CACrF,CAAC;IACJ,IACE,KAAK,CAAC,YAAY,KAAK,IAAI;QAC3B,KAAK,CAAC,cAAc,CAAC,IAAI,KAAK,kBAAkB;QAEhD,MAAM,IAAI,KAAK,CACb,wGAAwG,CACzG,CAAC;IAEJ,OAAO,MAAM,CAAC,GAAG,CACf,CAAC,CAAC,KAAK,EAAE,KAAK,CAA4B,EASxC,EAAE;QACF,MAAM,UAAU,GAA+B;YAC7C,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,2CAAoB;YAC1B,KAAK,EAAE,CAAC,kBAAkB,CAAC;YAC3B,MAAM,EAAE,IAAI;YACZ,iBAAiB,EAAE,IAAI;YACvB,cAAc,EAAE,IAAI;SACrB,CAAC;QACF,MAAM,KAAK,GAAa,IAAA,iCAAe,EACrC,KAAsB,EACtB,KAAK,CAAC,cAAc,CACrB,CAAC;QACF,OAAO;YACL,IAAI,EAAE,GAAG,KAAK,cAAc,KAAK,CAAC,MAAM,EAAE;YAC1C,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,IAAA,mBAAQ,EAAC,KAAK,CAAC,IAAI,IAAI,OAAO,CAAC;YACrC,KAAK;YACL,MAAM,EAAE,MAAM;YACd,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO;gBACxB,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC;oBACE,aAAa,EAAE,IAAA,yCAAmB,EAAC,MAAM,EAAE,KAAK,CAAC;iBAClD,CAAC;YACN,QAAQ,EAAE,KAAK,KAAK,UAAU,IAAI,KAAK,CAAC,YAAY,KAAK,IAAI;YAC7D,SAAS,EAAE,UAAU;SACtB,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IEvidenceClaim } from "@wrtnlabs/evidence";
|
|
2
|
+
import type { IProductionConfigProps } from "./IProductionConfigProps";
|
|
3
|
+
/**
|
|
4
|
+
* Creates the structural claims of one production for native Evidence.
|
|
5
|
+
*
|
|
6
|
+
* Returns the same full population used by createProductionConfig. Source stage
|
|
7
|
+
* declarations do not certify independent review or creative approval.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/development/implementation.md#principled-implementation Delegating to collectProductionClaims preserves the same ordered generated, custom, support and review claim population used by the config factory, without interpreting stage declarations as approval.
|
|
10
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This entry exposes native claim construction without a configuration wrapper; the collector owns the same composition used by createProductionConfig.
|
|
11
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The function neither filters known failures nor invents claims for a caller; all production source validation remains in the common collector.
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment distinguishes structural claim creation from independent review and identifies equivalence with createProductionConfig population.
|
|
13
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The dominant cost is the collector's contract discovery and claim expansion over selected layers, documents and custom/support claims; the returned array grows with emitted claims and references.
|
|
14
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Every call rebuilds from current contract files and props; filesystem discovery can change, and no stable dependency snapshot permits cross-call reuse here.
|
|
15
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned native claim objects are caller-owned; synchronous discovery retains no registry, open handle or background task.
|
|
16
|
+
*/
|
|
17
|
+
export declare function createProductionClaims(props: IProductionConfigProps): IEvidenceClaim[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createProductionClaims = createProductionClaims;
|
|
4
|
+
const collectProductionClaims_1 = require("./internal/collectProductionClaims");
|
|
5
|
+
/**
|
|
6
|
+
* Creates the structural claims of one production for native Evidence.
|
|
7
|
+
*
|
|
8
|
+
* Returns the same full population used by createProductionConfig. Source stage
|
|
9
|
+
* declarations do not certify independent review or creative approval.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/implementation.md#principled-implementation Delegating to collectProductionClaims preserves the same ordered generated, custom, support and review claim population used by the config factory, without interpreting stage declarations as approval.
|
|
12
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This entry exposes native claim construction without a configuration wrapper; the collector owns the same composition used by createProductionConfig.
|
|
13
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The function neither filters known failures nor invents claims for a caller; all production source validation remains in the common collector.
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment distinguishes structural claim creation from independent review and identifies equivalence with createProductionConfig population.
|
|
15
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The dominant cost is the collector's contract discovery and claim expansion over selected layers, documents and custom/support claims; the returned array grows with emitted claims and references.
|
|
16
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Every call rebuilds from current contract files and props; filesystem discovery can change, and no stable dependency snapshot permits cross-call reuse here.
|
|
17
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned native claim objects are caller-owned; synchronous discovery retains no registry, open handle or background task.
|
|
18
|
+
*/
|
|
19
|
+
function createProductionClaims(props) {
|
|
20
|
+
return (0, collectProductionClaims_1.collectProductionClaims)(props);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=createProductionClaims.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createProductionClaims.js","sourceRoot":"","sources":["../../src/narrative/createProductionClaims.ts"],"names":[],"mappings":";;;AAGA,gFAA6E;AAE7E;;;;;;;;;;;;;GAaG;AACH,gCACE,KAA6B;IAE7B,OAAO,IAAA,iDAAuB,EAAC,KAAK,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IEvidenceConfig } from "@wrtnlabs/evidence";
|
|
2
|
+
import type { IProductionConfigProps } from "./IProductionConfigProps";
|
|
3
|
+
/**
|
|
4
|
+
* Creates a native Evidence configuration from the production's claim families.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/implementation.md#principled-implementation Delegates complete native graph assembly to createGraphConfig without adding a second evaluator or approval policy.
|
|
7
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This public factory and the claim-only factory share the same collector and native claim representation.
|
|
8
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The resulting graph retains its selected checklist, coverage, lineage and current-review duties for native Evidence to evaluate.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation The input documents stage and route choices; this function returns configuration data rather than an acceptance result.
|
|
10
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The collector's contract discovery and emitted claims dominate runtime and storage; this wrapper adds one constant-size native configuration object.
|
|
11
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work One collector invocation constructs the graph, with no duplicate evaluation or cross-call capture.
|
|
12
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the returned native graph survives; no identity registry, handle or background task is retained.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createProductionConfig(props: IProductionConfigProps): IEvidenceConfig;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createProductionConfig = createProductionConfig;
|
|
4
|
+
const createGraphConfig_1 = require("./internal/createGraphConfig");
|
|
5
|
+
/**
|
|
6
|
+
* Creates a native Evidence configuration from the production's claim families.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/implementation.md#principled-implementation Delegates complete native graph assembly to createGraphConfig without adding a second evaluator or approval policy.
|
|
9
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This public factory and the claim-only factory share the same collector and native claim representation.
|
|
10
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The resulting graph retains its selected checklist, coverage, lineage and current-review duties for native Evidence to evaluate.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation The input documents stage and route choices; this function returns configuration data rather than an acceptance result.
|
|
12
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The collector's contract discovery and emitted claims dominate runtime and storage; this wrapper adds one constant-size native configuration object.
|
|
13
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work One collector invocation constructs the graph, with no duplicate evaluation or cross-call capture.
|
|
14
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the returned native graph survives; no identity registry, handle or background task is retained.
|
|
15
|
+
*/
|
|
16
|
+
function createProductionConfig(props) {
|
|
17
|
+
return (0, createGraphConfig_1.createGraphConfig)(props);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=createProductionConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createProductionConfig.js","sourceRoot":"","sources":["../../src/narrative/createProductionConfig.ts"],"names":[],"mappings":";;;AAGA,oEAAiE;AAEjE;;;;;;;;;;GAUG;AACH,gCACE,KAA6B;IAE7B,OAAO,IAAA,qCAAiB,EAAC,KAAK,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selects the settings canon in every supported layout, excluding the outline:
|
|
3
|
+
* the scaffold's `settings/<domain>/<subject>.md` domain folders, numbered
|
|
4
|
+
* `settings/NNN-subject/` folders and legacy flat `settings/*.md`.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/implementation.md#principled-implementation One glob per scaffold domain admits the documented domain layout that readSettingsFiles reads, beside the legacy flat glob and the numbered subject-folder glob; the outline subtree matches none of them.
|
|
7
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The selector only describes canon population from the shared SETTINGS_DOMAINS list; readSettingsFiles and outline validation own concrete ordering and layout checks.
|
|
8
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts All three layout forms are supported production formats, not fixture exceptions; the function does not admit arbitrary recursive settings nesting or unknown domain folders.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states domain, numbered and legacy layout coverage and explicitly excludes the outline.
|
|
10
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The function builds one string per fixed domain plus two, with constant time and space.
|
|
11
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each caller receives a separate array; the trivial allocation coordinates no reusable work or mutable shared selection.
|
|
12
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The returned array has a fixed number of entries and no external resource; the function retains no per-call state.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createSettingsFiles(): string[];
|