@automovie/evidence 0.0.0-stage → 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +95 -2
- package/lib/IAutoMovieDevelopmentProps.d.ts +38 -0
- package/lib/IAutoMovieDevelopmentProps.js +3 -0
- package/lib/IAutoMovieDevelopmentProps.js.map +1 -0
- package/lib/IAutoMovieEvidenceConfigProps.d.ts +38 -0
- package/lib/IAutoMovieEvidenceConfigProps.js +3 -0
- package/lib/IAutoMovieEvidenceConfigProps.js.map +1 -0
- package/lib/IAutoMovieNarrativeProps.d.ts +24 -0
- package/lib/IAutoMovieNarrativeProps.js +3 -0
- package/lib/IAutoMovieNarrativeProps.js.map +1 -0
- package/lib/createDevelopmentContractClaims.d.ts +38 -0
- package/lib/createDevelopmentContractClaims.js +89 -0
- package/lib/createDevelopmentContractClaims.js.map +1 -0
- package/lib/createEngineeringClaims.d.ts +55 -0
- package/lib/createEngineeringClaims.js +96 -0
- package/lib/createEngineeringClaims.js.map +1 -0
- package/lib/createEvidenceConfig.d.ts +20 -0
- package/lib/createEvidenceConfig.js +68 -0
- package/lib/createEvidenceConfig.js.map +1 -0
- package/lib/createResearchClaims.d.ts +31 -0
- package/lib/createResearchClaims.js +44 -0
- package/lib/createResearchClaims.js.map +1 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +25 -0
- package/lib/index.js.map +1 -0
- package/lib/internal/IContractLocation.d.ts +24 -0
- package/lib/internal/IContractLocation.js +3 -0
- package/lib/internal/IContractLocation.js.map +1 -0
- package/lib/internal/PRODUCTION_CONTRACTS.d.ts +19 -0
- package/lib/internal/PRODUCTION_CONTRACTS.js +23 -0
- package/lib/internal/PRODUCTION_CONTRACTS.js.map +1 -0
- package/lib/internal/SKILLS_ROOT.d.ts +19 -0
- package/lib/internal/SKILLS_ROOT.js +23 -0
- package/lib/internal/SKILLS_ROOT.js.map +1 -0
- package/lib/internal/STORY_CONTRACTS.d.ts +16 -0
- package/lib/internal/STORY_CONTRACTS.js +20 -0
- package/lib/internal/STORY_CONTRACTS.js.map +1 -0
- package/lib/internal/assertProductionContractLayout.d.ts +23 -0
- package/lib/internal/assertProductionContractLayout.js +41 -0
- package/lib/internal/assertProductionContractLayout.js.map +1 -0
- package/lib/internal/createReferenceRoot.d.ts +22 -0
- package/lib/internal/createReferenceRoot.js +35 -0
- package/lib/internal/createReferenceRoot.js.map +1 -0
- package/lib/internal/resolveSkillsDirectory.d.ts +22 -0
- package/lib/internal/resolveSkillsDirectory.js +36 -0
- package/lib/internal/resolveSkillsDirectory.js.map +1 -0
- package/lib/narrative/AuthoredLayer.d.ts +13 -0
- package/lib/narrative/AuthoredLayer.js +3 -0
- package/lib/narrative/AuthoredLayer.js.map +1 -0
- package/lib/narrative/AuthoredPass.d.ts +16 -0
- package/lib/narrative/AuthoredPass.js +3 -0
- package/lib/narrative/AuthoredPass.js.map +1 -0
- package/lib/narrative/EvidenceMetadataRewriteOwnership.d.ts +16 -0
- package/lib/narrative/EvidenceMetadataRewriteOwnership.js +3 -0
- package/lib/narrative/EvidenceMetadataRewriteOwnership.js.map +1 -0
- package/lib/narrative/IEvidenceMetadataRenderedSample.d.ts +20 -0
- package/lib/narrative/IEvidenceMetadataRenderedSample.js +3 -0
- package/lib/narrative/IEvidenceMetadataRenderedSample.js.map +1 -0
- package/lib/narrative/IEvidenceMetadataRewriteFile.d.ts +16 -0
- package/lib/narrative/IEvidenceMetadataRewriteFile.js +3 -0
- package/lib/narrative/IEvidenceMetadataRewriteFile.js.map +1 -0
- package/lib/narrative/IEvidenceMetadataRewriteProps.d.ts +28 -0
- package/lib/narrative/IEvidenceMetadataRewriteProps.js +3 -0
- package/lib/narrative/IEvidenceMetadataRewriteProps.js.map +1 -0
- package/lib/narrative/IEvidenceMetadataRewriteReport.d.ts +21 -0
- package/lib/narrative/IEvidenceMetadataRewriteReport.js +3 -0
- package/lib/narrative/IEvidenceMetadataRewriteReport.js.map +1 -0
- package/lib/narrative/IPackageChecklistClaimProps.d.ts +71 -0
- package/lib/narrative/IPackageChecklistClaimProps.js +3 -0
- package/lib/narrative/IPackageChecklistClaimProps.js.map +1 -0
- package/lib/narrative/IPackageContractProps.d.ts +67 -0
- package/lib/narrative/IPackageContractProps.js +3 -0
- package/lib/narrative/IPackageContractProps.js.map +1 -0
- package/lib/narrative/IPackagePopulationContractProps.d.ts +35 -0
- package/lib/narrative/IPackagePopulationContractProps.js +3 -0
- package/lib/narrative/IPackagePopulationContractProps.js.map +1 -0
- package/lib/narrative/IProductionConfigProps.d.ts +59 -0
- package/lib/narrative/IProductionConfigProps.js +3 -0
- package/lib/narrative/IProductionConfigProps.js.map +1 -0
- package/lib/narrative/IProductionConstruction.d.ts +49 -0
- package/lib/narrative/IProductionConstruction.js +3 -0
- package/lib/narrative/IProductionConstruction.js.map +1 -0
- package/lib/narrative/IProductionLayerStages.d.ts +15 -0
- package/lib/narrative/IProductionLayerStages.js +3 -0
- package/lib/narrative/IProductionLayerStages.js.map +1 -0
- package/lib/narrative/NarrativeLayer.d.ts +14 -0
- package/lib/narrative/NarrativeLayer.js +3 -0
- package/lib/narrative/NarrativeLayer.js.map +1 -0
- package/lib/narrative/NarrativeScope.d.ts +24 -0
- package/lib/narrative/NarrativeScope.js +3 -0
- package/lib/narrative/NarrativeScope.js.map +1 -0
- package/lib/narrative/ProductionStage.d.ts +9 -0
- package/lib/narrative/ProductionStage.js +3 -0
- package/lib/narrative/ProductionStage.js.map +1 -0
- package/lib/narrative/createBriefFiles.d.ts +16 -0
- package/lib/narrative/createBriefFiles.js +23 -0
- package/lib/narrative/createBriefFiles.js.map +1 -0
- package/lib/narrative/createNarrativeUnitFiles.d.ts +25 -0
- package/lib/narrative/createNarrativeUnitFiles.js +39 -0
- package/lib/narrative/createNarrativeUnitFiles.js.map +1 -0
- package/lib/narrative/createPackageChecklistClaim.d.ts +22 -0
- package/lib/narrative/createPackageChecklistClaim.js +100 -0
- package/lib/narrative/createPackageChecklistClaim.js.map +1 -0
- package/lib/narrative/createPackageContract.d.ts +18 -0
- package/lib/narrative/createPackageContract.js +40 -0
- package/lib/narrative/createPackageContract.js.map +1 -0
- package/lib/narrative/createPackagePopulationContract.d.ts +19 -0
- package/lib/narrative/createPackagePopulationContract.js +70 -0
- package/lib/narrative/createPackagePopulationContract.js.map +1 -0
- package/lib/narrative/createProductionClaims.d.ts +17 -0
- package/lib/narrative/createProductionClaims.js +22 -0
- package/lib/narrative/createProductionClaims.js.map +1 -0
- package/lib/narrative/createProductionConfig.d.ts +14 -0
- package/lib/narrative/createProductionConfig.js +19 -0
- package/lib/narrative/createProductionConfig.js.map +1 -0
- package/lib/narrative/createSettingsFiles.d.ts +14 -0
- package/lib/narrative/createSettingsFiles.js +25 -0
- package/lib/narrative/createSettingsFiles.js.map +1 -0
- package/lib/narrative/index.d.ts +27 -0
- package/lib/narrative/index.js +44 -0
- package/lib/narrative/index.js.map +1 -0
- package/lib/narrative/internal/AUTHORED_LAYERS.d.ts +13 -0
- package/lib/narrative/internal/AUTHORED_LAYERS.js +22 -0
- package/lib/narrative/internal/AUTHORED_LAYERS.js.map +1 -0
- package/lib/narrative/internal/REALIZED_LAYERS.d.ts +16 -0
- package/lib/narrative/internal/REALIZED_LAYERS.js +19 -0
- package/lib/narrative/internal/REALIZED_LAYERS.js.map +1 -0
- package/lib/narrative/internal/SETTINGS_DOMAINS.d.ts +8 -0
- package/lib/narrative/internal/SETTINGS_DOMAINS.js +20 -0
- package/lib/narrative/internal/SETTINGS_DOMAINS.js.map +1 -0
- package/lib/narrative/internal/claims/createDiscoveryClaim.d.ts +32 -0
- package/lib/narrative/internal/claims/createDiscoveryClaim.js +48 -0
- package/lib/narrative/internal/claims/createDiscoveryClaim.js.map +1 -0
- package/lib/narrative/internal/claims/createExpressionObligationClaims.d.ts +25 -0
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js +100 -0
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js.map +1 -0
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.d.ts +18 -0
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js +49 -0
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js.map +1 -0
- package/lib/narrative/internal/claims/createLayerClaims.d.ts +31 -0
- package/lib/narrative/internal/claims/createLayerClaims.js +153 -0
- package/lib/narrative/internal/claims/createLayerClaims.js.map +1 -0
- package/lib/narrative/internal/claims/createOutlineClaims.d.ts +31 -0
- package/lib/narrative/internal/claims/createOutlineClaims.js +127 -0
- package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -0
- package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +25 -0
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js +93 -0
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js.map +1 -0
- package/lib/narrative/internal/claims/createReviewClaims.d.ts +34 -0
- package/lib/narrative/internal/claims/createReviewClaims.js +224 -0
- package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -0
- package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +18 -0
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js +40 -0
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js.map +1 -0
- package/lib/narrative/internal/collectProductionClaims.d.ts +14 -0
- package/lib/narrative/internal/collectProductionClaims.js +59 -0
- package/lib/narrative/internal/collectProductionClaims.js.map +1 -0
- package/lib/narrative/internal/constructionStage.d.ts +15 -0
- package/lib/narrative/internal/constructionStage.js +18 -0
- package/lib/narrative/internal/constructionStage.js.map +1 -0
- package/lib/narrative/internal/createGraphConfig.d.ts +23 -0
- package/lib/narrative/internal/createGraphConfig.js +31 -0
- package/lib/narrative/internal/createGraphConfig.js.map +1 -0
- package/lib/narrative/internal/hasNaturalness.d.ts +14 -0
- package/lib/narrative/internal/hasNaturalness.js +19 -0
- package/lib/narrative/internal/hasNaturalness.js.map +1 -0
- package/lib/narrative/internal/isCanonLayer.d.ts +13 -0
- package/lib/narrative/internal/isCanonLayer.js +18 -0
- package/lib/narrative/internal/isCanonLayer.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js +16 -0
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/EvidenceDeclarationKind.d.ts +9 -0
- package/lib/narrative/internal/metadataRewrite/EvidenceDeclarationKind.js +3 -0
- package/lib/narrative/internal/metadataRewrite/EvidenceDeclarationKind.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js +16 -0
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js +16 -0
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/IEvidenceHeading.d.ts +19 -0
- package/lib/narrative/internal/metadataRewrite/IEvidenceHeading.js +3 -0
- package/lib/narrative/internal/metadataRewrite/IEvidenceHeading.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/IEvidenceSection.d.ts +19 -0
- package/lib/narrative/internal/metadataRewrite/IEvidenceSection.js +3 -0
- package/lib/narrative/internal/metadataRewrite/IEvidenceSection.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/IMetadataFragment.d.ts +14 -0
- package/lib/narrative/internal/metadataRewrite/IMetadataFragment.js +3 -0
- package/lib/narrative/internal/metadataRewrite/IMetadataFragment.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/IProjectionSegment.d.ts +16 -0
- package/lib/narrative/internal/metadataRewrite/IProjectionSegment.js +3 -0
- package/lib/narrative/internal/metadataRewrite/IProjectionSegment.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/IProtectedProjection.d.ts +22 -0
- package/lib/narrative/internal/metadataRewrite/IProtectedProjection.js +3 -0
- package/lib/narrative/internal/metadataRewrite/IProtectedProjection.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/REVIEW.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/REVIEW.js +16 -0
- package/lib/narrative/internal/metadataRewrite/REVIEW.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js +23 -0
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/UTF8.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/UTF8.js +20 -0
- package/lib/narrative/internal/metadataRewrite/UTF8.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/between.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/between.js +18 -0
- package/lib/narrative/internal/metadataRewrite/between.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/continuation.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/continuation.js +19 -0
- package/lib/narrative/internal/metadataRewrite/continuation.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/declarationKind.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/declarationKind.js +26 -0
- package/lib/narrative/internal/metadataRewrite/declarationKind.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/decode.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/decode.js +26 -0
- package/lib/narrative/internal/metadataRewrite/decode.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/directory.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/directory.js +26 -0
- package/lib/narrative/internal/metadataRewrite/directory.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/errorMessage.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/errorMessage.js +18 -0
- package/lib/narrative/internal/metadataRewrite/errorMessage.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.js +35 -0
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/evidenceSections.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/evidenceSections.js +106 -0
- package/lib/narrative/internal/metadataRewrite/evidenceSections.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/findClose.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/findClose.js +21 -0
- package/lib/narrative/internal/metadataRewrite/findClose.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/firstDifference.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/firstDifference.js +22 -0
- package/lib/narrative/internal/metadataRewrite/firstDifference.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js +20 -0
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js +78 -0
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/isDeclaration.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/isDeclaration.js +19 -0
- package/lib/narrative/internal/metadataRewrite/isDeclaration.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/isNodeError.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/isNodeError.js +18 -0
- package/lib/narrative/internal/metadataRewrite/isNodeError.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/lineEnding.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/lineEnding.js +19 -0
- package/lib/narrative/internal/metadataRewrite/lineEnding.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/locate.d.ts +15 -0
- package/lib/narrative/internal/metadataRewrite/locate.js +20 -0
- package/lib/narrative/internal/metadataRewrite/locate.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/markdownFiles.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/markdownFiles.js +33 -0
- package/lib/narrative/internal/metadataRewrite/markdownFiles.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.js +23 -0
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/normalizeFile.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/normalizeFile.js +33 -0
- package/lib/narrative/internal/metadataRewrite/normalizeFile.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js +25 -0
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/occurrences.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/occurrences.js +19 -0
- package/lib/narrative/internal/metadataRewrite/occurrences.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/originalOffset.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/originalOffset.js +24 -0
- package/lib/narrative/internal/metadataRewrite/originalOffset.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/project.d.ts +14 -0
- package/lib/narrative/internal/metadataRewrite/project.js +175 -0
- package/lib/narrative/internal/metadataRewrite/project.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.js +43 -0
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/replacementSafety.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/replacementSafety.js +36 -0
- package/lib/narrative/internal/metadataRewrite/replacementSafety.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/sameMetadata.d.ts +13 -0
- package/lib/narrative/internal/metadataRewrite/sameMetadata.js +20 -0
- package/lib/narrative/internal/metadataRewrite/sameMetadata.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/selectFiles.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/selectFiles.js +28 -0
- package/lib/narrative/internal/metadataRewrite/selectFiles.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js +22 -0
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/textLocation.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/textLocation.js +21 -0
- package/lib/narrative/internal/metadataRewrite/textLocation.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.d.ts +17 -0
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js +48 -0
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js.map +1 -0
- package/lib/narrative/internal/metadataRewrite/withoutEnding.d.ts +12 -0
- package/lib/narrative/internal/metadataRewrite/withoutEnding.js +18 -0
- package/lib/narrative/internal/metadataRewrite/withoutEnding.js.map +1 -0
- package/lib/narrative/internal/productionLayers.d.ts +14 -0
- package/lib/narrative/internal/productionLayers.js +22 -0
- package/lib/narrative/internal/productionLayers.js.map +1 -0
- package/lib/narrative/internal/readSettingsFiles.d.ts +19 -0
- package/lib/narrative/internal/readSettingsFiles.js +101 -0
- package/lib/narrative/internal/readSettingsFiles.js.map +1 -0
- package/lib/narrative/internal/references/createCoverageReference.d.ts +29 -0
- package/lib/narrative/internal/references/createCoverageReference.js +39 -0
- package/lib/narrative/internal/references/createCoverageReference.js.map +1 -0
- package/lib/narrative/internal/references/createDiscoveryReferences.d.ts +26 -0
- package/lib/narrative/internal/references/createDiscoveryReferences.js +44 -0
- package/lib/narrative/internal/references/createDiscoveryReferences.js.map +1 -0
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.d.ts +13 -0
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js +26 -0
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js.map +1 -0
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.d.ts +21 -0
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +32 -0
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js.map +1 -0
- package/lib/narrative/internal/references/createLineageReference.d.ts +23 -0
- package/lib/narrative/internal/references/createLineageReference.js +36 -0
- package/lib/narrative/internal/references/createLineageReference.js.map +1 -0
- package/lib/narrative/internal/references/createLocalContractReference.d.ts +24 -0
- package/lib/narrative/internal/references/createLocalContractReference.js +40 -0
- package/lib/narrative/internal/references/createLocalContractReference.js.map +1 -0
- package/lib/narrative/internal/references/createPrincipleReferences.d.ts +31 -0
- package/lib/narrative/internal/references/createPrincipleReferences.js +53 -0
- package/lib/narrative/internal/references/createPrincipleReferences.js.map +1 -0
- package/lib/narrative/internal/references/createSettingReferences.d.ts +15 -0
- package/lib/narrative/internal/references/createSettingReferences.js +36 -0
- package/lib/narrative/internal/references/createSettingReferences.js.map +1 -0
- package/lib/narrative/internal/references/createSharedReference.d.ts +38 -0
- package/lib/narrative/internal/references/createSharedReference.js +45 -0
- package/lib/narrative/internal/references/createSharedReference.js.map +1 -0
- package/lib/narrative/internal/references/createUpstreamReference.d.ts +22 -0
- package/lib/narrative/internal/references/createUpstreamReference.js +31 -0
- package/lib/narrative/internal/references/createUpstreamReference.js.map +1 -0
- package/lib/narrative/internal/references/layerFiles.d.ts +19 -0
- package/lib/narrative/internal/references/layerFiles.js +31 -0
- package/lib/narrative/internal/references/layerFiles.js.map +1 -0
- package/lib/narrative/internal/settingsEntryAnchor.d.ts +12 -0
- package/lib/narrative/internal/settingsEntryAnchor.js +18 -0
- package/lib/narrative/internal/settingsEntryAnchor.js.map +1 -0
- package/lib/narrative/internal/topology/createTopologyFiles.d.ts +14 -0
- package/lib/narrative/internal/topology/createTopologyFiles.js +20 -0
- package/lib/narrative/internal/topology/createTopologyFiles.js.map +1 -0
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.d.ts +16 -0
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js +20 -0
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js.map +1 -0
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.d.ts +13 -0
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js +61 -0
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js.map +1 -0
- package/lib/narrative/internal/utilities/createContractDirectory.d.ts +24 -0
- package/lib/narrative/internal/utilities/createContractDirectory.js +38 -0
- package/lib/narrative/internal/utilities/createContractDirectory.js.map +1 -0
- package/lib/narrative/internal/utilities/createContractRoot.d.ts +29 -0
- package/lib/narrative/internal/utilities/createContractRoot.js +36 -0
- package/lib/narrative/internal/utilities/createContractRoot.js.map +1 -0
- package/lib/narrative/internal/utilities/createEvidenceFiles.d.ts +12 -0
- package/lib/narrative/internal/utilities/createEvidenceFiles.js +24 -0
- package/lib/narrative/internal/utilities/createEvidenceFiles.js.map +1 -0
- package/lib/narrative/internal/utilities/createUnitFiles.d.ts +21 -0
- package/lib/narrative/internal/utilities/createUnitFiles.js +32 -0
- package/lib/narrative/internal/utilities/createUnitFiles.js.map +1 -0
- package/lib/narrative/internal/utilities/passRoot.d.ts +16 -0
- package/lib/narrative/internal/utilities/passRoot.js +22 -0
- package/lib/narrative/internal/utilities/passRoot.js.map +1 -0
- package/lib/narrative/internal/utilities/referenceLocation.d.ts +28 -0
- package/lib/narrative/internal/utilities/referenceLocation.js +39 -0
- package/lib/narrative/internal/utilities/referenceLocation.js.map +1 -0
- package/lib/narrative/internal/validateSettingsOutline.d.ts +16 -0
- package/lib/narrative/internal/validateSettingsOutline.js +135 -0
- package/lib/narrative/internal/validateSettingsOutline.js.map +1 -0
- package/lib/narrative/isFirstPartPilot.d.ts +13 -0
- package/lib/narrative/isFirstPartPilot.js +18 -0
- package/lib/narrative/isFirstPartPilot.js.map +1 -0
- package/lib/narrative/stripNaturalnessComments.d.ts +12 -0
- package/lib/narrative/stripNaturalnessComments.js +34 -0
- package/lib/narrative/stripNaturalnessComments.js.map +1 -0
- package/lib/narrative/verifyEvidenceMetadataRewrite.d.ts +20 -0
- package/lib/narrative/verifyEvidenceMetadataRewrite.js +115 -0
- package/lib/narrative/verifyEvidenceMetadataRewrite.js.map +1 -0
- package/package.json +49 -3
- package/src/IAutoMovieDevelopmentProps.ts +40 -0
- package/src/IAutoMovieEvidenceConfigProps.ts +45 -0
- package/src/IAutoMovieNarrativeProps.ts +30 -0
- package/src/createDevelopmentContractClaims.ts +113 -0
- package/src/createEngineeringClaims.ts +126 -0
- package/src/createEvidenceConfig.ts +73 -0
- package/src/createResearchClaims.ts +54 -0
- package/src/index.ts +8 -0
- package/src/internal/IContractLocation.ts +25 -0
- package/src/internal/PRODUCTION_CONTRACTS.ts +19 -0
- package/src/internal/SKILLS_ROOT.ts +19 -0
- package/src/internal/STORY_CONTRACTS.ts +16 -0
- package/src/internal/assertProductionContractLayout.ts +50 -0
- package/src/internal/createReferenceRoot.ts +32 -0
- package/src/internal/resolveSkillsDirectory.ts +32 -0
- package/src/narrative/AuthoredLayer.ts +14 -0
- package/src/narrative/AuthoredPass.ts +16 -0
- package/src/narrative/EvidenceMetadataRewriteOwnership.ts +20 -0
- package/src/narrative/IEvidenceMetadataRenderedSample.ts +24 -0
- package/src/narrative/IEvidenceMetadataRewriteFile.ts +18 -0
- package/src/narrative/IEvidenceMetadataRewriteProps.ts +34 -0
- package/src/narrative/IEvidenceMetadataRewriteReport.ts +25 -0
- package/src/narrative/IPackageChecklistClaimProps.ts +80 -0
- package/src/narrative/IPackageContractProps.ts +76 -0
- package/src/narrative/IPackagePopulationContractProps.ts +41 -0
- package/src/narrative/IProductionConfigProps.ts +68 -0
- package/src/narrative/IProductionConstruction.ts +55 -0
- package/src/narrative/IProductionLayerStages.ts +16 -0
- package/src/narrative/NarrativeLayer.ts +14 -0
- package/src/narrative/NarrativeScope.ts +27 -0
- package/src/narrative/ProductionStage.ts +9 -0
- package/src/narrative/createBriefFiles.ts +22 -0
- package/src/narrative/createNarrativeUnitFiles.ts +44 -0
- package/src/narrative/createPackageChecklistClaim.ts +144 -0
- package/src/narrative/createPackageContract.ts +55 -0
- package/src/narrative/createPackagePopulationContract.ts +112 -0
- package/src/narrative/createProductionClaims.ts +24 -0
- package/src/narrative/createProductionConfig.ts +21 -0
- package/src/narrative/createSettingsFiles.ts +24 -0
- package/src/narrative/index.ts +27 -0
- package/src/narrative/internal/AUTHORED_LAYERS.ts +20 -0
- package/src/narrative/internal/REALIZED_LAYERS.ts +18 -0
- package/src/narrative/internal/SETTINGS_DOMAINS.ts +16 -0
- package/src/narrative/internal/claims/createDiscoveryClaim.ts +53 -0
- package/src/narrative/internal/claims/createExpressionObligationClaims.ts +134 -0
- package/src/narrative/internal/claims/createInstructionCoverageClaim.ts +53 -0
- package/src/narrative/internal/claims/createLayerClaims.ts +178 -0
- package/src/narrative/internal/claims/createOutlineClaims.ts +138 -0
- package/src/narrative/internal/claims/createPopulationObligationClaims.ts +134 -0
- package/src/narrative/internal/claims/createReviewClaims.ts +271 -0
- package/src/narrative/internal/claims/createSettingCoverageClaim.ts +48 -0
- package/src/narrative/internal/collectProductionClaims.ts +79 -0
- package/src/narrative/internal/constructionStage.ts +21 -0
- package/src/narrative/internal/createGraphConfig.ts +34 -0
- package/src/narrative/internal/hasNaturalness.ts +17 -0
- package/src/narrative/internal/isCanonLayer.ts +18 -0
- package/src/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.ts +13 -0
- package/src/narrative/internal/metadataRewrite/EvidenceDeclarationKind.ts +9 -0
- package/src/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.ts +13 -0
- package/src/narrative/internal/metadataRewrite/HEADING_REVIEW.ts +13 -0
- package/src/narrative/internal/metadataRewrite/IEvidenceHeading.ts +23 -0
- package/src/narrative/internal/metadataRewrite/IEvidenceSection.ts +23 -0
- package/src/narrative/internal/metadataRewrite/IMetadataFragment.ts +15 -0
- package/src/narrative/internal/metadataRewrite/IProjectionSegment.ts +18 -0
- package/src/narrative/internal/metadataRewrite/IProtectedProjection.ts +27 -0
- package/src/narrative/internal/metadataRewrite/REVIEW.ts +13 -0
- package/src/narrative/internal/metadataRewrite/SUSPICIOUS.ts +19 -0
- package/src/narrative/internal/metadataRewrite/UTF8.ts +17 -0
- package/src/narrative/internal/metadataRewrite/between.ts +18 -0
- package/src/narrative/internal/metadataRewrite/continuation.ts +16 -0
- package/src/narrative/internal/metadataRewrite/declarationKind.ts +28 -0
- package/src/narrative/internal/metadataRewrite/decode.ts +25 -0
- package/src/narrative/internal/metadataRewrite/directory.ts +22 -0
- package/src/narrative/internal/metadataRewrite/errorMessage.ts +14 -0
- package/src/narrative/internal/metadataRewrite/evidenceHeading.ts +33 -0
- package/src/narrative/internal/metadataRewrite/evidenceSections.ts +112 -0
- package/src/narrative/internal/metadataRewrite/findClose.ts +16 -0
- package/src/narrative/internal/metadataRewrite/firstDifference.ts +17 -0
- package/src/narrative/internal/metadataRewrite/flatFingerprintStart.ts +17 -0
- package/src/narrative/internal/metadataRewrite/invalidUtf8Offset.ts +84 -0
- package/src/narrative/internal/metadataRewrite/isDeclaration.ts +16 -0
- package/src/narrative/internal/metadataRewrite/isNodeError.ts +14 -0
- package/src/narrative/internal/metadataRewrite/lineEnding.ts +16 -0
- package/src/narrative/internal/metadataRewrite/locate.ts +19 -0
- package/src/narrative/internal/metadataRewrite/markdownFiles.ts +31 -0
- package/src/narrative/internal/metadataRewrite/metadataOwnership.ts +27 -0
- package/src/narrative/internal/metadataRewrite/normalizeFile.ts +29 -0
- package/src/narrative/internal/metadataRewrite/occurrenceOffsets.ts +20 -0
- package/src/narrative/internal/metadataRewrite/occurrences.ts +16 -0
- package/src/narrative/internal/metadataRewrite/originalOffset.ts +28 -0
- package/src/narrative/internal/metadataRewrite/project.ts +219 -0
- package/src/narrative/internal/metadataRewrite/protectedFileKind.ts +34 -0
- package/src/narrative/internal/metadataRewrite/replacementSafety.ts +42 -0
- package/src/narrative/internal/metadataRewrite/sameMetadata.ts +26 -0
- package/src/narrative/internal/metadataRewrite/selectFiles.ts +32 -0
- package/src/narrative/internal/metadataRewrite/singleLineDeclaration.ts +18 -0
- package/src/narrative/internal/metadataRewrite/textLocation.ts +21 -0
- package/src/narrative/internal/metadataRewrite/validateRenderedSample.ts +65 -0
- package/src/narrative/internal/metadataRewrite/withoutEnding.ts +14 -0
- package/src/narrative/internal/productionLayers.ts +23 -0
- package/src/narrative/internal/readSettingsFiles.ts +115 -0
- package/src/narrative/internal/references/createCoverageReference.ts +43 -0
- package/src/narrative/internal/references/createDiscoveryReferences.ts +54 -0
- package/src/narrative/internal/references/createLanguageDiscoveryReferences.ts +31 -0
- package/src/narrative/internal/references/createLanguagePrincipleReferences.ts +46 -0
- package/src/narrative/internal/references/createLineageReference.ts +41 -0
- package/src/narrative/internal/references/createLocalContractReference.ts +42 -0
- package/src/narrative/internal/references/createPrincipleReferences.ts +71 -0
- package/src/narrative/internal/references/createSettingReferences.ts +47 -0
- package/src/narrative/internal/references/createSharedReference.ts +50 -0
- package/src/narrative/internal/references/createUpstreamReference.ts +35 -0
- package/src/narrative/internal/references/layerFiles.ts +29 -0
- package/src/narrative/internal/settingsEntryAnchor.ts +14 -0
- package/src/narrative/internal/topology/createTopologyFiles.ts +22 -0
- package/src/narrative/internal/utilities/PACKAGE_DOCS_ROOT.ts +16 -0
- package/src/narrative/internal/utilities/assertProductionEvidenceSources.ts +75 -0
- package/src/narrative/internal/utilities/createContractDirectory.ts +40 -0
- package/src/narrative/internal/utilities/createContractRoot.ts +40 -0
- package/src/narrative/internal/utilities/createEvidenceFiles.ts +23 -0
- package/src/narrative/internal/utilities/createUnitFiles.ts +32 -0
- package/src/narrative/internal/utilities/passRoot.ts +20 -0
- package/src/narrative/internal/utilities/referenceLocation.ts +47 -0
- package/src/narrative/internal/validateSettingsOutline.ts +156 -0
- package/src/narrative/isFirstPartPilot.ts +16 -0
- package/src/narrative/stripNaturalnessComments.ts +31 -0
- package/src/narrative/verifyEvidenceMetadataRewrite.ts +169 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createEvidenceConfig = createEvidenceConfig;
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
+
const createDevelopmentContractClaims_1 = require("./createDevelopmentContractClaims");
|
|
9
|
+
const createEngineeringClaims_1 = require("./createEngineeringClaims");
|
|
10
|
+
const createResearchClaims_1 = require("./createResearchClaims");
|
|
11
|
+
const assertProductionContractLayout_1 = require("./internal/assertProductionContractLayout");
|
|
12
|
+
const createReferenceRoot_1 = require("./internal/createReferenceRoot");
|
|
13
|
+
const resolveSkillsDirectory_1 = require("./internal/resolveSkillsDirectory");
|
|
14
|
+
const createProductionConfig_1 = require("./narrative/createProductionConfig");
|
|
15
|
+
/**
|
|
16
|
+
* Creates a native Evidence configuration with optional narrative claims.
|
|
17
|
+
*
|
|
18
|
+
* The shared skills tree is resolved once: its absolute directory goes to the
|
|
19
|
+
* narrative factories, which keep production-owned work and language contracts
|
|
20
|
+
* under `<location>/docs/contracts`, and its root relative to `location` goes to the default
|
|
21
|
+
* engineering, development and research claims. Caller-supplied `claims` are
|
|
22
|
+
* kept as written, so they name their own root.
|
|
23
|
+
*
|
|
24
|
+
* @evidence contracts/development/implementation.md#principled-implementation An absolute project location and a resolved absolute shared skills tree anchor the native engineering defaults and optional narrative selectors; native Evidence resolves the relative root against the configuration directory, the location, and caller-supplied claims are cloned before composition.
|
|
25
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One options object selects engineering alone or delegates narrative claim composition to createProductionConfig; resolveSkillsDirectory and createReferenceRoot own the shared-tree default, validation and spelling.
|
|
26
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The returned object is an ordinary native configuration; this function neither evaluates diagnostics nor grants creative approval, an omitted skills tree yields exactly the standalone roots, and assertProductionContractLayout refuses a production still keeping its own contracts in the retired skills location rather than letting their duties vanish.
|
|
27
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Two legacy-layout existence probes precede work; engineering creation clones supplied claims or allocates fixed defaults; narrative creation additionally discovers current contract files and expands a fixed number of layer families.
|
|
28
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The shared tree is resolved once per call and reused by every factory; the layout guard repeats its two probes inside a narrative build so createProductionConfig called directly stays guarded; each call owns fresh option and claim copies, and filesystem-dependent narrative composition is not cached across calls.
|
|
29
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned configuration; this function retains no registry, native process or open resource.
|
|
30
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states how the shared tree reaches each factory and that supplied claims keep their own root; the input types explain routes, disabled stage defaults and additional native claims.
|
|
31
|
+
*/
|
|
32
|
+
function createEvidenceConfig(props) {
|
|
33
|
+
if (!node_path_1.default.isAbsolute(props.location))
|
|
34
|
+
throw new Error("Evidence location must be an absolute project directory.");
|
|
35
|
+
(0, assertProductionContractLayout_1.assertProductionContractLayout)(props.location);
|
|
36
|
+
const skills = (0, resolveSkillsDirectory_1.resolveSkillsDirectory)(props);
|
|
37
|
+
const root = (0, createReferenceRoot_1.createReferenceRoot)(props.location, skills);
|
|
38
|
+
const claims = props.claims === undefined
|
|
39
|
+
? (0, createEngineeringClaims_1.createEngineeringClaims)({ skills: root })
|
|
40
|
+
: structuredClone(props.claims);
|
|
41
|
+
claims.push(...(0, createDevelopmentContractClaims_1.createDevelopmentContractClaims)(props.development ?? {}, {
|
|
42
|
+
skills: root,
|
|
43
|
+
}));
|
|
44
|
+
if (props.research === "evidence")
|
|
45
|
+
claims.push(...(0, createResearchClaims_1.createResearchClaims)({ skills: root }));
|
|
46
|
+
if (props.narrative === undefined)
|
|
47
|
+
return { severity: "error", claims };
|
|
48
|
+
return (0, createProductionConfig_1.createProductionConfig)({
|
|
49
|
+
location: props.location,
|
|
50
|
+
skills,
|
|
51
|
+
mode: props.narrative.mode,
|
|
52
|
+
narrativeScope: structuredClone(props.narrative.scope ?? { mode: "complete-work" }),
|
|
53
|
+
construction: {
|
|
54
|
+
settings: "disabled",
|
|
55
|
+
treatments: "disabled",
|
|
56
|
+
scripts: "disabled",
|
|
57
|
+
screenplay: "disabled",
|
|
58
|
+
...structuredClone(props.narrative.construction ?? {}),
|
|
59
|
+
},
|
|
60
|
+
naturalness: {
|
|
61
|
+
screenplay: "disabled",
|
|
62
|
+
...structuredClone(props.narrative.naturalness ?? {}),
|
|
63
|
+
},
|
|
64
|
+
supportClaims: claims,
|
|
65
|
+
claims: structuredClone(props.narrative.claims ?? []),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=createEvidenceConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createEvidenceConfig.js","sourceRoot":"","sources":["../src/createEvidenceConfig.ts"],"names":[],"mappings":";;;;;;AACA,0DAA6B;AAG7B,uFAAoF;AACpF,uEAAoE;AACpE,iEAA8D;AAC9D,8FAA2F;AAC3F,wEAAqE;AACrE,8EAA2E;AAC3E,+EAA4E;AAE5E;;;;;;;;;;;;;;;;GAgBG;AACH,8BACE,KAAoC;IAEpC,IAAI,CAAC,mBAAI,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC;QAClC,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;IAC9E,IAAA,+DAA8B,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC/C,MAAM,MAAM,GAAW,IAAA,+CAAsB,EAAC,KAAK,CAAC,CAAC;IACrD,MAAM,IAAI,GAAW,IAAA,yCAAmB,EAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAEjE,MAAM,MAAM,GACV,KAAK,CAAC,MAAM,KAAK,SAAS;QACxB,CAAC,CAAC,IAAA,iDAAuB,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAC3C,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACpC,MAAM,CAAC,IAAI,CACT,GAAG,IAAA,iEAA+B,EAAC,KAAK,CAAC,WAAW,IAAI,EAAE,EAAE;QAC1D,MAAM,EAAE,IAAI;KACb,CAAC,CACH,CAAC;IACF,IAAI,KAAK,CAAC,QAAQ,KAAK,UAAU;QAC/B,MAAM,CAAC,IAAI,CAAC,GAAG,IAAA,2CAAoB,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACzD,IAAI,KAAK,CAAC,SAAS,KAAK,SAAS;QAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAExE,OAAO,IAAA,+CAAsB,EAAC;QAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,MAAM;QACN,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI;QAC1B,cAAc,EAAE,eAAe,CAC7B,KAAK,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CACnD;QACD,YAAY,EAAE;YACZ,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,UAAU;YACtB,OAAO,EAAE,UAAU;YACnB,UAAU,EAAE,UAAU;YACtB,GAAG,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,YAAY,IAAI,EAAE,CAAC;SACvD;QACD,WAAW,EAAE;YACX,UAAU,EAAE,UAAU;YACtB,GAAG,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,WAAW,IAAI,EAAE,CAAC;SACtD;QACD,aAAa,EAAE,MAAM;QACrB,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC;KACtD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { IEvidenceClaim } from "@wrtnlabs/evidence";
|
|
2
|
+
/**
|
|
3
|
+
* Creates the claim that holds research studies to the story research
|
|
4
|
+
* principles.
|
|
5
|
+
*
|
|
6
|
+
* Each study in `docs/research/`, apart from its index, answers every item of
|
|
7
|
+
* `contracts/story/shared/principles/research.md`, read from the skills tree at
|
|
8
|
+
* `skills`, by default the production's own `.agents/skills`. The citation
|
|
9
|
+
* address, `shared/principles/research.md`, is the same wherever that tree
|
|
10
|
+
* lives. Like the other story layers, the answers live apart from the study,
|
|
11
|
+
* in `docs/evidence/construction/files/research/`, under an H1 naming the
|
|
12
|
+
* study's path, so the study stays a plain synthesis its readers use.
|
|
13
|
+
*
|
|
14
|
+
* @evidence contracts/development/implementation.md#principled-implementation A native Markdown file claim with detached evidence files keeps the study's text free of answers while each study still owes every research item; the reference root joins the given skills root with the installed `contracts/story` layout, which native Evidence resolves against the configuration directory.
|
|
15
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One claim with fixed study and answer locations; the caller decides whether to enable it and where the shared skills tree is.
|
|
16
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The study, index and answer paths are the scaffold layout's documented locations, not fixture paths; the default root is the standalone layout.
|
|
17
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Builds one fixed-size claim tree in constant time; it performs no discovery or file I/O.
|
|
18
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work A fresh object is returned so one configuration's edits cannot reach another.
|
|
19
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned claim; nothing is retained.
|
|
20
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states the respondents, the contract, which tree it is read from and where the answers live; the option states its form and default.
|
|
21
|
+
*/
|
|
22
|
+
export declare function createResearchClaims(props?: {
|
|
23
|
+
/**
|
|
24
|
+
* Reference root of the skills tree holding the story contracts, relative
|
|
25
|
+
* to the directory of `evidence.config.ts` with `/` separators; `..`
|
|
26
|
+
* segments reach a workspace's shared tree.
|
|
27
|
+
*
|
|
28
|
+
* @default ".agents/skills"
|
|
29
|
+
*/
|
|
30
|
+
skills?: string;
|
|
31
|
+
}): IEvidenceClaim[];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createResearchClaims = createResearchClaims;
|
|
4
|
+
const SKILLS_ROOT_1 = require("./internal/SKILLS_ROOT");
|
|
5
|
+
const STORY_CONTRACTS_1 = require("./internal/STORY_CONTRACTS");
|
|
6
|
+
/**
|
|
7
|
+
* Creates the claim that holds research studies to the story research
|
|
8
|
+
* principles.
|
|
9
|
+
*
|
|
10
|
+
* Each study in `docs/research/`, apart from its index, answers every item of
|
|
11
|
+
* `contracts/story/shared/principles/research.md`, read from the skills tree at
|
|
12
|
+
* `skills`, by default the production's own `.agents/skills`. The citation
|
|
13
|
+
* address, `shared/principles/research.md`, is the same wherever that tree
|
|
14
|
+
* lives. Like the other story layers, the answers live apart from the study,
|
|
15
|
+
* in `docs/evidence/construction/files/research/`, under an H1 naming the
|
|
16
|
+
* study's path, so the study stays a plain synthesis its readers use.
|
|
17
|
+
*
|
|
18
|
+
* @evidence contracts/development/implementation.md#principled-implementation A native Markdown file claim with detached evidence files keeps the study's text free of answers while each study still owes every research item; the reference root joins the given skills root with the installed `contracts/story` layout, which native Evidence resolves against the configuration directory.
|
|
19
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One claim with fixed study and answer locations; the caller decides whether to enable it and where the shared skills tree is.
|
|
20
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The study, index and answer paths are the scaffold layout's documented locations, not fixture paths; the default root is the standalone layout.
|
|
21
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Builds one fixed-size claim tree in constant time; it performs no discovery or file I/O.
|
|
22
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work A fresh object is returned so one configuration's edits cannot reach another.
|
|
23
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned claim; nothing is retained.
|
|
24
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states the respondents, the contract, which tree it is read from and where the answers live; the option states its form and default.
|
|
25
|
+
*/
|
|
26
|
+
function createResearchClaims(props = {}) {
|
|
27
|
+
return [
|
|
28
|
+
{
|
|
29
|
+
name: "research studies",
|
|
30
|
+
type: "markdown",
|
|
31
|
+
files: ["docs/research/**/*.md", "!docs/research/index.md"],
|
|
32
|
+
evidenceFiles: ["docs/evidence/construction/files/research/**/*.md"],
|
|
33
|
+
symbol: "file",
|
|
34
|
+
reference: {
|
|
35
|
+
type: "markdown",
|
|
36
|
+
root: `${props.skills ?? SKILLS_ROOT_1.SKILLS_ROOT}/${STORY_CONTRACTS_1.STORY_CONTRACTS}`,
|
|
37
|
+
files: ["shared/principles/research.md"],
|
|
38
|
+
symbol: "h2",
|
|
39
|
+
checklist: true,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
];
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=createResearchClaims.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createResearchClaims.js","sourceRoot":"","sources":["../src/createResearchClaims.ts"],"names":[],"mappings":";;;AAEA,wDAAqD;AACrD,gEAA6D;AAE7D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,8BACE,KAAK,GASD,EAAE;IAEN,OAAO;QACL;YACE,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,CAAC,uBAAuB,EAAE,yBAAyB,CAAC;YAC3D,aAAa,EAAE,CAAC,mDAAmD,CAAC;YACpE,MAAM,EAAE,MAAM;YACd,SAAS,EAAE;gBACT,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,GAAG,KAAK,CAAC,MAAM,IAAI,yBAAW,IAAI,iCAAe,EAAE;gBACzD,KAAK,EAAE,CAAC,+BAA+B,CAAC;gBACxC,MAAM,EAAE,IAAI;gBACZ,SAAS,EAAE,IAAI;aAChB;SACF;KACF,CAAC;AACJ,CAAC"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./IAutoMovieEvidenceConfigProps";
|
|
2
|
+
export * from "./IAutoMovieNarrativeProps";
|
|
3
|
+
export * from "./IAutoMovieDevelopmentProps";
|
|
4
|
+
export * from "./createEvidenceConfig";
|
|
5
|
+
export * from "./createEngineeringClaims";
|
|
6
|
+
export * from "./createDevelopmentContractClaims";
|
|
7
|
+
export * from "./createResearchClaims";
|
|
8
|
+
export * from "./narrative";
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./IAutoMovieEvidenceConfigProps"), exports);
|
|
18
|
+
__exportStar(require("./IAutoMovieNarrativeProps"), exports);
|
|
19
|
+
__exportStar(require("./IAutoMovieDevelopmentProps"), exports);
|
|
20
|
+
__exportStar(require("./createEvidenceConfig"), exports);
|
|
21
|
+
__exportStar(require("./createEngineeringClaims"), exports);
|
|
22
|
+
__exportStar(require("./createDevelopmentContractClaims"), exports);
|
|
23
|
+
__exportStar(require("./createResearchClaims"), exports);
|
|
24
|
+
__exportStar(require("./narrative"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,6DAA2C;AAC3C,+DAA6C;AAC7C,yDAAuC;AACvC,4DAA0C;AAC1C,oEAAkD;AAClD,yDAAuC;AACvC,8CAA4B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locates the two contract owners one production's contracts come from: the production itself and the shared skills tree.
|
|
3
|
+
*
|
|
4
|
+
* The production's own `work` and `language` contracts always live under
|
|
5
|
+
* `<location>/docs/contracts`. The bundled shared contracts live under
|
|
6
|
+
* `skills`, which a workspace points at its one shared tree; a standalone
|
|
7
|
+
* production omits it and keeps them under its own `.agents/skills`.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/development/design.md#principled-representation Two absolute directories represent the two owners a contract can have, the production and the shared bundle; the optional member encodes the standalone layout, where the shared bundle sits under the production's own `.agents/skills`.
|
|
10
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Only the two directories that decide where a contract resolves; route, stages and claims stay with the configuration types that carry this shape.
|
|
11
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts No flag says "workspace": the owner is the directory itself, and an omitted `skills` is the standalone default rather than a guessed location.
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states which families each directory owns and the omitted default; the members state they are absolute.
|
|
13
|
+
*/
|
|
14
|
+
export interface IContractLocation {
|
|
15
|
+
/** Absolute production directory whose `docs/contracts` holds its `work` and `language` contracts. */
|
|
16
|
+
location: string;
|
|
17
|
+
/**
|
|
18
|
+
* Absolute directory of the shared `.agents/skills` tree holding the bundled
|
|
19
|
+
* contracts.
|
|
20
|
+
*
|
|
21
|
+
* @default path.join(location, ".agents", "skills")
|
|
22
|
+
*/
|
|
23
|
+
skills?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IContractLocation.js","sourceRoot":"","sources":["../../src/internal/IContractLocation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Names the tree of a production's own contracts, relative to its directory.
|
|
3
|
+
*
|
|
4
|
+
* The `work` and `language` families a production adopts live here directly,
|
|
5
|
+
* with no `story` level, so `work/discovery/results.md` is the file
|
|
6
|
+
* `docs/contracts/work/discovery/results.md` and is cited by that same
|
|
7
|
+
* family-qualified address. They sit beside the production's other documents
|
|
8
|
+
* rather than in a skills tree, so a workspace's shared `.agents/skills` holds
|
|
9
|
+
* only bundled contracts.
|
|
10
|
+
*
|
|
11
|
+
* Principled implementation: The scaffold places production-owned contracts under `docs/contracts`; the portable spelling is used both as a reference root and, split on `/`, as a filesystem path under the production location.
|
|
12
|
+
* Clear and simple design: One constant supplies every production-owned root: local language references, the discovery claim over `work/**`, and the work-local package claims.
|
|
13
|
+
* Prohibited implementation shortcuts: The value is the installed layout, not a fixture path; no fallback to the retired `.agents/skills/contracts/story` location exists, which assertProductionContractLayout refuses instead.
|
|
14
|
+
* Meaningful documentation: The prose states which families live here, the address-to-file mapping and why they are outside the skills tree.
|
|
15
|
+
* Efficient algorithms: A constant string with no computation.
|
|
16
|
+
* Reuse equivalent work: Every consumer reads the same immutable string.
|
|
17
|
+
* Bound retention and release resources: One fixed string for the module lifetime.
|
|
18
|
+
*/
|
|
19
|
+
export declare const PRODUCTION_CONTRACTS: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRODUCTION_CONTRACTS = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Names the tree of a production's own contracts, relative to its directory.
|
|
6
|
+
*
|
|
7
|
+
* The `work` and `language` families a production adopts live here directly,
|
|
8
|
+
* with no `story` level, so `work/discovery/results.md` is the file
|
|
9
|
+
* `docs/contracts/work/discovery/results.md` and is cited by that same
|
|
10
|
+
* family-qualified address. They sit beside the production's other documents
|
|
11
|
+
* rather than in a skills tree, so a workspace's shared `.agents/skills` holds
|
|
12
|
+
* only bundled contracts.
|
|
13
|
+
*
|
|
14
|
+
* Principled implementation: The scaffold places production-owned contracts under `docs/contracts`; the portable spelling is used both as a reference root and, split on `/`, as a filesystem path under the production location.
|
|
15
|
+
* Clear and simple design: One constant supplies every production-owned root: local language references, the discovery claim over `work/**`, and the work-local package claims.
|
|
16
|
+
* Prohibited implementation shortcuts: The value is the installed layout, not a fixture path; no fallback to the retired `.agents/skills/contracts/story` location exists, which assertProductionContractLayout refuses instead.
|
|
17
|
+
* Meaningful documentation: The prose states which families live here, the address-to-file mapping and why they are outside the skills tree.
|
|
18
|
+
* Efficient algorithms: A constant string with no computation.
|
|
19
|
+
* Reuse equivalent work: Every consumer reads the same immutable string.
|
|
20
|
+
* Bound retention and release resources: One fixed string for the module lifetime.
|
|
21
|
+
*/
|
|
22
|
+
exports.PRODUCTION_CONTRACTS = "docs/contracts";
|
|
23
|
+
//# sourceMappingURL=PRODUCTION_CONTRACTS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PRODUCTION_CONTRACTS.js","sourceRoot":"","sources":["../../src/internal/PRODUCTION_CONTRACTS.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;GAiBG;AACU,QAAA,oBAAoB,GAAW,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Names a production's skills tree relative to its own directory.
|
|
3
|
+
*
|
|
4
|
+
* A standalone production holds its bundled contracts here; a workspace
|
|
5
|
+
* production holds them in the tree the configuration's `skills` option points
|
|
6
|
+
* at. Either way the production's own `work` and `language` contracts live in
|
|
7
|
+
* its `docs/contracts`, never in a skills tree; this tree's
|
|
8
|
+
* `contracts/story/{work,language}` is the retired location
|
|
9
|
+
* assertProductionContractLayout refuses.
|
|
10
|
+
*
|
|
11
|
+
* Principled implementation: The scaffold installs `.agents/skills` at a production's root; this spelling is that layout contract, written with portable separators because Evidence reference roots are portable relative paths.
|
|
12
|
+
* Clear and simple design: One constant supplies the default shared tree, the default engineering, development and research reference roots, and the retired location the layout guard probes.
|
|
13
|
+
* Prohibited implementation shortcuts: The value is the installed layout, not a fixture or host path; a workspace overrides the shared tree through `skills`.
|
|
14
|
+
* Meaningful documentation: The prose states which contracts live here in standalone and workspace productions.
|
|
15
|
+
* Efficient algorithms: A constant string with no computation.
|
|
16
|
+
* Reuse equivalent work: Every consumer reads the same immutable string.
|
|
17
|
+
* Bound retention and release resources: One fixed string for the module lifetime.
|
|
18
|
+
*/
|
|
19
|
+
export declare const SKILLS_ROOT: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SKILLS_ROOT = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Names a production's skills tree relative to its own directory.
|
|
6
|
+
*
|
|
7
|
+
* A standalone production holds its bundled contracts here; a workspace
|
|
8
|
+
* production holds them in the tree the configuration's `skills` option points
|
|
9
|
+
* at. Either way the production's own `work` and `language` contracts live in
|
|
10
|
+
* its `docs/contracts`, never in a skills tree; this tree's
|
|
11
|
+
* `contracts/story/{work,language}` is the retired location
|
|
12
|
+
* assertProductionContractLayout refuses.
|
|
13
|
+
*
|
|
14
|
+
* Principled implementation: The scaffold installs `.agents/skills` at a production's root; this spelling is that layout contract, written with portable separators because Evidence reference roots are portable relative paths.
|
|
15
|
+
* Clear and simple design: One constant supplies the default shared tree, the default engineering, development and research reference roots, and the retired location the layout guard probes.
|
|
16
|
+
* Prohibited implementation shortcuts: The value is the installed layout, not a fixture or host path; a workspace overrides the shared tree through `skills`.
|
|
17
|
+
* Meaningful documentation: The prose states which contracts live here in standalone and workspace productions.
|
|
18
|
+
* Efficient algorithms: A constant string with no computation.
|
|
19
|
+
* Reuse equivalent work: Every consumer reads the same immutable string.
|
|
20
|
+
* Bound retention and release resources: One fixed string for the module lifetime.
|
|
21
|
+
*/
|
|
22
|
+
exports.SKILLS_ROOT = ".agents/skills";
|
|
23
|
+
//# sourceMappingURL=SKILLS_ROOT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SKILLS_ROOT.js","sourceRoot":"","sources":["../../src/internal/SKILLS_ROOT.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;GAiBG;AACU,QAAA,WAAW,GAAW,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Names the story contract tree inside a skills tree.
|
|
3
|
+
*
|
|
4
|
+
* Its `shared/` family ships with the scaffold's bundled skills. The `work/`
|
|
5
|
+
* and `language/` families a production adopts live in its `docs/contracts`
|
|
6
|
+
* instead; under a production's own skills tree they mark the retired layout.
|
|
7
|
+
*
|
|
8
|
+
* Principled implementation: The scaffold installs story contracts at `contracts/story` under a skills tree; the portable spelling joins the shared skills tree for shared contracts and the research root, and the production's own skills tree only for the retired-layout guard.
|
|
9
|
+
* Clear and simple design: One constant serves every shared story root and the legacy guard.
|
|
10
|
+
* Prohibited implementation shortcuts: The value is the installed layout, not a fixture path.
|
|
11
|
+
* Meaningful documentation: The prose names the families and which tree owns each.
|
|
12
|
+
* Efficient algorithms: A constant string with no computation.
|
|
13
|
+
* Reuse equivalent work: Every consumer reads the same immutable string.
|
|
14
|
+
* Bound retention and release resources: One fixed string for the module lifetime.
|
|
15
|
+
*/
|
|
16
|
+
export declare const STORY_CONTRACTS: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.STORY_CONTRACTS = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Names the story contract tree inside a skills tree.
|
|
6
|
+
*
|
|
7
|
+
* Its `shared/` family ships with the scaffold's bundled skills. The `work/`
|
|
8
|
+
* and `language/` families a production adopts live in its `docs/contracts`
|
|
9
|
+
* instead; under a production's own skills tree they mark the retired layout.
|
|
10
|
+
*
|
|
11
|
+
* Principled implementation: The scaffold installs story contracts at `contracts/story` under a skills tree; the portable spelling joins the shared skills tree for shared contracts and the research root, and the production's own skills tree only for the retired-layout guard.
|
|
12
|
+
* Clear and simple design: One constant serves every shared story root and the legacy guard.
|
|
13
|
+
* Prohibited implementation shortcuts: The value is the installed layout, not a fixture path.
|
|
14
|
+
* Meaningful documentation: The prose names the families and which tree owns each.
|
|
15
|
+
* Efficient algorithms: A constant string with no computation.
|
|
16
|
+
* Reuse equivalent work: Every consumer reads the same immutable string.
|
|
17
|
+
* Bound retention and release resources: One fixed string for the module lifetime.
|
|
18
|
+
*/
|
|
19
|
+
exports.STORY_CONTRACTS = "contracts/story";
|
|
20
|
+
//# sourceMappingURL=STORY_CONTRACTS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"STORY_CONTRACTS.js","sourceRoot":"","sources":["../../src/internal/STORY_CONTRACTS.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACU,QAAA,eAAe,GAAW,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Refuses a production that still keeps its own contracts in the retired tree.
|
|
3
|
+
*
|
|
4
|
+
* A production's `work` and `language` contracts moved from
|
|
5
|
+
* `.agents/skills/contracts/story/{work,language}` to
|
|
6
|
+
* `docs/contracts/{work,language}`. Their duties are admitted only when their
|
|
7
|
+
* files exist where they now belong, so a production left in the old layout
|
|
8
|
+
* would silently lose every language and work duty instead of failing. Either
|
|
9
|
+
* legacy directory therefore stops configuration, and the error names each
|
|
10
|
+
* one with its new home. Nothing is read from the old location.
|
|
11
|
+
*
|
|
12
|
+
* @param location Absolute production directory; read, not retained.
|
|
13
|
+
* @throws Error naming every legacy directory found and where it moves.
|
|
14
|
+
*
|
|
15
|
+
* @evidence contracts/development/implementation.md#principled-implementation Directory existence under the production location is the exact signal of the retired layout, because the old tree held only production-owned families; `fs.existsSync` follows the installed filesystem, and the message is built from the same layout constants the factories use.
|
|
16
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One guard owns the migration refusal, called by createEvidenceConfig and by the narrative source assertion, so neither the configuration entry nor any contract factory carries legacy knowledge.
|
|
17
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The guard refuses rather than falls back: no reference, probe or root reads the old location, and every legacy family found is reported in one error instead of the first alone.
|
|
18
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Two existence probes and a message linear in the found directories.
|
|
19
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each configuration build observes the filesystem anew; caching would hide a migration made between builds.
|
|
20
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Synchronous probes leave no handle, task or retained state.
|
|
21
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the move, why a stale layout must fail loudly, that nothing is read from the old location, and the parameter and failure.
|
|
22
|
+
*/
|
|
23
|
+
export declare function assertProductionContractLayout(location: string): void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.assertProductionContractLayout = assertProductionContractLayout;
|
|
7
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
8
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
9
|
+
const PRODUCTION_CONTRACTS_1 = require("./PRODUCTION_CONTRACTS");
|
|
10
|
+
const SKILLS_ROOT_1 = require("./SKILLS_ROOT");
|
|
11
|
+
const STORY_CONTRACTS_1 = require("./STORY_CONTRACTS");
|
|
12
|
+
/**
|
|
13
|
+
* Refuses a production that still keeps its own contracts in the retired tree.
|
|
14
|
+
*
|
|
15
|
+
* A production's `work` and `language` contracts moved from
|
|
16
|
+
* `.agents/skills/contracts/story/{work,language}` to
|
|
17
|
+
* `docs/contracts/{work,language}`. Their duties are admitted only when their
|
|
18
|
+
* files exist where they now belong, so a production left in the old layout
|
|
19
|
+
* would silently lose every language and work duty instead of failing. Either
|
|
20
|
+
* legacy directory therefore stops configuration, and the error names each
|
|
21
|
+
* one with its new home. Nothing is read from the old location.
|
|
22
|
+
*
|
|
23
|
+
* @param location Absolute production directory; read, not retained.
|
|
24
|
+
* @throws Error naming every legacy directory found and where it moves.
|
|
25
|
+
*
|
|
26
|
+
* @evidence contracts/development/implementation.md#principled-implementation Directory existence under the production location is the exact signal of the retired layout, because the old tree held only production-owned families; `fs.existsSync` follows the installed filesystem, and the message is built from the same layout constants the factories use.
|
|
27
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One guard owns the migration refusal, called by createEvidenceConfig and by the narrative source assertion, so neither the configuration entry nor any contract factory carries legacy knowledge.
|
|
28
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The guard refuses rather than falls back: no reference, probe or root reads the old location, and every legacy family found is reported in one error instead of the first alone.
|
|
29
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Two existence probes and a message linear in the found directories.
|
|
30
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each configuration build observes the filesystem anew; caching would hide a migration made between builds.
|
|
31
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Synchronous probes leave no handle, task or retained state.
|
|
32
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the move, why a stale layout must fail loudly, that nothing is read from the old location, and the parameter and failure.
|
|
33
|
+
*/
|
|
34
|
+
function assertProductionContractLayout(location) {
|
|
35
|
+
const moves = ["work", "language"]
|
|
36
|
+
.filter((family) => node_fs_1.default.existsSync(node_path_1.default.join(location, ...SKILLS_ROOT_1.SKILLS_ROOT.split("/"), ...STORY_CONTRACTS_1.STORY_CONTRACTS.split("/"), family)))
|
|
37
|
+
.map((family) => `${SKILLS_ROOT_1.SKILLS_ROOT}/${STORY_CONTRACTS_1.STORY_CONTRACTS}/${family} -> ${PRODUCTION_CONTRACTS_1.PRODUCTION_CONTRACTS}/${family}`);
|
|
38
|
+
if (moves.length !== 0)
|
|
39
|
+
throw new Error(`Production-owned contracts moved to ${PRODUCTION_CONTRACTS_1.PRODUCTION_CONTRACTS}; move ${moves.join(", ")} under ${location}.`);
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=assertProductionContractLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assertProductionContractLayout.js","sourceRoot":"","sources":["../../src/internal/assertProductionContractLayout.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,iEAA8D;AAC9D,+CAA4C;AAC5C,uDAAoD;AAEpD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wCAA+C,QAAgB;IAC7D,MAAM,KAAK,GAAc,CAAC,MAAM,EAAE,UAAU,CAAW;SACpD,MAAM,CAAC,CAAC,MAA2B,EAAW,EAAE,CAC/C,iBAAE,CAAC,UAAU,CACX,mBAAI,CAAC,IAAI,CACP,QAAQ,EACR,GAAG,yBAAW,CAAC,KAAK,CAAC,GAAG,CAAC,EACzB,GAAG,iCAAe,CAAC,KAAK,CAAC,GAAG,CAAC,EAC7B,MAAM,CACP,CACF,CACF;SACA,GAAG,CACF,CAAC,MAA2B,EAAU,EAAE,CACtC,GAAG,yBAAW,IAAI,iCAAe,IAAI,MAAM,OAAO,2CAAoB,IAAI,MAAM,EAAE,CACrF,CAAC;IACJ,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,uCAAuC,2CAAoB,UAAU,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,QAAQ,GAAG,CAC3G,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Expresses a directory as an Evidence reference root of one production.
|
|
3
|
+
*
|
|
4
|
+
* Native Evidence resolves a Markdown reference root against the directory of
|
|
5
|
+
* the configuration file, which is the production location, and accepts `..`
|
|
6
|
+
* segments, so a shared tree outside the production is reached by a relative
|
|
7
|
+
* path such as `../../../.agents/skills`. Separators are portable so the same
|
|
8
|
+
* configuration reads alike on every platform.
|
|
9
|
+
*
|
|
10
|
+
* @param location Absolute production directory holding `evidence.config.ts`.
|
|
11
|
+
* @param directory Absolute directory the root must reach.
|
|
12
|
+
* @returns The `/`-separated relative root, or `.` for the production itself.
|
|
13
|
+
*
|
|
14
|
+
* @evidence contracts/development/implementation.md#principled-implementation `path.relative` between two absolute directories gives the path native Evidence resolves back against the configuration directory; replacing `\` with `/` keeps Windows output portable. Directories on different Windows drives have no relative path, and Node then returns the absolute target, which passes through unchanged.
|
|
15
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns the location-to-root rule for the engineering defaults and both story contract owners, instead of repeating the relative-and-normalize steps at each reference.
|
|
16
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No root is special-cased; an empty relative path becomes `.` because an empty root names no directory.
|
|
17
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One relative-path computation and one replacement, linear in the path lengths.
|
|
18
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
19
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
20
|
+
* @evidence contracts/development/common.md#meaningful-documentation States how native Evidence resolves the result, the portable separators, the parameters and the `.` result.
|
|
21
|
+
*/
|
|
22
|
+
export declare function createReferenceRoot(location: string, directory: string): string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createReferenceRoot = createReferenceRoot;
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
+
/**
|
|
9
|
+
* Expresses a directory as an Evidence reference root of one production.
|
|
10
|
+
*
|
|
11
|
+
* Native Evidence resolves a Markdown reference root against the directory of
|
|
12
|
+
* the configuration file, which is the production location, and accepts `..`
|
|
13
|
+
* segments, so a shared tree outside the production is reached by a relative
|
|
14
|
+
* path such as `../../../.agents/skills`. Separators are portable so the same
|
|
15
|
+
* configuration reads alike on every platform.
|
|
16
|
+
*
|
|
17
|
+
* @param location Absolute production directory holding `evidence.config.ts`.
|
|
18
|
+
* @param directory Absolute directory the root must reach.
|
|
19
|
+
* @returns The `/`-separated relative root, or `.` for the production itself.
|
|
20
|
+
*
|
|
21
|
+
* @evidence contracts/development/implementation.md#principled-implementation `path.relative` between two absolute directories gives the path native Evidence resolves back against the configuration directory; replacing `\` with `/` keeps Windows output portable. Directories on different Windows drives have no relative path, and Node then returns the absolute target, which passes through unchanged.
|
|
22
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns the location-to-root rule for the engineering defaults and both story contract owners, instead of repeating the relative-and-normalize steps at each reference.
|
|
23
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No root is special-cased; an empty relative path becomes `.` because an empty root names no directory.
|
|
24
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One relative-path computation and one replacement, linear in the path lengths.
|
|
25
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
26
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
27
|
+
* @evidence contracts/development/common.md#meaningful-documentation States how native Evidence resolves the result, the portable separators, the parameters and the `.` result.
|
|
28
|
+
*/
|
|
29
|
+
function createReferenceRoot(location, directory) {
|
|
30
|
+
const relative = node_path_1.default
|
|
31
|
+
.relative(location, directory)
|
|
32
|
+
.replaceAll("\\", "/");
|
|
33
|
+
return relative === "" ? "." : relative;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=createReferenceRoot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createReferenceRoot.js","sourceRoot":"","sources":["../../src/internal/createReferenceRoot.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAE7B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,6BACE,QAAgB,EAChB,SAAiB;IAEjB,MAAM,QAAQ,GAAW,mBAAI;SAC1B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;SAC7B,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACzB,OAAO,QAAQ,KAAK,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { IContractLocation } from "./IContractLocation";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the absolute shared skills tree holding the bundled contracts.
|
|
4
|
+
*
|
|
5
|
+
* An omitted `skills` is the standalone layout, the production's own
|
|
6
|
+
* `.agents/skills`. A supplied one must be absolute like `location`, because a
|
|
7
|
+
* relative directory would resolve against whichever process reads the
|
|
8
|
+
* configuration rather than against the production.
|
|
9
|
+
*
|
|
10
|
+
* @param contracts The production location and optional shared tree; read, not retained.
|
|
11
|
+
* @returns The absolute shared skills directory.
|
|
12
|
+
* @throws Error when a supplied `skills` is not absolute.
|
|
13
|
+
*
|
|
14
|
+
* @evidence contracts/development/implementation.md#principled-implementation Node's `path.isAbsolute` decides absoluteness for the host platform, and `path.join` builds the default from the scaffold's `.agents/skills` layout under the absolute production location.
|
|
15
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns both the default and the absolute-path rule, so the configuration entry, the narrative assertion and every shared contract lookup agree on the shared tree.
|
|
16
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A relative value is refused rather than resolved against the working directory; no workspace layout is inferred from the filesystem.
|
|
17
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One absoluteness test or one path join, linear in the path length.
|
|
18
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
19
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
20
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the standalone default, why a relative value is refused, and the parameter, result and failure.
|
|
21
|
+
*/
|
|
22
|
+
export declare function resolveSkillsDirectory(contracts: IContractLocation): string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.resolveSkillsDirectory = resolveSkillsDirectory;
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
+
const SKILLS_ROOT_1 = require("./SKILLS_ROOT");
|
|
9
|
+
/**
|
|
10
|
+
* Resolves the absolute shared skills tree holding the bundled contracts.
|
|
11
|
+
*
|
|
12
|
+
* An omitted `skills` is the standalone layout, the production's own
|
|
13
|
+
* `.agents/skills`. A supplied one must be absolute like `location`, because a
|
|
14
|
+
* relative directory would resolve against whichever process reads the
|
|
15
|
+
* configuration rather than against the production.
|
|
16
|
+
*
|
|
17
|
+
* @param contracts The production location and optional shared tree; read, not retained.
|
|
18
|
+
* @returns The absolute shared skills directory.
|
|
19
|
+
* @throws Error when a supplied `skills` is not absolute.
|
|
20
|
+
*
|
|
21
|
+
* @evidence contracts/development/implementation.md#principled-implementation Node's `path.isAbsolute` decides absoluteness for the host platform, and `path.join` builds the default from the scaffold's `.agents/skills` layout under the absolute production location.
|
|
22
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns both the default and the absolute-path rule, so the configuration entry, the narrative assertion and every shared contract lookup agree on the shared tree.
|
|
23
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A relative value is refused rather than resolved against the working directory; no workspace layout is inferred from the filesystem.
|
|
24
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One absoluteness test or one path join, linear in the path length.
|
|
25
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
26
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
27
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the standalone default, why a relative value is refused, and the parameter, result and failure.
|
|
28
|
+
*/
|
|
29
|
+
function resolveSkillsDirectory(contracts) {
|
|
30
|
+
if (contracts.skills === undefined)
|
|
31
|
+
return node_path_1.default.join(contracts.location, ...SKILLS_ROOT_1.SKILLS_ROOT.split("/"));
|
|
32
|
+
if (!node_path_1.default.isAbsolute(contracts.skills))
|
|
33
|
+
throw new Error("Evidence skills must be an absolute directory.");
|
|
34
|
+
return contracts.skills;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=resolveSkillsDirectory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveSkillsDirectory.js","sourceRoot":"","sources":["../../src/internal/resolveSkillsDirectory.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAG7B,+CAA4C;AAE5C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,gCAAuC,SAA4B;IACjE,IAAI,SAAS,CAAC,MAAM,KAAK,SAAS;QAChC,OAAO,mBAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,GAAG,yBAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAClE,IAAI,CAAC,mBAAI,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC;QACpC,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IACpE,OAAO,SAAS,CAAC,MAAM,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NarrativeLayer } from "./NarrativeLayer";
|
|
2
|
+
/**
|
|
3
|
+
* Names every authored layer: the canon the narrative layers inherit and the narrative layers themselves.
|
|
4
|
+
*
|
|
5
|
+
* Settings is the long route's canon and brief the short route's; each is a
|
|
6
|
+
* source layer with no parent of its own.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/design.md#principled-representation The union adds the two canon layers, long-route settings and short-route brief, to the three narrative layers, so dependency keys identify both the documentary parent and its adaptations.
|
|
9
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Extending NarrativeLayer with the canon literals lets common dependency keys include canon without a separate parallel key type.
|
|
10
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Only the five supported layer literals are admitted; this alias supplies no runtime branch or ownership inference.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment distinguishes the two canon layers, their routes and the inherited narrative layers.
|
|
12
|
+
*/
|
|
13
|
+
export type AuthoredLayer = "settings" | "brief" | NarrativeLayer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthoredLayer.js","sourceRoot":"","sources":["../../src/narrative/AuthoredLayer.ts"],"names":[],"mappings":""}
|