@automovie/evidence 0.1.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 -8
- package/lib/index.js +1 -8
- package/lib/index.js.map +1 -1
- package/lib/internal/index.d.ts +5 -0
- package/lib/internal/index.js +7 -0
- package/lib/internal/index.js.map +1 -1
- 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 +0 -4
- package/lib/narrative/index.js +0 -4
- 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/collectProductionClaims.js +5 -2
- package/lib/narrative/internal/collectProductionClaims.js.map +1 -1
- package/lib/narrative/internal/index.d.ts +0 -1
- package/lib/narrative/internal/index.js +0 -1
- package/lib/narrative/internal/index.js.map +1 -1
- package/lib/narrative/internal/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/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/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 +1 -1
- package/lib/narrative/internal/utilities/index.js +1 -1
- package/lib/narrative/internal/utilities/index.js.map +1 -1
- 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 -8
- package/src/internal/index.ts +7 -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 +0 -4
- 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/collectProductionClaims.ts +7 -5
- package/src/narrative/internal/index.ts +0 -1
- 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/layerFiles.ts +5 -5
- package/src/narrative/internal/topology/createTopologyFiles.ts +1 -1
- 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 +1 -1
- 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
|
@@ -8,15 +8,16 @@ import { createLocalContractReference } from "./createLocalContractReference";
|
|
|
8
8
|
import { layerFiles } from "./layerFiles";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Selects the installed language's per-unit questions for one
|
|
11
|
+
* Selects the installed language's per-unit questions for one family.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* A language module's principles apply to every construction; its
|
|
14
|
+
* `naturalness/` questions apply to scripts construction, the one layer that
|
|
15
|
+
* selects the expression family.
|
|
15
16
|
*
|
|
16
|
-
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific candidate files are selected from the installed language principles or
|
|
17
|
+
* @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.
|
|
17
18
|
* @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.
|
|
18
19
|
* @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.
|
|
19
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-unit ownership,
|
|
20
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-unit ownership, family selection and which construction answers the expression family.
|
|
20
21
|
* @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.
|
|
21
22
|
* @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.
|
|
22
23
|
* @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.
|
|
@@ -24,16 +25,14 @@ import { layerFiles } from "./layerFiles";
|
|
|
24
25
|
export function createLanguagePrincipleReferences(props: {
|
|
25
26
|
location: string;
|
|
26
27
|
layer: AuthoredLayer;
|
|
27
|
-
|
|
28
|
+
family: "principles" | "naturalness";
|
|
28
29
|
}): IEvidenceReference[] {
|
|
29
|
-
const family: string =
|
|
30
|
-
props.gate === "naturalness" ? "naturalness" : "principles";
|
|
31
30
|
return layerFiles(props.layer)
|
|
32
31
|
.map((file: string): IEvidenceMarkdownReference | undefined =>
|
|
33
32
|
createLocalContractReference({
|
|
34
33
|
location: props.location,
|
|
35
34
|
scope: "language",
|
|
36
|
-
file: `${family}/${file}`,
|
|
35
|
+
file: `${props.family}/${file}`,
|
|
37
36
|
checklist: true,
|
|
38
37
|
exclusion: false,
|
|
39
38
|
}),
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { IEvidenceReference } from "@wrtnlabs/evidence";
|
|
2
2
|
|
|
3
|
-
import type { AuthoredPass } from "../../AuthoredPass";
|
|
4
3
|
import { referenceLocation } from "../utilities/referenceLocation";
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
|
-
* Creates a reference to one parent story unit
|
|
6
|
+
* Creates a reference to one parent story unit.
|
|
8
7
|
*
|
|
9
|
-
* Each child
|
|
10
|
-
* exclude. This binds screenplay
|
|
11
|
-
*
|
|
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.
|
|
12
11
|
* Use {@link createCoverageReference} for differently partitioned layers.
|
|
13
12
|
*
|
|
14
13
|
* `review` additionally demands a current review of the cited unit. The
|
|
@@ -16,9 +15,9 @@ import { referenceLocation } from "../utilities/referenceLocation";
|
|
|
16
15
|
* unit expires the review, and the graph names the one unit to read again.
|
|
17
16
|
*
|
|
18
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.
|
|
19
|
-
* @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.
|
|
20
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.
|
|
21
|
-
* @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.
|
|
22
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.
|
|
23
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.
|
|
24
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.
|
|
@@ -26,12 +25,11 @@ import { referenceLocation } from "../utilities/referenceLocation";
|
|
|
26
25
|
export function createLineageReference(
|
|
27
26
|
files: string[],
|
|
28
27
|
symbol: "file" | "h2",
|
|
29
|
-
pass: AuthoredPass | "revision" = "draft",
|
|
30
28
|
review: boolean = false,
|
|
31
29
|
): IEvidenceReference {
|
|
32
30
|
return {
|
|
33
31
|
type: "markdown",
|
|
34
|
-
...referenceLocation(files,
|
|
32
|
+
...referenceLocation(files, symbol),
|
|
35
33
|
symbol,
|
|
36
34
|
noEvidenceExclude: true,
|
|
37
35
|
uniqueEvidence: true,
|
|
@@ -22,14 +22,15 @@ import { layerFiles } from "./layerFiles";
|
|
|
22
22
|
* words can be asked whether this speaker could have said them. No item may be
|
|
23
23
|
* excluded, because each binds wherever its condition applies.
|
|
24
24
|
*
|
|
25
|
-
* The same layer axis runs under `naturalness/`,
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* The same layer axis runs under `naturalness/`, the expression questions a
|
|
26
|
+
* script can fail while being content-complete. Scripts construction
|
|
27
|
+
* selects them beside its principles, so both families ask a unit about its
|
|
28
|
+
* own body in the same pass.
|
|
28
29
|
*
|
|
29
|
-
* @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
|
|
30
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One layer axis is reused for both
|
|
31
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Required construction files stay selected when missing so native compilation diagnoses the broken tree; sparse
|
|
32
|
-
* @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
|
|
30
|
+
* @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.
|
|
31
|
+
* @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.
|
|
32
|
+
* @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.
|
|
33
|
+
* @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.
|
|
33
34
|
* @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.
|
|
34
35
|
* @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.
|
|
35
36
|
* @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.
|
|
@@ -37,16 +38,14 @@ import { layerFiles } from "./layerFiles";
|
|
|
37
38
|
export function createPrincipleReferences(props: {
|
|
38
39
|
contracts: IContractLocation;
|
|
39
40
|
layer: AuthoredLayer;
|
|
40
|
-
|
|
41
|
+
family: "principles" | "naturalness";
|
|
41
42
|
}): IEvidenceReference[] {
|
|
42
|
-
const family: string =
|
|
43
|
-
props.gate === "naturalness" ? "naturalness" : "principles";
|
|
44
43
|
const installed: (file: string) => boolean = (file: string): boolean =>
|
|
45
44
|
fs.existsSync(
|
|
46
45
|
path.join(
|
|
47
46
|
createContractDirectory(props.contracts, "shared"),
|
|
48
47
|
"shared",
|
|
49
|
-
|
|
48
|
+
props.family,
|
|
50
49
|
file,
|
|
51
50
|
),
|
|
52
51
|
);
|
|
@@ -54,16 +53,16 @@ export function createPrincipleReferences(props: {
|
|
|
54
53
|
// one is a broken tree rather than an absent option and must still be
|
|
55
54
|
// selected for the compiler to say so. Only the genuinely optional documents
|
|
56
55
|
// are filtered: `realized.md`, which older trees predate, and the whole
|
|
57
|
-
//
|
|
56
|
+
// expression subtree, which is sparse by design.
|
|
58
57
|
const optional: (file: string) => boolean = (file: string): boolean =>
|
|
59
|
-
props.
|
|
58
|
+
props.family === "naturalness" || file === "realized.md";
|
|
60
59
|
return layerFiles(props.layer)
|
|
61
60
|
.filter((file: string): boolean => !optional(file) || installed(file))
|
|
62
61
|
.map(
|
|
63
62
|
(file: string): IEvidenceMarkdownReference =>
|
|
64
63
|
createSharedReference({
|
|
65
64
|
contracts: props.contracts,
|
|
66
|
-
file: `${family}/${file}`,
|
|
65
|
+
file: `${props.family}/${file}`,
|
|
67
66
|
checklist: true,
|
|
68
67
|
exclusion: false,
|
|
69
68
|
}),
|
|
@@ -2,32 +2,29 @@ import type { IEvidenceReference } from "@wrtnlabs/evidence";
|
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
|
|
5
|
-
import type { AuthoredPass } from "../../AuthoredPass";
|
|
6
5
|
import { readSettingsFiles } from "../readSettingsFiles";
|
|
7
|
-
import {
|
|
6
|
+
import { BODY_ROOT } from "../utilities/BODY_ROOT";
|
|
8
7
|
import { referenceLocation } from "../utilities/referenceLocation";
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* Creates one H2 reference per canon file of settings, in any supported layout, or of a short's brief.
|
|
12
11
|
* The outline is not canon and is never an inherited settings dependency.
|
|
13
12
|
*
|
|
14
|
-
* @evidence contracts/development/implementation.md#principled-implementation The
|
|
13
|
+
* @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.
|
|
15
14
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure Filesystem layout discovery stays in readSettingsFiles while this helper adds layer-qualified native-reference addresses.
|
|
16
15
|
* @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.
|
|
17
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-file settings targets, two layouts and the outline exclusion; the default
|
|
16
|
+
* @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.
|
|
18
17
|
* @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.
|
|
19
18
|
* @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.
|
|
20
19
|
* @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.
|
|
21
20
|
*/
|
|
22
21
|
export function createSettingReferences(
|
|
23
22
|
location: string,
|
|
24
|
-
pass: AuthoredPass = "draft",
|
|
25
23
|
canon: "settings" | "brief" = "settings",
|
|
26
24
|
): IEvidenceReference[] {
|
|
27
25
|
const settingsRoot: string = path.join(
|
|
28
26
|
location,
|
|
29
|
-
|
|
30
|
-
"body",
|
|
27
|
+
...BODY_ROOT.split("/"),
|
|
31
28
|
canon,
|
|
32
29
|
);
|
|
33
30
|
if (!fs.existsSync(settingsRoot)) return [];
|
|
@@ -40,7 +37,7 @@ export function createSettingReferences(
|
|
|
40
37
|
): { symbol: "h2"; root: string; files: string[]; type: "markdown" } =>
|
|
41
38
|
({
|
|
42
39
|
type: "markdown",
|
|
43
|
-
...referenceLocation([file]
|
|
40
|
+
...referenceLocation([file]),
|
|
44
41
|
symbol: "h2",
|
|
45
42
|
}) satisfies IEvidenceReference,
|
|
46
43
|
);
|
|
@@ -7,14 +7,14 @@ import { isCanonLayer } from "../isCanonLayer";
|
|
|
7
7
|
*
|
|
8
8
|
* Placement is decided by who can truthfully answer an item, so the axis is
|
|
9
9
|
* the same wherever it appears: everyone, then the layers that inherit a unit,
|
|
10
|
-
* then the layers holding literal text, then one layer.
|
|
11
|
-
* scopes reuse it, because the question of who
|
|
12
|
-
*
|
|
10
|
+
* then the layers holding literal text, then one layer. The principles and
|
|
11
|
+
* expression families and both scopes reuse it, because the question of who
|
|
12
|
+
* can answer does not depend on which family asks it.
|
|
13
13
|
*
|
|
14
14
|
* @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.
|
|
15
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One shared axis serves discovery/principle/obligation selection without duplicating layer eligibility decisions across
|
|
15
|
+
* @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.
|
|
16
16
|
* @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.
|
|
17
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains narrowest-last order and why eligibility depends on the respondent rather than
|
|
17
|
+
* @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.
|
|
18
18
|
* @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.
|
|
19
19
|
* @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.
|
|
20
20
|
* @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.
|
|
@@ -5,7 +5,7 @@ import type { NarrativeScope } from "../../NarrativeScope";
|
|
|
5
5
|
* Captures indexes and misplaced files without widening an exact pilot slice.
|
|
6
6
|
*
|
|
7
7
|
* @evidence contracts/development/implementation.md#principled-implementation Topology captures all descendants of a layer so indexes and malformed paths remain visible, narrowing scripts/screenplay only to the exact declared pilot part; treatments stay flat at validation time.
|
|
8
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One selector helper separates broad topology capture from the
|
|
8
|
+
* @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.
|
|
9
9
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The first-part pilot is a declared production scope, so the selector retains that exact slice instead of widening to other parts.
|
|
10
10
|
* @evidence contracts/development/common.md#meaningful-documentation The comment explains why indexes and misplaced files are included while an exact pilot slice stays narrow.
|
|
11
11
|
* @evidence contracts/development/implementation.md#efficient-algorithms One conditional constructs one glob string; work and returned storage scale only with layer and optional part text lengths.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PACKAGE_DOCS_ROOT } from "./PACKAGE_DOCS_ROOT";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Names the docs subtree that holds every authored narrative body.
|
|
5
|
+
*
|
|
6
|
+
* Every authored claim hosts this tree, and every inherited reference selects
|
|
7
|
+
* it, because each layer's authored text lives only in the body.
|
|
8
|
+
*
|
|
9
|
+
* Principled implementation: The value joins PACKAGE_DOCS_ROOT with `body`, the one location the document layout gives authored layers.
|
|
10
|
+
* Clear and simple design: One constant supplies the body spelling to every claim factory and reference builder, derived from the docs folder so the two cannot drift.
|
|
11
|
+
* Prohibited implementation shortcuts: The body directory is a declared production layout value; it is not selected from fixture names, measured output or host-specific paths.
|
|
12
|
+
* Meaningful documentation: The prose states that the body is the single authored tree hosts and references share.
|
|
13
|
+
* Efficient algorithms: The string initializer is constant-sized and performs no filesystem or population traversal.
|
|
14
|
+
* Reuse equivalent work: Consumers reuse the same immutable string, so no equivalent derivation or invalidation mechanism is needed unless the source layout contract changes.
|
|
15
|
+
* Bound retention and release resources: One fixed string is retained for module lifetime; it has no dynamic population, file handle or task to release.
|
|
16
|
+
*/
|
|
17
|
+
export const BODY_ROOT: string = `${PACKAGE_DOCS_ROOT}/body`;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Names the package's docs folder.
|
|
3
3
|
*
|
|
4
|
-
* Authored claims select
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Authored claims select the body through `BODY_ROOT`. The instruction and
|
|
5
|
+
* review relations use this constant directly, because their documents sit
|
|
6
|
+
* beside the body rather than in it.
|
|
7
7
|
*
|
|
8
|
-
* Principled implementation: The literal docs string is the package-relative document directory shared by
|
|
9
|
-
* Clear and simple design: One constant supplies the common directory spelling while
|
|
8
|
+
* Principled implementation: The literal docs string is the package-relative document directory shared by the body root and the instruction and review locations, rather than a resolved filesystem identity.
|
|
9
|
+
* Clear and simple design: One constant supplies the common directory spelling while BODY_ROOT names the authored body inside it.
|
|
10
10
|
* Prohibited implementation shortcuts: The docs directory is a declared production layout value; it is not selected from fixture names, measured output or host-specific paths.
|
|
11
|
-
* Meaningful documentation: The prose identifies which consumers use the constant directly and which select
|
|
11
|
+
* Meaningful documentation: The prose identifies which consumers use the constant directly and which select the body through BODY_ROOT.
|
|
12
12
|
* Efficient algorithms: The string initializer is constant-sized and performs no filesystem or population traversal.
|
|
13
13
|
* Reuse equivalent work: Consumers reuse the same immutable string, so no equivalent derivation or invalidation mechanism is needed unless the source layout contract changes.
|
|
14
14
|
* Bound retention and release resources: One fixed string is retained for module lifetime; it has no dynamic population, file handle or task to release.
|
|
@@ -4,7 +4,6 @@ import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
|
4
4
|
import type { IProductionConfigProps } from "../../IProductionConfigProps";
|
|
5
5
|
import { AUTHORED_LAYERS } from "../AUTHORED_LAYERS";
|
|
6
6
|
import { constructionStage } from "../constructionStage";
|
|
7
|
-
import { hasNaturalness } from "../hasNaturalness";
|
|
8
7
|
import { productionLayers } from "../productionLayers";
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -32,10 +31,7 @@ export function assertProductionEvidenceSources(
|
|
|
32
31
|
const routed: readonly AuthoredLayer[] = productionLayers(props);
|
|
33
32
|
for (const layer of AUTHORED_LAYERS) {
|
|
34
33
|
if (routed.includes(layer)) continue;
|
|
35
|
-
if (
|
|
36
|
-
constructionStage(props, layer) !== "disabled" ||
|
|
37
|
-
(hasNaturalness(layer) && props.naturalness.screenplay !== "disabled")
|
|
38
|
-
)
|
|
34
|
+
if (constructionStage(props, layer) !== "disabled")
|
|
39
35
|
throw new Error(
|
|
40
36
|
"Layers outside the production route must stay disabled.",
|
|
41
37
|
);
|
|
@@ -52,24 +48,9 @@ export function assertProductionEvidenceSources(
|
|
|
52
48
|
props.construction.index !== "evidence"
|
|
53
49
|
)
|
|
54
50
|
throw new Error("Unknown outline stage.");
|
|
55
|
-
for (const layer of AUTHORED_LAYERS)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
? constructionStage(props, layer)
|
|
61
|
-
: props.naturalness.screenplay;
|
|
62
|
-
if (stage !== "disabled" && stage !== "evidence")
|
|
63
|
-
throw new Error("Unknown stage: a layer is disabled or evidence.");
|
|
64
|
-
}
|
|
65
|
-
if ("scripts" in props.naturalness)
|
|
66
|
-
throw new Error(
|
|
67
|
-
"Scripts finish in construction; remove naturalness.scripts.",
|
|
68
|
-
);
|
|
69
|
-
if (
|
|
70
|
-
"settings" in props.naturalness ||
|
|
71
|
-
"brief" in props.naturalness ||
|
|
72
|
-
"treatments" in props.naturalness
|
|
73
|
-
)
|
|
74
|
-
throw new Error("Settings, brief and treatments finish in construction.");
|
|
51
|
+
for (const layer of AUTHORED_LAYERS) {
|
|
52
|
+
const stage: unknown = constructionStage(props, layer);
|
|
53
|
+
if (stage !== "disabled" && stage !== "evidence")
|
|
54
|
+
throw new Error("Unknown stage: a layer is disabled or evidence.");
|
|
55
|
+
}
|
|
75
56
|
}
|
|
@@ -5,19 +5,17 @@ import { createNarrativeUnitFiles } from "../../createNarrativeUnitFiles";
|
|
|
5
5
|
import { createSettingsFiles } from "../../createSettingsFiles";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Selects authored unit files relative to
|
|
8
|
+
* Selects authored unit files relative to the body root.
|
|
9
9
|
*
|
|
10
10
|
* Settings accepts the legacy flat layout, numbered subject folders or the
|
|
11
11
|
* scaffold's domain folders, and a short's brief the domain folders. The
|
|
12
12
|
* settings outline remains outside canon selectors. Narrative layers retain
|
|
13
|
-
* their release partition or
|
|
14
|
-
* `referenceLocation` qualifies lineage targets against the revision snapshot;
|
|
15
|
-
* both logical passes host the same current manuscript paths.
|
|
13
|
+
* their release partition or film folders and delegate to their own selector.
|
|
16
14
|
*
|
|
17
|
-
* @evidence contracts/development/implementation.md#principled-implementation Settings and brief use their dedicated canon selectors excluding outline navigation, while narrative layers delegate to the scope-validating partition
|
|
15
|
+
* @evidence contracts/development/implementation.md#principled-implementation Settings and brief use their dedicated canon selectors excluding outline navigation, while narrative layers delegate to the scope-validating partition and film-folder selector; all outputs remain relative to the body root.
|
|
18
16
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure This dispatcher owns the authored-layer distinction and delegates narrative pilot/complete-work rules rather than repeating their validation.
|
|
19
17
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Legacy flat settings and exact first-part pilots are supported layouts/scopes; invalid narrative scope is rejected by the shared selector rather than widened to a matching fixture.
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose names supported settings layouts, outline exclusion
|
|
18
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose names supported settings layouts, outline exclusion and partitioned or film-folder narrative selection relative to the body root.
|
|
21
19
|
* @evidence contracts/development/implementation.md#efficient-algorithms Each branch returns at most two selectors; narrative branches also validate scope text, so cost/storage are bounded by the selected scope/path text and independent of manuscript size.
|
|
22
20
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work The same settings/narrative selector helpers serve hosts and references; fresh returned selector arrays keep config mutations local and no filesystem membership is cached.
|
|
23
21
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the one- or two-string result; this dispatcher opens no handle, starts no task and retains no population state.
|
|
@@ -28,5 +26,5 @@ export function createUnitFiles(
|
|
|
28
26
|
): string[] {
|
|
29
27
|
if (layer === "settings") return createSettingsFiles();
|
|
30
28
|
if (layer === "brief") return createBriefFiles();
|
|
31
|
-
return createNarrativeUnitFiles(layer, scope);
|
|
29
|
+
return createNarrativeUnitFiles({ layer, scope });
|
|
32
30
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
export * from "./BODY_ROOT";
|
|
1
2
|
export * from "./PACKAGE_DOCS_ROOT";
|
|
2
3
|
export * from "./assertProductionEvidenceSources";
|
|
3
4
|
export * from "./createContractDirectory";
|
|
4
5
|
export * from "./createContractRoot";
|
|
5
6
|
export * from "./createEvidenceFiles";
|
|
6
7
|
export * from "./createUnitFiles";
|
|
7
|
-
export * from "./passRoot";
|
|
8
8
|
export * from "./referenceLocation";
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PACKAGE_DOCS_ROOT } from "./PACKAGE_DOCS_ROOT";
|
|
1
|
+
import { BODY_ROOT } from "./BODY_ROOT";
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* Gives reference targets an explicit address in the graph's global space.
|
|
6
5
|
*
|
|
7
|
-
*
|
|
8
|
-
* distinct from a naturalness claim's working host; revision references select
|
|
9
|
-
* its frozen pre-revision snapshot.
|
|
6
|
+
* Every inherited reference selects the body, where each layer's authored text lives.
|
|
10
7
|
*
|
|
11
8
|
* File references use package-relative addresses. A claim that selects file
|
|
12
9
|
* hosts and a claim that selects section hosts read the same documents, and the
|
|
@@ -16,17 +13,16 @@ import { PACKAGE_DOCS_ROOT } from "./PACKAGE_DOCS_ROOT";
|
|
|
16
13
|
* a section host. A distinct address space keeps each annotation with the
|
|
17
14
|
* reference it answers.
|
|
18
15
|
*
|
|
19
|
-
* @evidence contracts/development/implementation.md#principled-implementation
|
|
16
|
+
* @evidence contracts/development/implementation.md#principled-implementation References always target the body, and file references use package-global addresses distinct from H2-root addresses to avoid aggregate-target collisions.
|
|
20
17
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure Address qualification is centralized for coverage, lineage and settings references, keeping native binder address-space rules out of their semantic flag builders.
|
|
21
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The file/H2 address distinction follows native aggregate binding semantics; no citation is rewritten to match an expected answer
|
|
22
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains
|
|
18
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The file/H2 address distinction follows native aggregate binding semantics; no citation is rewritten to match an expected answer.
|
|
19
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains body targeting and why file references need a separate global address space.
|
|
23
20
|
* @evidence contracts/development/implementation.md#efficient-algorithms File mode maps n selectors and their total text length p into qualified paths in O(n + p) work/storage; H2 mode constructs only its root and reuses the supplied files array.
|
|
24
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Coverage and lineage share this address rule, and H2 mode reuses the input selector array; there is no cache that could incorrectly equate mutable files arrays
|
|
21
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Coverage and lineage share this address rule, and H2 mode reuses the input selector array; there is no cache that could incorrectly equate mutable files arrays.
|
|
25
22
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned root/files record; file mode owns n new strings while H2 mode retains the caller array reference, with no filesystem handle or running task.
|
|
26
23
|
*/
|
|
27
24
|
export function referenceLocation(
|
|
28
25
|
files: string[],
|
|
29
|
-
pass: AuthoredPass | "revision",
|
|
30
26
|
symbol: "file" | "h2" = "h2",
|
|
31
27
|
): {
|
|
32
28
|
root: string;
|
|
@@ -35,13 +31,7 @@ export function referenceLocation(
|
|
|
35
31
|
if (symbol === "file")
|
|
36
32
|
return {
|
|
37
33
|
root: ".",
|
|
38
|
-
files: files.map(
|
|
39
|
-
(file: string): string =>
|
|
40
|
-
`${PACKAGE_DOCS_ROOT}/${pass === "revision" ? "revision" : "body"}/${file}`,
|
|
41
|
-
),
|
|
34
|
+
files: files.map((file: string): string => `${BODY_ROOT}/${file}`),
|
|
42
35
|
};
|
|
43
|
-
return {
|
|
44
|
-
root: `${PACKAGE_DOCS_ROOT}/${pass === "revision" ? "revision" : "body"}`,
|
|
45
|
-
files,
|
|
46
|
-
};
|
|
36
|
+
return { root: BODY_ROOT, files };
|
|
47
37
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Names the two logical authored passes of one shared manuscript.
|
|
3
|
-
*
|
|
4
|
-
* `draft` means construction. `final` means screenplay naturalness. They select
|
|
5
|
-
* `docs/body` and `docs/naturalness` respectively; construction evidence is detached,
|
|
6
|
-
* while naturalness evidence stays inline in the working text.
|
|
7
|
-
*
|
|
8
|
-
* Naturalness compares its working text with the frozen construction snapshot
|
|
9
|
-
* in `docs/revision`. The source flag chooses upstream approval dependencies.
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/design.md#principled-representation The closed draft/final spelling maps authoring selections to body versus naturalness trees; final is the expression revision, not a creative approval.
|
|
12
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Two legacy selector spellings keep root selection separate from the construction/naturalness gate vocabulary.
|
|
13
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts The alias does not certify creative completion; its final spelling is explicitly expression revision.
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose defines draft/final roots, detached versus inline evidence and frozen comparison dependencies.
|
|
15
|
-
*/
|
|
16
|
-
export type AuthoredPass = "draft" | "final";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthoredPass.js","sourceRoot":"","sources":["../../src/narrative/AuthoredPass.ts"],"names":[],"mappings":""}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ProductionStage } from "./ProductionStage";
|
|
2
|
-
/**
|
|
3
|
-
* The independent naturalness stage of final screenplay.
|
|
4
|
-
* Settings, treatments and scripts finish within construction; scripts
|
|
5
|
-
* construction also answers its expression questions.
|
|
6
|
-
*
|
|
7
|
-
* @evidence contracts/development/design.md#principled-representation Only screenplay has a separate expression stage; scripts construction owns its expression questions, and documentary layers finish within construction.
|
|
8
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface One field represents the actual revision pass without a frozen script-content cycle.
|
|
9
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts The factory checks stage values; the type supplies no disabled-check compensation or special consumer path.
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose identifies construction-only layers and the screenplay naturalness stage.
|
|
11
|
-
*/
|
|
12
|
-
export interface IProductionLayerStages {
|
|
13
|
-
/** The stage of `screenplay` in this pass. */
|
|
14
|
-
screenplay: ProductionStage;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IProductionLayerStages.js","sourceRoot":"","sources":["../../src/narrative/IProductionLayerStages.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { AuthoredLayer } from "../AuthoredLayer";
|
|
2
|
-
/**
|
|
3
|
-
* Only final screenplay has an independent expression pass. Scripts construction
|
|
4
|
-
* also answers expression questions so content-shaped defects remain repairable.
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/implementation.md#principled-implementation Literal membership limits separate expression revision to screenplay; scripts expression remains in construction.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The shared type guard keeps the same eligibility rule in claim factories and dependency validation.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The admitted layer is the actual separate expression pass, not a consumer-specific exception.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies the separate expression layer and scripts construction responsibility; the return type narrows callers to the naturalness stage key.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One literal comparison takes constant time and no collection allocation.
|
|
11
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This pure membership predicate coordinates no reusable requests or effectful work.
|
|
12
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function owns no retained state, descriptor or task.
|
|
13
|
-
*/
|
|
14
|
-
export declare function hasNaturalness(layer: AuthoredLayer): layer is "screenplay";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.hasNaturalness = hasNaturalness;
|
|
4
|
-
/**
|
|
5
|
-
* Only final screenplay has an independent expression pass. Scripts construction
|
|
6
|
-
* also answers expression questions so content-shaped defects remain repairable.
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/implementation.md#principled-implementation Literal membership limits separate expression revision to screenplay; scripts expression remains in construction.
|
|
9
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The shared type guard keeps the same eligibility rule in claim factories and dependency validation.
|
|
10
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The admitted layer is the actual separate expression pass, not a consumer-specific exception.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies the separate expression layer and scripts construction responsibility; the return type narrows callers to the naturalness stage key.
|
|
12
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One literal comparison takes constant time and no collection allocation.
|
|
13
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This pure membership predicate coordinates no reusable requests or effectful work.
|
|
14
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function owns no retained state, descriptor or task.
|
|
15
|
-
*/
|
|
16
|
-
function hasNaturalness(layer) {
|
|
17
|
-
return layer === "screenplay";
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=hasNaturalness.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hasNaturalness.js","sourceRoot":"","sources":["../../../src/narrative/internal/hasNaturalness.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;GAWG;AACH,wBAA+B,KAAoB;IACjD,OAAO,KAAK,KAAK,YAAY,CAAC;AAChC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { AuthoredPass } from "../../AuthoredPass";
|
|
2
|
-
/**
|
|
3
|
-
* Names the docs subtree one pass writes into.
|
|
4
|
-
*
|
|
5
|
-
* Construction reads the current manuscript. Naturalness is written, evidenced,
|
|
6
|
-
* and reviewed in its working tree before comment-free promotion to body.
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/implementation.md#principled-implementation The draft edition addresses the current body tree and the final edition addresses the naturalness working tree; frozen revision references are deliberately handled by referenceLocation instead.
|
|
9
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One two-way pass-root rule is shared by authored claim factories, while upstream/frozen reference addressing stays with the relation owner.
|
|
10
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The final-to-naturalness mapping is the declared review-before-promotion lifecycle and does not redirect a consumer to fabricated final output.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains current manuscript ownership and that naturalness is authored, evidenced and reviewed before comment-free promotion.
|
|
12
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One branch and string interpolation allocate a fixed-size relative path, independent of file population or document size.
|
|
13
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work PACKAGE_DOCS_ROOT shares the directory spelling across callers; this pure fixed mapping has no effectful work or cross-request result cache.
|
|
14
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned path is caller-owned and constant-sized; there are no open handles, retained tasks or growing module collections.
|
|
15
|
-
*/
|
|
16
|
-
export declare function passRoot(pass: AuthoredPass): string;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.passRoot = passRoot;
|
|
4
|
-
const PACKAGE_DOCS_ROOT_1 = require("./PACKAGE_DOCS_ROOT");
|
|
5
|
-
/**
|
|
6
|
-
* Names the docs subtree one pass writes into.
|
|
7
|
-
*
|
|
8
|
-
* Construction reads the current manuscript. Naturalness is written, evidenced,
|
|
9
|
-
* and reviewed in its working tree before comment-free promotion to body.
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/implementation.md#principled-implementation The draft edition addresses the current body tree and the final edition addresses the naturalness working tree; frozen revision references are deliberately handled by referenceLocation instead.
|
|
12
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One two-way pass-root rule is shared by authored claim factories, while upstream/frozen reference addressing stays with the relation owner.
|
|
13
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The final-to-naturalness mapping is the declared review-before-promotion lifecycle and does not redirect a consumer to fabricated final output.
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains current manuscript ownership and that naturalness is authored, evidenced and reviewed before comment-free promotion.
|
|
15
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One branch and string interpolation allocate a fixed-size relative path, independent of file population or document size.
|
|
16
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work PACKAGE_DOCS_ROOT shares the directory spelling across callers; this pure fixed mapping has no effectful work or cross-request result cache.
|
|
17
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned path is caller-owned and constant-sized; there are no open handles, retained tasks or growing module collections.
|
|
18
|
-
*/
|
|
19
|
-
function passRoot(pass) {
|
|
20
|
-
return `${PACKAGE_DOCS_ROOT_1.PACKAGE_DOCS_ROOT}/${pass === "final" ? "naturalness" : "body"}`;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=passRoot.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"passRoot.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/passRoot.ts"],"names":[],"mappings":";;;AACA,2DAAwD;AAExD;;;;;;;;;;;;;GAaG;AACH,kBAAyB,IAAkB;IACzC,OAAO,GAAG,qCAAiB,IAAI,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;AAC7E,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Removes complete HTML comments without changing any surrounding UTF-8 bytes.
|
|
3
|
-
*
|
|
4
|
-
* @evidence contracts/development/implementation.md#principled-implementation Fatal UTF-8 decoding validates bytes before delimiter-based removal of every complete HTML comment; retained subarrays are concatenated without decoding/re-encoding them, preserving exact surrounding bytes.
|
|
5
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The helper owns only byte-preserving comment removal; topology and evidence metadata policy remain with their callers.
|
|
6
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unclosed comments and invalid UTF-8 throw rather than being silently repaired; all HTML comments are removed regardless of evidence content.
|
|
7
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment promises complete-comment removal and exact surrounding UTF-8 preservation; the thrown error names an unterminated working comment.
|
|
8
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Decoding, forward delimiter searches and final concatenation take linear work in byte count; temporary decoded text, slice descriptors and returned bytes require linear memory.
|
|
9
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each buffer is processed independently because its bytes are the complete input and callers may mutate buffers; there is no coordinated request cache.
|
|
10
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Subarray views retain input storage only until concatenation and return; the result owns its output bytes, and the function opens no handle or task.
|
|
11
|
-
*/
|
|
12
|
-
export declare function stripNaturalnessComments(bytes: Buffer): Buffer;
|