@automovie/evidence 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -9
- package/lib/IAutoMovieDevelopmentProps.d.ts +7 -6
- package/lib/IAutoMovieEvidenceConfigProps.d.ts +9 -8
- package/lib/IAutoMovieNarrativeProps.d.ts +0 -3
- package/lib/IAutoMovieNoNarrativeProps.d.ts +16 -0
- package/lib/{narrative/IProductionLayerStages.js → IAutoMovieNoNarrativeProps.js} +1 -1
- package/lib/IAutoMovieNoNarrativeProps.js.map +1 -0
- package/lib/createDevelopmentContractClaims.d.ts +21 -11
- package/lib/createDevelopmentContractClaims.js +30 -13
- package/lib/createDevelopmentContractClaims.js.map +1 -1
- package/lib/createEvidenceConfig.d.ts +3 -3
- package/lib/createEvidenceConfig.js +19 -12
- package/lib/createEvidenceConfig.js.map +1 -1
- package/lib/index.d.ts +7 -7
- package/lib/index.js +1 -7
- package/lib/index.js.map +1 -1
- package/lib/internal/index.d.ts +12 -0
- package/lib/internal/index.js +31 -0
- package/lib/internal/index.js.map +1 -0
- package/lib/internal/resolveSkillsDirectory.d.ts +8 -9
- package/lib/internal/resolveSkillsDirectory.js +9 -12
- package/lib/internal/resolveSkillsDirectory.js.map +1 -1
- package/lib/narrative/IPackageChecklistClaimProps.d.ts +5 -10
- package/lib/narrative/IPackageContractProps.d.ts +0 -8
- package/lib/narrative/IPackagePopulationContractProps.d.ts +1 -9
- package/lib/narrative/IProductionConfigProps.d.ts +1 -10
- package/lib/narrative/createBriefFiles.d.ts +2 -2
- package/lib/narrative/createBriefFiles.js +2 -2
- package/lib/narrative/createNarrativeUnitFiles.d.ts +19 -12
- package/lib/narrative/createNarrativeUnitFiles.js +22 -17
- package/lib/narrative/createNarrativeUnitFiles.js.map +1 -1
- package/lib/narrative/createPackageChecklistClaim.js +5 -10
- package/lib/narrative/createPackageChecklistClaim.js.map +1 -1
- package/lib/narrative/createPackageContract.d.ts +3 -3
- package/lib/narrative/createPackageContract.js +3 -8
- package/lib/narrative/createPackageContract.js.map +1 -1
- package/lib/narrative/createPackagePopulationContract.d.ts +7 -7
- package/lib/narrative/createPackagePopulationContract.js +10 -18
- package/lib/narrative/createPackagePopulationContract.js.map +1 -1
- package/lib/narrative/index.d.ts +11 -14
- package/lib/narrative/index.js +11 -14
- package/lib/narrative/index.js.map +1 -1
- package/lib/narrative/internal/REALIZED_LAYERS.d.ts +1 -1
- package/lib/narrative/internal/REALIZED_LAYERS.js +1 -1
- package/lib/narrative/internal/claims/createDiscoveryClaim.d.ts +11 -3
- package/lib/narrative/internal/claims/createDiscoveryClaim.js +17 -5
- package/lib/narrative/internal/claims/createDiscoveryClaim.js.map +1 -1
- package/lib/narrative/internal/claims/createExpressionObligationClaims.d.ts +9 -8
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js +15 -22
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.d.ts +6 -4
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js +7 -5
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js.map +1 -1
- package/lib/narrative/internal/claims/createLayerClaims.d.ts +9 -9
- package/lib/narrative/internal/claims/createLayerClaims.js +45 -65
- package/lib/narrative/internal/claims/createLayerClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createOutlineClaims.js +8 -8
- package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +3 -3
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js +5 -5
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createReviewClaims.d.ts +8 -8
- package/lib/narrative/internal/claims/createReviewClaims.js +64 -77
- package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +1 -1
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js +6 -7
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js.map +1 -1
- 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.js +5 -2
- package/lib/narrative/internal/collectProductionClaims.js.map +1 -1
- package/lib/narrative/internal/index.d.ts +16 -0
- package/lib/narrative/internal/index.js +33 -0
- package/lib/narrative/internal/index.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/references/createCoverageReference.d.ts +1 -2
- package/lib/narrative/internal/references/createCoverageReference.js +2 -2
- package/lib/narrative/internal/references/createCoverageReference.js.map +1 -1
- package/lib/narrative/internal/references/createDiscoveryReferences.d.ts +2 -2
- package/lib/narrative/internal/references/createDiscoveryReferences.js +2 -2
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.d.ts +7 -6
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +7 -7
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js.map +1 -1
- package/lib/narrative/internal/references/createLineageReference.d.ts +7 -8
- package/lib/narrative/internal/references/createLineageReference.js +8 -8
- package/lib/narrative/internal/references/createLineageReference.js.map +1 -1
- package/lib/narrative/internal/references/createPrincipleReferences.d.ts +9 -8
- package/lib/narrative/internal/references/createPrincipleReferences.js +12 -12
- package/lib/narrative/internal/references/createPrincipleReferences.js.map +1 -1
- package/lib/narrative/internal/references/createSettingReferences.d.ts +3 -4
- package/lib/narrative/internal/references/createSettingReferences.js +6 -6
- package/lib/narrative/internal/references/createSettingReferences.js.map +1 -1
- 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 +5 -5
- package/lib/narrative/internal/references/layerFiles.js +5 -5
- package/lib/narrative/internal/topology/createTopologyFiles.d.ts +1 -1
- package/lib/narrative/internal/topology/createTopologyFiles.js +1 -1
- 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/BODY_ROOT.d.ts +15 -0
- package/lib/narrative/internal/utilities/BODY_ROOT.js +20 -0
- package/lib/narrative/internal/utilities/BODY_ROOT.js.map +1 -0
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.d.ts +6 -6
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js +6 -6
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js +6 -19
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js.map +1 -1
- package/lib/narrative/internal/utilities/createUnitFiles.d.ts +4 -6
- package/lib/narrative/internal/utilities/createUnitFiles.js +5 -7
- package/lib/narrative/internal/utilities/createUnitFiles.js.map +1 -1
- 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/referenceLocation.d.ts +6 -9
- package/lib/narrative/internal/utilities/referenceLocation.js +9 -14
- package/lib/narrative/internal/utilities/referenceLocation.js.map +1 -1
- package/package.json +8 -4
- package/src/IAutoMovieDevelopmentProps.ts +7 -6
- package/src/IAutoMovieEvidenceConfigProps.ts +9 -8
- package/src/IAutoMovieNarrativeProps.ts +0 -4
- package/src/IAutoMovieNoNarrativeProps.ts +18 -0
- package/src/createDevelopmentContractClaims.ts +38 -14
- package/src/createEvidenceConfig.ts +23 -13
- package/src/index.ts +8 -7
- package/src/internal/index.ts +14 -0
- package/src/internal/resolveSkillsDirectory.ts +9 -12
- package/src/narrative/IPackageChecklistClaimProps.ts +5 -11
- package/src/narrative/IPackageContractProps.ts +0 -9
- package/src/narrative/IPackagePopulationContractProps.ts +1 -10
- package/src/narrative/IProductionConfigProps.ts +1 -11
- package/src/narrative/createBriefFiles.ts +2 -2
- package/src/narrative/createNarrativeUnitFiles.ts +28 -20
- package/src/narrative/createPackageChecklistClaim.ts +5 -10
- package/src/narrative/createPackageContract.ts +3 -15
- package/src/narrative/createPackagePopulationContract.ts +11 -26
- package/src/narrative/index.ts +11 -14
- package/src/narrative/internal/REALIZED_LAYERS.ts +1 -1
- package/src/narrative/internal/claims/createDiscoveryClaim.ts +20 -6
- package/src/narrative/internal/claims/createExpressionObligationClaims.ts +15 -24
- package/src/narrative/internal/claims/createInstructionCoverageClaim.ts +8 -6
- package/src/narrative/internal/claims/createLayerClaims.ts +48 -78
- package/src/narrative/internal/claims/createOutlineClaims.ts +8 -8
- package/src/narrative/internal/claims/createPopulationObligationClaims.ts +5 -5
- package/src/narrative/internal/claims/createReviewClaims.ts +69 -91
- package/src/narrative/internal/claims/createSettingCoverageClaim.ts +5 -7
- package/src/narrative/internal/claims/index.ts +8 -0
- package/src/narrative/internal/collectProductionClaims.ts +7 -5
- package/src/narrative/internal/index.ts +16 -0
- package/src/narrative/internal/metadataRewrite/index.ts +43 -0
- package/src/narrative/internal/references/createCoverageReference.ts +1 -3
- package/src/narrative/internal/references/createDiscoveryReferences.ts +2 -2
- package/src/narrative/internal/references/createLanguagePrincipleReferences.ts +8 -9
- package/src/narrative/internal/references/createLineageReference.ts +7 -9
- package/src/narrative/internal/references/createPrincipleReferences.ts +13 -14
- package/src/narrative/internal/references/createSettingReferences.ts +5 -8
- package/src/narrative/internal/references/index.ts +11 -0
- package/src/narrative/internal/references/layerFiles.ts +5 -5
- package/src/narrative/internal/topology/createTopologyFiles.ts +1 -1
- package/src/narrative/internal/topology/index.ts +1 -0
- package/src/narrative/internal/utilities/BODY_ROOT.ts +17 -0
- package/src/narrative/internal/utilities/PACKAGE_DOCS_ROOT.ts +6 -6
- package/src/narrative/internal/utilities/assertProductionEvidenceSources.ts +6 -25
- package/src/narrative/internal/utilities/createUnitFiles.ts +5 -7
- package/src/narrative/internal/utilities/index.ts +8 -0
- package/src/narrative/internal/utilities/referenceLocation.ts +8 -18
- package/lib/narrative/AuthoredPass.d.ts +0 -16
- package/lib/narrative/AuthoredPass.js +0 -3
- package/lib/narrative/AuthoredPass.js.map +0 -1
- package/lib/narrative/IProductionLayerStages.d.ts +0 -15
- package/lib/narrative/IProductionLayerStages.js.map +0 -1
- package/lib/narrative/internal/hasNaturalness.d.ts +0 -14
- package/lib/narrative/internal/hasNaturalness.js +0 -19
- package/lib/narrative/internal/hasNaturalness.js.map +0 -1
- package/lib/narrative/internal/utilities/passRoot.d.ts +0 -16
- package/lib/narrative/internal/utilities/passRoot.js +0 -22
- package/lib/narrative/internal/utilities/passRoot.js.map +0 -1
- package/lib/narrative/stripNaturalnessComments.d.ts +0 -12
- package/lib/narrative/stripNaturalnessComments.js +0 -34
- package/lib/narrative/stripNaturalnessComments.js.map +0 -1
- package/src/narrative/AuthoredPass.ts +0 -16
- package/src/narrative/IProductionLayerStages.ts +0 -16
- package/src/narrative/internal/hasNaturalness.ts +0 -17
- package/src/narrative/internal/utilities/passRoot.ts +0 -20
- package/src/narrative/stripNaturalnessComments.ts +0 -31
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export * from "./ACKNOWLEDGEMENT";
|
|
2
|
+
export * from "./EvidenceDeclarationKind";
|
|
3
|
+
export * from "./HEADING_ACKNOWLEDGEMENT";
|
|
4
|
+
export * from "./HEADING_REVIEW";
|
|
5
|
+
export * from "./IEvidenceHeading";
|
|
6
|
+
export * from "./IEvidenceSection";
|
|
7
|
+
export * from "./IMetadataFragment";
|
|
8
|
+
export * from "./IProjectionSegment";
|
|
9
|
+
export * from "./IProtectedProjection";
|
|
10
|
+
export * from "./REVIEW";
|
|
11
|
+
export * from "./SUSPICIOUS";
|
|
12
|
+
export * from "./UTF8";
|
|
13
|
+
export * from "./between";
|
|
14
|
+
export * from "./continuation";
|
|
15
|
+
export * from "./declarationKind";
|
|
16
|
+
export * from "./decode";
|
|
17
|
+
export * from "./directory";
|
|
18
|
+
export * from "./errorMessage";
|
|
19
|
+
export * from "./evidenceHeading";
|
|
20
|
+
export * from "./evidenceSections";
|
|
21
|
+
export * from "./findClose";
|
|
22
|
+
export * from "./firstDifference";
|
|
23
|
+
export * from "./flatFingerprintStart";
|
|
24
|
+
export * from "./invalidUtf8Offset";
|
|
25
|
+
export * from "./isDeclaration";
|
|
26
|
+
export * from "./isNodeError";
|
|
27
|
+
export * from "./lineEnding";
|
|
28
|
+
export * from "./locate";
|
|
29
|
+
export * from "./markdownFiles";
|
|
30
|
+
export * from "./metadataOwnership";
|
|
31
|
+
export * from "./normalizeFile";
|
|
32
|
+
export * from "./occurrenceOffsets";
|
|
33
|
+
export * from "./occurrences";
|
|
34
|
+
export * from "./originalOffset";
|
|
35
|
+
export * from "./project";
|
|
36
|
+
export * from "./protectedFileKind";
|
|
37
|
+
export * from "./replacementSafety";
|
|
38
|
+
export * from "./sameMetadata";
|
|
39
|
+
export * from "./selectFiles";
|
|
40
|
+
export * from "./singleLineDeclaration";
|
|
41
|
+
export * from "./textLocation";
|
|
42
|
+
export * from "./validateRenderedSample";
|
|
43
|
+
export * from "./withoutEnding";
|
|
@@ -0,0 +1,60 @@
|
|
|
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("./ACKNOWLEDGEMENT"), exports);
|
|
18
|
+
__exportStar(require("./EvidenceDeclarationKind"), exports);
|
|
19
|
+
__exportStar(require("./HEADING_ACKNOWLEDGEMENT"), exports);
|
|
20
|
+
__exportStar(require("./HEADING_REVIEW"), exports);
|
|
21
|
+
__exportStar(require("./IEvidenceHeading"), exports);
|
|
22
|
+
__exportStar(require("./IEvidenceSection"), exports);
|
|
23
|
+
__exportStar(require("./IMetadataFragment"), exports);
|
|
24
|
+
__exportStar(require("./IProjectionSegment"), exports);
|
|
25
|
+
__exportStar(require("./IProtectedProjection"), exports);
|
|
26
|
+
__exportStar(require("./REVIEW"), exports);
|
|
27
|
+
__exportStar(require("./SUSPICIOUS"), exports);
|
|
28
|
+
__exportStar(require("./UTF8"), exports);
|
|
29
|
+
__exportStar(require("./between"), exports);
|
|
30
|
+
__exportStar(require("./continuation"), exports);
|
|
31
|
+
__exportStar(require("./declarationKind"), exports);
|
|
32
|
+
__exportStar(require("./decode"), exports);
|
|
33
|
+
__exportStar(require("./directory"), exports);
|
|
34
|
+
__exportStar(require("./errorMessage"), exports);
|
|
35
|
+
__exportStar(require("./evidenceHeading"), exports);
|
|
36
|
+
__exportStar(require("./evidenceSections"), exports);
|
|
37
|
+
__exportStar(require("./findClose"), exports);
|
|
38
|
+
__exportStar(require("./firstDifference"), exports);
|
|
39
|
+
__exportStar(require("./flatFingerprintStart"), exports);
|
|
40
|
+
__exportStar(require("./invalidUtf8Offset"), exports);
|
|
41
|
+
__exportStar(require("./isDeclaration"), exports);
|
|
42
|
+
__exportStar(require("./isNodeError"), exports);
|
|
43
|
+
__exportStar(require("./lineEnding"), exports);
|
|
44
|
+
__exportStar(require("./locate"), exports);
|
|
45
|
+
__exportStar(require("./markdownFiles"), exports);
|
|
46
|
+
__exportStar(require("./metadataOwnership"), exports);
|
|
47
|
+
__exportStar(require("./normalizeFile"), exports);
|
|
48
|
+
__exportStar(require("./occurrenceOffsets"), exports);
|
|
49
|
+
__exportStar(require("./occurrences"), exports);
|
|
50
|
+
__exportStar(require("./originalOffset"), exports);
|
|
51
|
+
__exportStar(require("./project"), exports);
|
|
52
|
+
__exportStar(require("./protectedFileKind"), exports);
|
|
53
|
+
__exportStar(require("./replacementSafety"), exports);
|
|
54
|
+
__exportStar(require("./sameMetadata"), exports);
|
|
55
|
+
__exportStar(require("./selectFiles"), exports);
|
|
56
|
+
__exportStar(require("./singleLineDeclaration"), exports);
|
|
57
|
+
__exportStar(require("./textLocation"), exports);
|
|
58
|
+
__exportStar(require("./validateRenderedSample"), exports);
|
|
59
|
+
__exportStar(require("./withoutEnding"), exports);
|
|
60
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,4DAA0C;AAC1C,4DAA0C;AAC1C,mDAAiC;AACjC,qDAAmC;AACnC,qDAAmC;AACnC,sDAAoC;AACpC,uDAAqC;AACrC,yDAAuC;AACvC,2CAAyB;AACzB,+CAA6B;AAC7B,yCAAuB;AACvB,4CAA0B;AAC1B,iDAA+B;AAC/B,oDAAkC;AAClC,2CAAyB;AACzB,8CAA4B;AAC5B,iDAA+B;AAC/B,oDAAkC;AAClC,qDAAmC;AACnC,8CAA4B;AAC5B,oDAAkC;AAClC,yDAAuC;AACvC,sDAAoC;AACpC,kDAAgC;AAChC,gDAA8B;AAC9B,+CAA6B;AAC7B,2CAAyB;AACzB,kDAAgC;AAChC,sDAAoC;AACpC,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,mDAAiC;AACjC,4CAA0B;AAC1B,sDAAoC;AACpC,sDAAoC;AACpC,iDAA+B;AAC/B,gDAA8B;AAC9B,0DAAwC;AACxC,iDAA+B;AAC/B,2DAAyC;AACzC,kDAAgC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { IEvidenceReference } from "@wrtnlabs/evidence";
|
|
2
|
-
import type { AuthoredPass } from "../../AuthoredPass";
|
|
3
2
|
/**
|
|
4
3
|
* Creates a reference to the treatment units a partitioned layer realizes.
|
|
5
4
|
*
|
|
@@ -26,4 +25,4 @@ import type { AuthoredPass } from "../../AuthoredPass";
|
|
|
26
25
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work Address formation is shared with lineage references; H2 selectors retain the provided array while file selectors allocate qualified addresses, and no cross-call cache claims mutable selector equivalence.
|
|
27
26
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned reference is caller-owned and may retain the input selector array; file-qualified strings scale with selector text, with no open handles or persistent registry.
|
|
28
27
|
*/
|
|
29
|
-
export declare function createCoverageReference(files: string[], symbol: "file" | "h2"
|
|
28
|
+
export declare function createCoverageReference(files: string[], symbol: "file" | "h2"): IEvidenceReference;
|
|
@@ -28,10 +28,10 @@ const referenceLocation_1 = require("../utilities/referenceLocation");
|
|
|
28
28
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work Address formation is shared with lineage references; H2 selectors retain the provided array while file selectors allocate qualified addresses, and no cross-call cache claims mutable selector equivalence.
|
|
29
29
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned reference is caller-owned and may retain the input selector array; file-qualified strings scale with selector text, with no open handles or persistent registry.
|
|
30
30
|
*/
|
|
31
|
-
function createCoverageReference(files, symbol
|
|
31
|
+
function createCoverageReference(files, symbol) {
|
|
32
32
|
return {
|
|
33
33
|
type: "markdown",
|
|
34
|
-
...(0, referenceLocation_1.referenceLocation)(files,
|
|
34
|
+
...(0, referenceLocation_1.referenceLocation)(files, symbol),
|
|
35
35
|
symbol,
|
|
36
36
|
noEvidenceExclude: true,
|
|
37
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCoverageReference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createCoverageReference.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"createCoverageReference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createCoverageReference.ts"],"names":[],"mappings":";;;AAEA,sEAAmE;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,iCACE,KAAe,EACf,MAAqB;IAErB,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,GAAG,IAAA,qCAAiB,EAAC,KAAK,EAAE,MAAM,CAAC;QACnC,MAAM;QACN,iBAAiB,EAAE,IAAI;KACxB,CAAC;AACJ,CAAC"}
|
|
@@ -4,8 +4,8 @@ import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
|
4
4
|
/**
|
|
5
5
|
* Creates the open-world discovery duties one layer's population covers.
|
|
6
6
|
*
|
|
7
|
-
* Canon, settings or a short's brief, searches its own directives
|
|
8
|
-
* planned narrative to find what those layers would otherwise have to invent.
|
|
7
|
+
* Canon, settings or a short's brief, searches its own directives and subject,
|
|
8
|
+
* and backcasts the planned narrative to find what those layers would otherwise have to invent.
|
|
9
9
|
* That backcast is how settings anticipates the cross-layer narrative contract,
|
|
10
10
|
* so `discovery/narratives.md` is not selected here: it is the duty each
|
|
11
11
|
* narrative layer answers when it rechecks that contract against what it
|
|
@@ -7,8 +7,8 @@ const createSharedReference_1 = require("./createSharedReference");
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates the open-world discovery duties one layer's population covers.
|
|
9
9
|
*
|
|
10
|
-
* Canon, settings or a short's brief, searches its own directives
|
|
11
|
-
* planned narrative to find what those layers would otherwise have to invent.
|
|
10
|
+
* Canon, settings or a short's brief, searches its own directives and subject,
|
|
11
|
+
* and backcasts the planned narrative to find what those layers would otherwise have to invent.
|
|
12
12
|
* That backcast is how settings anticipates the cross-layer narrative contract,
|
|
13
13
|
* so `discovery/narratives.md` is not selected here: it is the duty each
|
|
14
14
|
* narrative layer answers when it rechecks that contract against what it
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import type { IEvidenceReference } from "@wrtnlabs/evidence";
|
|
2
2
|
import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
3
3
|
/**
|
|
4
|
-
* Selects the installed language's per-unit questions for one
|
|
4
|
+
* Selects the installed language's per-unit questions for one family.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* A language module's principles apply to every construction; its
|
|
7
|
+
* `naturalness/` questions apply to scripts construction, the one layer that
|
|
8
|
+
* selects the expression family.
|
|
8
9
|
*
|
|
9
|
-
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific candidate files are selected from the installed language principles or
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific candidate files are selected from the installed language principles or expression family, with every present file forming a per-unit H2 checklist and exclusions forbidden.
|
|
10
11
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure Family selection is localized here while local-file admission and contract-relative addresses belong to createLocalContractReference.
|
|
11
12
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Missing optional language files are omitted according to the sparse installed module; no default language or synthetic question is substituted.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-unit ownership,
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-unit ownership, family selection and which construction answers the expression family.
|
|
13
14
|
* @evidence contracts/development/implementation.md#efficient-algorithms At most four candidate files each require one synchronous existence probe; mapping/filtering and allocated references have a fixed family bound with path-length-dependent string work.
|
|
14
15
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work layerFiles and the local-reference builder centralize equivalent scope/address rules; installation state is observed for each build, not cached across edits.
|
|
15
16
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the bounded returned references remain with the claim owner; intermediate optional arrays and paths expire after the call with no open handles or tasks.
|
|
@@ -17,5 +18,5 @@ import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
|
17
18
|
export declare function createLanguagePrincipleReferences(props: {
|
|
18
19
|
location: string;
|
|
19
20
|
layer: AuthoredLayer;
|
|
20
|
-
|
|
21
|
+
family: "principles" | "naturalness";
|
|
21
22
|
}): IEvidenceReference[];
|
|
@@ -4,26 +4,26 @@ exports.createLanguagePrincipleReferences = createLanguagePrincipleReferences;
|
|
|
4
4
|
const createLocalContractReference_1 = require("./createLocalContractReference");
|
|
5
5
|
const layerFiles_1 = require("./layerFiles");
|
|
6
6
|
/**
|
|
7
|
-
* Selects the installed language's per-unit questions for one
|
|
7
|
+
* Selects the installed language's per-unit questions for one family.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* A language module's principles apply to every construction; its
|
|
10
|
+
* `naturalness/` questions apply to scripts construction, the one layer that
|
|
11
|
+
* selects the expression family.
|
|
11
12
|
*
|
|
12
|
-
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific candidate files are selected from the installed language principles or
|
|
13
|
+
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific candidate files are selected from the installed language principles or expression family, with every present file forming a per-unit H2 checklist and exclusions forbidden.
|
|
13
14
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure Family selection is localized here while local-file admission and contract-relative addresses belong to createLocalContractReference.
|
|
14
15
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Missing optional language files are omitted according to the sparse installed module; no default language or synthetic question is substituted.
|
|
15
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-unit ownership,
|
|
16
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-unit ownership, family selection and which construction answers the expression family.
|
|
16
17
|
* @evidence contracts/development/implementation.md#efficient-algorithms At most four candidate files each require one synchronous existence probe; mapping/filtering and allocated references have a fixed family bound with path-length-dependent string work.
|
|
17
18
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work layerFiles and the local-reference builder centralize equivalent scope/address rules; installation state is observed for each build, not cached across edits.
|
|
18
19
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the bounded returned references remain with the claim owner; intermediate optional arrays and paths expire after the call with no open handles or tasks.
|
|
19
20
|
*/
|
|
20
21
|
function createLanguagePrincipleReferences(props) {
|
|
21
|
-
const family = props.gate === "naturalness" ? "naturalness" : "principles";
|
|
22
22
|
return (0, layerFiles_1.layerFiles)(props.layer)
|
|
23
23
|
.map((file) => (0, createLocalContractReference_1.createLocalContractReference)({
|
|
24
24
|
location: props.location,
|
|
25
25
|
scope: "language",
|
|
26
|
-
file: `${family}/${file}`,
|
|
26
|
+
file: `${props.family}/${file}`,
|
|
27
27
|
checklist: true,
|
|
28
28
|
exclusion: false,
|
|
29
29
|
}))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLanguagePrincipleReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createLanguagePrincipleReferences.ts"],"names":[],"mappings":";;;AAMA,iFAA8E;AAC9E,6CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"createLanguagePrincipleReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createLanguagePrincipleReferences.ts"],"names":[],"mappings":";;;AAMA,iFAA8E;AAC9E,6CAA0C;AAE1C;;;;;;;;;;;;;;GAcG;AACH,2CAAkD,KAIjD;IACC,OAAO,IAAA,uBAAU,EAAC,KAAK,CAAC,KAAK,CAAC;SAC3B,GAAG,CAAC,CAAC,IAAY,EAA0C,EAAE,CAC5D,IAAA,2DAA4B,EAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,GAAG,KAAK,CAAC,MAAM,IAAI,IAAI,EAAE;QAC/B,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,KAAK;KACjB,CAAC,CACH;SACA,MAAM,CACL,CACE,SAAiD,EACR,EAAE,CAAC,SAAS,KAAK,SAAS,CACtE,CAAC;AACN,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import type { IEvidenceReference } from "@wrtnlabs/evidence";
|
|
2
|
-
import type { AuthoredPass } from "../../AuthoredPass";
|
|
3
2
|
/**
|
|
4
|
-
* Creates a reference to one parent story unit
|
|
3
|
+
* Creates a reference to one parent story unit.
|
|
5
4
|
*
|
|
6
|
-
* Each child
|
|
7
|
-
* exclude. This binds screenplay
|
|
8
|
-
*
|
|
5
|
+
* Each child host cites one parent, each parent has one child, and neither may
|
|
6
|
+
* exclude. This binds each long screenplay scene file to the script scene H2
|
|
7
|
+
* it realizes, and each review H2 to the authored H2 it read.
|
|
9
8
|
* Use {@link createCoverageReference} for differently partitioned layers.
|
|
10
9
|
*
|
|
11
10
|
* `review` additionally demands a current review of the cited unit. The
|
|
@@ -13,11 +12,11 @@ import type { AuthoredPass } from "../../AuthoredPass";
|
|
|
13
12
|
* unit expires the review, and the graph names the one unit to read again.
|
|
14
13
|
*
|
|
15
14
|
* @evidence contracts/development/implementation.md#principled-implementation UniqueEvidence, singleEvidencePerSymbol and noEvidenceExclude together form a one-to-one non-excludable relation; optional requireReview binds a reviewer to the exact cited unit version through native review semantics.
|
|
16
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The strict-lineage helper stays separate from many-to-many coverage and delegates body/
|
|
15
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The strict-lineage helper stays separate from many-to-many coverage and delegates body/global address rules to referenceLocation.
|
|
17
16
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Review is an explicit supported relation variant rather than a bypass for stale text, and no expected parent is inferred from a consumer label.
|
|
18
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states one-parent/one-child ownership,
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states one-parent/one-child ownership, its screenplay and review uses and invalidation of a review when its cited unit changes.
|
|
19
18
|
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed flag assembly is constant-sized; address qualification costs O(n) selector text for file hosts and retains the original selector array for H2 hosts.
|
|
20
19
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work The same address builder serves lineage and coverage; references are freshly built and optional review metadata applies only to this requested relation, with no cross-analysis cache.
|
|
21
20
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned object and any qualified selector strings belong to the caller; H2 mode can retain the supplied array, and no handle, task or module-level collection is owned.
|
|
22
21
|
*/
|
|
23
|
-
export declare function createLineageReference(files: string[], symbol: "file" | "h2",
|
|
22
|
+
export declare function createLineageReference(files: string[], symbol: "file" | "h2", review?: boolean): IEvidenceReference;
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createLineageReference = createLineageReference;
|
|
4
4
|
const referenceLocation_1 = require("../utilities/referenceLocation");
|
|
5
5
|
/**
|
|
6
|
-
* Creates a reference to one parent story unit
|
|
6
|
+
* Creates a reference to one parent story unit.
|
|
7
7
|
*
|
|
8
|
-
* Each child
|
|
9
|
-
* exclude. This binds screenplay
|
|
10
|
-
*
|
|
8
|
+
* Each child host cites one parent, each parent has one child, and neither may
|
|
9
|
+
* exclude. This binds each long screenplay scene file to the script scene H2
|
|
10
|
+
* it realizes, and each review H2 to the authored H2 it read.
|
|
11
11
|
* Use {@link createCoverageReference} for differently partitioned layers.
|
|
12
12
|
*
|
|
13
13
|
* `review` additionally demands a current review of the cited unit. The
|
|
@@ -15,17 +15,17 @@ const referenceLocation_1 = require("../utilities/referenceLocation");
|
|
|
15
15
|
* unit expires the review, and the graph names the one unit to read again.
|
|
16
16
|
*
|
|
17
17
|
* @evidence contracts/development/implementation.md#principled-implementation UniqueEvidence, singleEvidencePerSymbol and noEvidenceExclude together form a one-to-one non-excludable relation; optional requireReview binds a reviewer to the exact cited unit version through native review semantics.
|
|
18
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The strict-lineage helper stays separate from many-to-many coverage and delegates body/
|
|
18
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The strict-lineage helper stays separate from many-to-many coverage and delegates body/global address rules to referenceLocation.
|
|
19
19
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Review is an explicit supported relation variant rather than a bypass for stale text, and no expected parent is inferred from a consumer label.
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states one-parent/one-child ownership,
|
|
20
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states one-parent/one-child ownership, its screenplay and review uses and invalidation of a review when its cited unit changes.
|
|
21
21
|
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed flag assembly is constant-sized; address qualification costs O(n) selector text for file hosts and retains the original selector array for H2 hosts.
|
|
22
22
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work The same address builder serves lineage and coverage; references are freshly built and optional review metadata applies only to this requested relation, with no cross-analysis cache.
|
|
23
23
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned object and any qualified selector strings belong to the caller; H2 mode can retain the supplied array, and no handle, task or module-level collection is owned.
|
|
24
24
|
*/
|
|
25
|
-
function createLineageReference(files, symbol,
|
|
25
|
+
function createLineageReference(files, symbol, review = false) {
|
|
26
26
|
return {
|
|
27
27
|
type: "markdown",
|
|
28
|
-
...(0, referenceLocation_1.referenceLocation)(files,
|
|
28
|
+
...(0, referenceLocation_1.referenceLocation)(files, symbol),
|
|
29
29
|
symbol,
|
|
30
30
|
noEvidenceExclude: true,
|
|
31
31
|
uniqueEvidence: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLineageReference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createLineageReference.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"createLineageReference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createLineageReference.ts"],"names":[],"mappings":";;;AAEA,sEAAmE;AAEnE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,gCACE,KAAe,EACf,MAAqB,EACrB,MAAM,GAAY,KAAK;IAEvB,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,GAAG,IAAA,qCAAiB,EAAC,KAAK,EAAE,MAAM,CAAC;QACnC,MAAM;QACN,iBAAiB,EAAE,IAAI;QACvB,cAAc,EAAE,IAAI;QACpB,uBAAuB,EAAE,IAAI;QAC7B,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC3C,CAAC;AACJ,CAAC"}
|
|
@@ -12,14 +12,15 @@ import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
|
12
12
|
* words can be asked whether this speaker could have said them. No item may be
|
|
13
13
|
* excluded, because each binds wherever its condition applies.
|
|
14
14
|
*
|
|
15
|
-
* The same layer axis runs under `naturalness/`,
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* The same layer axis runs under `naturalness/`, the expression questions a
|
|
16
|
+
* script can fail while being content-complete. Scripts construction
|
|
17
|
+
* selects them beside its principles, so both families ask a unit about its
|
|
18
|
+
* own body in the same pass.
|
|
18
19
|
*
|
|
19
|
-
* @evidence contracts/development/implementation.md#principled-implementation Common, inherited narrative, realized-text and layer-specific files become non-excludable per-unit H2 checklists in the selected
|
|
20
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One layer axis is reused for both
|
|
21
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Required construction files stay selected when missing so native compilation diagnoses the broken tree; sparse
|
|
22
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains who can answer each scope, why literal-text questions apply only to realized layers, and the
|
|
20
|
+
* @evidence contracts/development/implementation.md#principled-implementation Common, inherited narrative, realized-text and layer-specific files become non-excludable per-unit H2 checklists in the selected principles or expression family; only declared optional family files are filtered by installation, probed in the shared skills tree that createContractDirectory resolves, where createSharedReference also roots the references.
|
|
21
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One layer axis is reused for both families, while family admission remains distinct from language modules and population obligations; the owning tree is decided by createContractDirectory, not rebuilt here.
|
|
22
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Required construction files stay selected when missing so native compilation diagnoses the broken tree; sparse expression files and older realized contracts are the explicit compatibility cases.
|
|
23
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains who can answer each scope, why literal-text questions apply only to realized layers, and which construction selects the expression family.
|
|
23
24
|
* @evidence contracts/development/implementation.md#efficient-algorithms At most four layer-file candidates require a bounded number of optional-file probes and fixed-size reference constructions; no manuscript traversal occurs.
|
|
24
25
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work layerFiles and createSharedReference centralize scope and address semantics; optional-file existence refreshes per configuration build rather than persisting an old contract population.
|
|
25
26
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Intermediate file lists and returned references have a fixed family bound; config owns the result and synchronous existence checks retain no handle or running task.
|
|
@@ -27,5 +28,5 @@ import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
|
27
28
|
export declare function createPrincipleReferences(props: {
|
|
28
29
|
contracts: IContractLocation;
|
|
29
30
|
layer: AuthoredLayer;
|
|
30
|
-
|
|
31
|
+
family: "principles" | "naturalness";
|
|
31
32
|
}): IEvidenceReference[];
|
|
@@ -20,32 +20,32 @@ const layerFiles_1 = require("./layerFiles");
|
|
|
20
20
|
* words can be asked whether this speaker could have said them. No item may be
|
|
21
21
|
* excluded, because each binds wherever its condition applies.
|
|
22
22
|
*
|
|
23
|
-
* The same layer axis runs under `naturalness/`,
|
|
24
|
-
*
|
|
25
|
-
*
|
|
23
|
+
* The same layer axis runs under `naturalness/`, the expression questions a
|
|
24
|
+
* script can fail while being content-complete. Scripts construction
|
|
25
|
+
* selects them beside its principles, so both families ask a unit about its
|
|
26
|
+
* own body in the same pass.
|
|
26
27
|
*
|
|
27
|
-
* @evidence contracts/development/implementation.md#principled-implementation Common, inherited narrative, realized-text and layer-specific files become non-excludable per-unit H2 checklists in the selected
|
|
28
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One layer axis is reused for both
|
|
29
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Required construction files stay selected when missing so native compilation diagnoses the broken tree; sparse
|
|
30
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains who can answer each scope, why literal-text questions apply only to realized layers, and the
|
|
28
|
+
* @evidence contracts/development/implementation.md#principled-implementation Common, inherited narrative, realized-text and layer-specific files become non-excludable per-unit H2 checklists in the selected principles or expression family; only declared optional family files are filtered by installation, probed in the shared skills tree that createContractDirectory resolves, where createSharedReference also roots the references.
|
|
29
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One layer axis is reused for both families, while family admission remains distinct from language modules and population obligations; the owning tree is decided by createContractDirectory, not rebuilt here.
|
|
30
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Required construction files stay selected when missing so native compilation diagnoses the broken tree; sparse expression files and older realized contracts are the explicit compatibility cases.
|
|
31
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains who can answer each scope, why literal-text questions apply only to realized layers, and which construction selects the expression family.
|
|
31
32
|
* @evidence contracts/development/implementation.md#efficient-algorithms At most four layer-file candidates require a bounded number of optional-file probes and fixed-size reference constructions; no manuscript traversal occurs.
|
|
32
33
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work layerFiles and createSharedReference centralize scope and address semantics; optional-file existence refreshes per configuration build rather than persisting an old contract population.
|
|
33
34
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Intermediate file lists and returned references have a fixed family bound; config owns the result and synchronous existence checks retain no handle or running task.
|
|
34
35
|
*/
|
|
35
36
|
function createPrincipleReferences(props) {
|
|
36
|
-
const
|
|
37
|
-
const installed = (file) => node_fs_1.default.existsSync(node_path_1.default.join((0, createContractDirectory_1.createContractDirectory)(props.contracts, "shared"), "shared", ...family.split("/"), file));
|
|
37
|
+
const installed = (file) => node_fs_1.default.existsSync(node_path_1.default.join((0, createContractDirectory_1.createContractDirectory)(props.contracts, "shared"), "shared", props.family, file));
|
|
38
38
|
// The construction family ships one document per layer scope, so a missing
|
|
39
39
|
// one is a broken tree rather than an absent option and must still be
|
|
40
40
|
// selected for the compiler to say so. Only the genuinely optional documents
|
|
41
41
|
// are filtered: `realized.md`, which older trees predate, and the whole
|
|
42
|
-
//
|
|
43
|
-
const optional = (file) => props.
|
|
42
|
+
// expression subtree, which is sparse by design.
|
|
43
|
+
const optional = (file) => props.family === "naturalness" || file === "realized.md";
|
|
44
44
|
return (0, layerFiles_1.layerFiles)(props.layer)
|
|
45
45
|
.filter((file) => !optional(file) || installed(file))
|
|
46
46
|
.map((file) => (0, createSharedReference_1.createSharedReference)({
|
|
47
47
|
contracts: props.contracts,
|
|
48
|
-
file: `${family}/${file}`,
|
|
48
|
+
file: `${props.family}/${file}`,
|
|
49
49
|
checklist: true,
|
|
50
50
|
exclusion: false,
|
|
51
51
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPrincipleReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createPrincipleReferences.ts"],"names":[],"mappings":";;;;;;AAIA,sDAAyB;AACzB,0DAA6B;AAI7B,kFAA+E;AAC/E,mEAAgE;AAChE,6CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"createPrincipleReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createPrincipleReferences.ts"],"names":[],"mappings":";;;;;;AAIA,sDAAyB;AACzB,0DAA6B;AAI7B,kFAA+E;AAC/E,mEAAgE;AAChE,6CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,mCAA0C,KAIzC;IACC,MAAM,SAAS,GAA8B,CAAC,IAAY,EAAW,EAAE,CACrE,iBAAE,CAAC,UAAU,CACX,mBAAI,CAAC,IAAI,CACP,IAAA,iDAAuB,EAAC,KAAK,CAAC,SAAS,EAAE,QAAQ,CAAC,EAClD,QAAQ,EACR,KAAK,CAAC,MAAM,EACZ,IAAI,CACL,CACF,CAAC;IACJ,2EAA2E;IAC3E,sEAAsE;IACtE,6EAA6E;IAC7E,wEAAwE;IACxE,iDAAiD;IACjD,MAAM,QAAQ,GAA8B,CAAC,IAAY,EAAW,EAAE,CACpE,KAAK,CAAC,MAAM,KAAK,aAAa,IAAI,IAAI,KAAK,aAAa,CAAC;IAC3D,OAAO,IAAA,uBAAU,EAAC,KAAK,CAAC,KAAK,CAAC;SAC3B,MAAM,CAAC,CAAC,IAAY,EAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC;SACrE,GAAG,CACF,CAAC,IAAY,EAA8B,EAAE,CAC3C,IAAA,6CAAqB,EAAC;QACpB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,IAAI,EAAE,GAAG,KAAK,CAAC,MAAM,IAAI,IAAI,EAAE;QAC/B,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,KAAK;KACjB,CAAC,CACL,CAAC;AACN,CAAC"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import type { IEvidenceReference } from "@wrtnlabs/evidence";
|
|
2
|
-
import type { AuthoredPass } from "../../AuthoredPass";
|
|
3
2
|
/**
|
|
4
3
|
* Creates one H2 reference per canon file of settings, in any supported layout, or of a short's brief.
|
|
5
4
|
* The outline is not canon and is never an inherited settings dependency.
|
|
6
5
|
*
|
|
7
|
-
* @evidence contracts/development/implementation.md#principled-implementation The
|
|
6
|
+
* @evidence contracts/development/implementation.md#principled-implementation The body settings or brief directory, chosen by `canon`, is enumerated under readSettingsFiles layout validation, yielding one H2 reference per actual canon file; outline navigation is excluded from canon inheritance.
|
|
8
7
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure Filesystem layout discovery stays in readSettingsFiles while this helper adds layer-qualified native-reference addresses.
|
|
9
8
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Both flat legacy canon and numbered subject folders are real supported layouts; symbolic or invalid classified entries fail in the shared enumerator rather than being silently substituted.
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-file settings targets, two layouts and the outline exclusion; the default
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-file settings targets, two layouts and the outline exclusion; the default canon is settings.
|
|
11
10
|
* @evidence contracts/development/implementation.md#efficient-algorithms For e directory entries and f canon files, enumeration and sorting dominate O(e log e) comparisons with O(e + f) path storage; two mapping passes allocate one reference per file without reading document contents.
|
|
12
11
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work The shared enumerator and address builder own reusable layout/address rules, but filesystem enumeration repeats each build because installed canon membership may change.
|
|
13
12
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned f references belong to the config owner; directory arrays and path lists are transient, and synchronous enumeration leaves no owned descriptor or background task.
|
|
14
13
|
*/
|
|
15
|
-
export declare function createSettingReferences(location: string,
|
|
14
|
+
export declare function createSettingReferences(location: string, canon?: "settings" | "brief"): IEvidenceReference[];
|
|
@@ -7,29 +7,29 @@ exports.createSettingReferences = createSettingReferences;
|
|
|
7
7
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
8
8
|
const node_path_1 = __importDefault(require("node:path"));
|
|
9
9
|
const readSettingsFiles_1 = require("../readSettingsFiles");
|
|
10
|
-
const
|
|
10
|
+
const BODY_ROOT_1 = require("../utilities/BODY_ROOT");
|
|
11
11
|
const referenceLocation_1 = require("../utilities/referenceLocation");
|
|
12
12
|
/**
|
|
13
13
|
* Creates one H2 reference per canon file of settings, in any supported layout, or of a short's brief.
|
|
14
14
|
* The outline is not canon and is never an inherited settings dependency.
|
|
15
15
|
*
|
|
16
|
-
* @evidence contracts/development/implementation.md#principled-implementation The
|
|
16
|
+
* @evidence contracts/development/implementation.md#principled-implementation The body settings or brief directory, chosen by `canon`, is enumerated under readSettingsFiles layout validation, yielding one H2 reference per actual canon file; outline navigation is excluded from canon inheritance.
|
|
17
17
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure Filesystem layout discovery stays in readSettingsFiles while this helper adds layer-qualified native-reference addresses.
|
|
18
18
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Both flat legacy canon and numbered subject folders are real supported layouts; symbolic or invalid classified entries fail in the shared enumerator rather than being silently substituted.
|
|
19
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-file settings targets, two layouts and the outline exclusion; the default
|
|
19
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-file settings targets, two layouts and the outline exclusion; the default canon is settings.
|
|
20
20
|
* @evidence contracts/development/implementation.md#efficient-algorithms For e directory entries and f canon files, enumeration and sorting dominate O(e log e) comparisons with O(e + f) path storage; two mapping passes allocate one reference per file without reading document contents.
|
|
21
21
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work The shared enumerator and address builder own reusable layout/address rules, but filesystem enumeration repeats each build because installed canon membership may change.
|
|
22
22
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned f references belong to the config owner; directory arrays and path lists are transient, and synchronous enumeration leaves no owned descriptor or background task.
|
|
23
23
|
*/
|
|
24
|
-
function createSettingReferences(location,
|
|
25
|
-
const settingsRoot = node_path_1.default.join(location,
|
|
24
|
+
function createSettingReferences(location, canon = "settings") {
|
|
25
|
+
const settingsRoot = node_path_1.default.join(location, ...BODY_ROOT_1.BODY_ROOT.split("/"), canon);
|
|
26
26
|
if (!node_fs_1.default.existsSync(settingsRoot))
|
|
27
27
|
return [];
|
|
28
28
|
return (0, readSettingsFiles_1.readSettingsFiles)(settingsRoot)
|
|
29
29
|
.map((file) => `${canon}/${file}`)
|
|
30
30
|
.map((file) => ({
|
|
31
31
|
type: "markdown",
|
|
32
|
-
...(0, referenceLocation_1.referenceLocation)([file]
|
|
32
|
+
...(0, referenceLocation_1.referenceLocation)([file]),
|
|
33
33
|
symbol: "h2",
|
|
34
34
|
}));
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSettingReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createSettingReferences.ts"],"names":[],"mappings":";;;;;;AACA,sDAAyB;AACzB,0DAA6B;
|
|
1
|
+
{"version":3,"file":"createSettingReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createSettingReferences.ts"],"names":[],"mappings":";;;;;;AACA,sDAAyB;AACzB,0DAA6B;AAE7B,4DAAyD;AACzD,sDAAmD;AACnD,sEAAmE;AAEnE;;;;;;;;;;;GAWG;AACH,iCACE,QAAgB,EAChB,KAAK,GAAyB,UAAU;IAExC,MAAM,YAAY,GAAW,mBAAI,CAAC,IAAI,CACpC,QAAQ,EACR,GAAG,qBAAS,CAAC,KAAK,CAAC,GAAG,CAAC,EACvB,KAAK,CACN,CAAC;IACF,IAAI,CAAC,iBAAE,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,OAAO,EAAE,CAAC;IAE5C,OAAO,IAAA,qCAAiB,EAAC,YAAY,CAAC;SACnC,GAAG,CAAC,CAAC,IAAY,EAAU,EAAE,CAAC,GAAG,KAAK,IAAI,IAAI,EAAE,CAAC;SACjD,GAAG,CACF,CACE,IAAY,EACuD,EAAE,CACrE,CAAC;QACC,IAAI,EAAE,UAAU;QAChB,GAAG,IAAA,qCAAiB,EAAC,CAAC,IAAI,CAAC,CAAC;QAC5B,MAAM,EAAE,IAAI;KACb,CAA8B,CAClC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./createCoverageReference";
|
|
2
|
+
export * from "./createDiscoveryReferences";
|
|
3
|
+
export * from "./createLanguageDiscoveryReferences";
|
|
4
|
+
export * from "./createLanguagePrincipleReferences";
|
|
5
|
+
export * from "./createLineageReference";
|
|
6
|
+
export * from "./createLocalContractReference";
|
|
7
|
+
export * from "./createPrincipleReferences";
|
|
8
|
+
export * from "./createSettingReferences";
|
|
9
|
+
export * from "./createSharedReference";
|
|
10
|
+
export * from "./createUpstreamReference";
|
|
11
|
+
export * from "./layerFiles";
|
|
@@ -0,0 +1,28 @@
|
|
|
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("./createCoverageReference"), exports);
|
|
18
|
+
__exportStar(require("./createDiscoveryReferences"), exports);
|
|
19
|
+
__exportStar(require("./createLanguageDiscoveryReferences"), exports);
|
|
20
|
+
__exportStar(require("./createLanguagePrincipleReferences"), exports);
|
|
21
|
+
__exportStar(require("./createLineageReference"), exports);
|
|
22
|
+
__exportStar(require("./createLocalContractReference"), exports);
|
|
23
|
+
__exportStar(require("./createPrincipleReferences"), exports);
|
|
24
|
+
__exportStar(require("./createSettingReferences"), exports);
|
|
25
|
+
__exportStar(require("./createSharedReference"), exports);
|
|
26
|
+
__exportStar(require("./createUpstreamReference"), exports);
|
|
27
|
+
__exportStar(require("./layerFiles"), exports);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,8DAA4C;AAC5C,sEAAoD;AACpD,sEAAoD;AACpD,2DAAyC;AACzC,iEAA+C;AAC/C,8DAA4C;AAC5C,4DAA0C;AAC1C,0DAAwC;AACxC,4DAA0C;AAC1C,+CAA6B"}
|
|
@@ -4,14 +4,14 @@ import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
|
4
4
|
*
|
|
5
5
|
* Placement is decided by who can truthfully answer an item, so the axis is
|
|
6
6
|
* the same wherever it appears: everyone, then the layers that inherit a unit,
|
|
7
|
-
* then the layers holding literal text, then one layer.
|
|
8
|
-
* scopes reuse it, because the question of who
|
|
9
|
-
*
|
|
7
|
+
* then the layers holding literal text, then one layer. The principles and
|
|
8
|
+
* expression families and both scopes reuse it, because the question of who
|
|
9
|
+
* can answer does not depend on which family asks it.
|
|
10
10
|
*
|
|
11
11
|
* @evidence contracts/development/implementation.md#principled-implementation The fixed candidate order is common, optional inherited-narrative, optional literal-text and exact layer, matching the respondent populations declared by the four-layer pipeline.
|
|
12
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One shared axis serves discovery/principle/obligation selection without duplicating layer eligibility decisions across
|
|
12
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One shared axis serves discovery/principle/obligation selection without duplicating layer eligibility decisions across families or language scopes.
|
|
13
13
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Canon layers omit inherited narrative duties and only REALIZED_LAYERS receives literal-text duties, both explicit semantic differences of the supported pipeline.
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains narrowest-last order and why eligibility depends on the respondent rather than
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains narrowest-last order and why eligibility depends on the respondent rather than the asking family.
|
|
15
15
|
* @evidence contracts/development/implementation.md#efficient-algorithms At most four filenames and one constant-time Set membership check are produced, giving constant work and space independent of manuscript length.
|
|
16
16
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work REALIZED_LAYERS is the shared eligibility set, while the returned array is fresh so filtering or mutation by one family cannot alter another family selection.
|
|
17
17
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The at-most-four-element result is caller-owned and no cache or resource handle is retained.
|
|
@@ -8,14 +8,14 @@ const isCanonLayer_1 = require("../isCanonLayer");
|
|
|
8
8
|
*
|
|
9
9
|
* Placement is decided by who can truthfully answer an item, so the axis is
|
|
10
10
|
* the same wherever it appears: everyone, then the layers that inherit a unit,
|
|
11
|
-
* then the layers holding literal text, then one layer.
|
|
12
|
-
* scopes reuse it, because the question of who
|
|
13
|
-
*
|
|
11
|
+
* then the layers holding literal text, then one layer. The principles and
|
|
12
|
+
* expression families and both scopes reuse it, because the question of who
|
|
13
|
+
* can answer does not depend on which family asks it.
|
|
14
14
|
*
|
|
15
15
|
* @evidence contracts/development/implementation.md#principled-implementation The fixed candidate order is common, optional inherited-narrative, optional literal-text and exact layer, matching the respondent populations declared by the four-layer pipeline.
|
|
16
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One shared axis serves discovery/principle/obligation selection without duplicating layer eligibility decisions across
|
|
16
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One shared axis serves discovery/principle/obligation selection without duplicating layer eligibility decisions across families or language scopes.
|
|
17
17
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Canon layers omit inherited narrative duties and only REALIZED_LAYERS receives literal-text duties, both explicit semantic differences of the supported pipeline.
|
|
18
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains narrowest-last order and why eligibility depends on the respondent rather than
|
|
18
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains narrowest-last order and why eligibility depends on the respondent rather than the asking family.
|
|
19
19
|
* @evidence contracts/development/implementation.md#efficient-algorithms At most four filenames and one constant-time Set membership check are produced, giving constant work and space independent of manuscript length.
|
|
20
20
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work REALIZED_LAYERS is the shared eligibility set, while the returned array is fresh so filtering or mutation by one family cannot alter another family selection.
|
|
21
21
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The at-most-four-element result is caller-owned and no cache or resource handle is retained.
|
|
@@ -4,7 +4,7 @@ import type { NarrativeScope } from "../../NarrativeScope";
|
|
|
4
4
|
* Captures indexes and misplaced files without widening an exact pilot slice.
|
|
5
5
|
*
|
|
6
6
|
* @evidence contracts/development/implementation.md#principled-implementation Topology captures all descendants of a layer so indexes and malformed paths remain visible, narrowing scripts/screenplay only to the exact declared pilot part; treatments stay flat at validation time.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One selector helper separates broad topology capture from the
|
|
7
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One selector helper separates broad topology capture from the partition and film-folder authored-unit selector used by ordinary evidence.
|
|
8
8
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The first-part pilot is a declared production scope, so the selector retains that exact slice instead of widening to other parts.
|
|
9
9
|
* @evidence contracts/development/common.md#meaningful-documentation The comment explains why indexes and misplaced files are included while an exact pilot slice stays narrow.
|
|
10
10
|
* @evidence contracts/development/implementation.md#efficient-algorithms One conditional constructs one glob string; work and returned storage scale only with layer and optional part text lengths.
|