@automovie/evidence 0.1.0 → 0.3.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 +14 -10
- package/lib/IAutoMovieDevelopmentProps.d.ts +11 -10
- 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 +26 -14
- package/lib/createDevelopmentContractClaims.js +35 -21
- 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/readSettingsFiles.d.ts +6 -5
- package/lib/narrative/internal/readSettingsFiles.js +12 -9
- package/lib/narrative/internal/readSettingsFiles.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 +11 -10
- package/src/IAutoMovieEvidenceConfigProps.ts +9 -8
- package/src/IAutoMovieNarrativeProps.ts +0 -4
- package/src/IAutoMovieNoNarrativeProps.ts +18 -0
- package/src/createDevelopmentContractClaims.ts +43 -22
- 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/readSettingsFiles.ts +14 -9
- 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
|
@@ -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,14 +4,14 @@ exports.PACKAGE_DOCS_ROOT = void 0;
|
|
|
4
4
|
/**
|
|
5
5
|
* Names the package's docs folder.
|
|
6
6
|
*
|
|
7
|
-
* Authored claims select
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Authored claims select the body through `BODY_ROOT`. The instruction and
|
|
8
|
+
* review relations use this constant directly, because their documents sit
|
|
9
|
+
* beside the body rather than in it.
|
|
10
10
|
*
|
|
11
|
-
* Principled implementation: The literal docs string is the package-relative document directory shared by
|
|
12
|
-
* Clear and simple design: One constant supplies the common directory spelling while
|
|
11
|
+
* 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.
|
|
12
|
+
* Clear and simple design: One constant supplies the common directory spelling while BODY_ROOT names the authored body inside it.
|
|
13
13
|
* Prohibited implementation shortcuts: The docs directory is a declared production layout value; it is not selected from fixture names, measured output or host-specific paths.
|
|
14
|
-
* Meaningful documentation: The prose identifies which consumers use the constant directly and which select
|
|
14
|
+
* Meaningful documentation: The prose identifies which consumers use the constant directly and which select the body through BODY_ROOT.
|
|
15
15
|
* Efficient algorithms: The string initializer is constant-sized and performs no filesystem or population traversal.
|
|
16
16
|
* Reuse equivalent work: Consumers reuse the same immutable string, so no equivalent derivation or invalidation mechanism is needed unless the source layout contract changes.
|
|
17
17
|
* Bound retention and release resources: One fixed string is retained for module lifetime; it has no dynamic population, file handle or task to release.
|
|
@@ -5,7 +5,6 @@ const assertProductionContractLayout_1 = require("../../../internal/assertProduc
|
|
|
5
5
|
const resolveSkillsDirectory_1 = require("../../../internal/resolveSkillsDirectory");
|
|
6
6
|
const AUTHORED_LAYERS_1 = require("../AUTHORED_LAYERS");
|
|
7
7
|
const constructionStage_1 = require("../constructionStage");
|
|
8
|
-
const hasNaturalness_1 = require("../hasNaturalness");
|
|
9
8
|
const productionLayers_1 = require("../productionLayers");
|
|
10
9
|
/**
|
|
11
10
|
* Checks supported narrative routes and stage option shapes before graph creation.
|
|
@@ -29,8 +28,7 @@ function assertProductionEvidenceSources(props) {
|
|
|
29
28
|
for (const layer of AUTHORED_LAYERS_1.AUTHORED_LAYERS) {
|
|
30
29
|
if (routed.includes(layer))
|
|
31
30
|
continue;
|
|
32
|
-
if ((0, constructionStage_1.constructionStage)(props, layer) !== "disabled"
|
|
33
|
-
((0, hasNaturalness_1.hasNaturalness)(layer) && props.naturalness.screenplay !== "disabled"))
|
|
31
|
+
if ((0, constructionStage_1.constructionStage)(props, layer) !== "disabled")
|
|
34
32
|
throw new Error("Layers outside the production route must stay disabled.");
|
|
35
33
|
}
|
|
36
34
|
if (props.mode !== "long" && props.construction.index === "evidence")
|
|
@@ -41,21 +39,10 @@ function assertProductionEvidenceSources(props) {
|
|
|
41
39
|
props.construction.index !== "disabled" &&
|
|
42
40
|
props.construction.index !== "evidence")
|
|
43
41
|
throw new Error("Unknown outline stage.");
|
|
44
|
-
for (const layer of AUTHORED_LAYERS_1.AUTHORED_LAYERS)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
? (0, constructionStage_1.constructionStage)(props, layer)
|
|
50
|
-
: props.naturalness.screenplay;
|
|
51
|
-
if (stage !== "disabled" && stage !== "evidence")
|
|
52
|
-
throw new Error("Unknown stage: a layer is disabled or evidence.");
|
|
53
|
-
}
|
|
54
|
-
if ("scripts" in props.naturalness)
|
|
55
|
-
throw new Error("Scripts finish in construction; remove naturalness.scripts.");
|
|
56
|
-
if ("settings" in props.naturalness ||
|
|
57
|
-
"brief" in props.naturalness ||
|
|
58
|
-
"treatments" in props.naturalness)
|
|
59
|
-
throw new Error("Settings, brief and treatments finish in construction.");
|
|
42
|
+
for (const layer of AUTHORED_LAYERS_1.AUTHORED_LAYERS) {
|
|
43
|
+
const stage = (0, constructionStage_1.constructionStage)(props, layer);
|
|
44
|
+
if (stage !== "disabled" && stage !== "evidence")
|
|
45
|
+
throw new Error("Unknown stage: a layer is disabled or evidence.");
|
|
46
|
+
}
|
|
60
47
|
}
|
|
61
48
|
//# sourceMappingURL=assertProductionEvidenceSources.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertProductionEvidenceSources.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/assertProductionEvidenceSources.ts"],"names":[],"mappings":";;;AAAA,qGAAkG;AAClG,qFAAkF;AAGlF,wDAAqD;AACrD,4DAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"assertProductionEvidenceSources.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/assertProductionEvidenceSources.ts"],"names":[],"mappings":";;;AAAA,qGAAkG;AAClG,qFAAkF;AAGlF,wDAAqD;AACrD,4DAAyD;AACzD,0DAAuD;AAEvD;;;;;;;;;;GAUG;AACH,yCACE,KAA6B;IAE7B,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC;QAClD,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAE/C,yEAAyE;IACzE,2EAA2E;IAC3E,IAAA,+CAAsB,EAAC,KAAK,CAAC,CAAC;IAC9B,IAAA,+DAA8B,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAE/C,MAAM,MAAM,GAA6B,IAAA,mCAAgB,EAAC,KAAK,CAAC,CAAC;IACjE,KAAK,MAAM,KAAK,IAAI,iCAAe,EAAE,CAAC;QACpC,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,SAAS;QACrC,IAAI,IAAA,qCAAiB,EAAC,KAAK,EAAE,KAAK,CAAC,KAAK,UAAU;YAChD,MAAM,IAAI,KAAK,CACb,yDAAyD,CAC1D,CAAC;IACN,CAAC;IACD,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,KAAK,UAAU;QAClE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACtE,IAAI,KAAK,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC;QAC3D,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAC;IACJ,IACE,KAAK,CAAC,YAAY,CAAC,KAAK,KAAK,SAAS;QACtC,KAAK,CAAC,YAAY,CAAC,KAAK,KAAK,UAAU;QACvC,KAAK,CAAC,YAAY,CAAC,KAAK,KAAK,UAAU;QAEvC,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5C,KAAK,MAAM,KAAK,IAAI,iCAAe,EAAE,CAAC;QACpC,MAAM,KAAK,GAAY,IAAA,qCAAiB,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACvD,IAAI,KAAK,KAAK,UAAU,IAAI,KAAK,KAAK,UAAU;YAC9C,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACvE,CAAC;AACH,CAAC"}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
2
2
|
import type { NarrativeScope } from "../../NarrativeScope";
|
|
3
3
|
/**
|
|
4
|
-
* Selects authored unit files relative to
|
|
4
|
+
* Selects authored unit files relative to the body root.
|
|
5
5
|
*
|
|
6
6
|
* Settings accepts the legacy flat layout, numbered subject folders or the
|
|
7
7
|
* scaffold's domain folders, and a short's brief the domain folders. The
|
|
8
8
|
* settings outline remains outside canon selectors. Narrative layers retain
|
|
9
|
-
* their release partition or
|
|
10
|
-
* `referenceLocation` qualifies lineage targets against the revision snapshot;
|
|
11
|
-
* both logical passes host the same current manuscript paths.
|
|
9
|
+
* their release partition or film folders and delegate to their own selector.
|
|
12
10
|
*
|
|
13
|
-
* @evidence contracts/development/implementation.md#principled-implementation Settings and brief use their dedicated canon selectors excluding outline navigation, while narrative layers delegate to the scope-validating partition
|
|
11
|
+
* @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.
|
|
14
12
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure This dispatcher owns the authored-layer distinction and delegates narrative pilot/complete-work rules rather than repeating their validation.
|
|
15
13
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Legacy flat settings and exact first-part pilots are supported layouts/scopes; invalid narrative scope is rejected by the shared selector rather than widened to a matching fixture.
|
|
16
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose names supported settings layouts, outline exclusion
|
|
14
|
+
* @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.
|
|
17
15
|
* @evidence contracts/development/implementation.md#efficient-algorithms Each branch returns at most two selectors; narrative branches also validate scope text, so cost/storage are bounded by the selected scope/path text and independent of manuscript size.
|
|
18
16
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work The same settings/narrative selector helpers serve hosts and references; fresh returned selector arrays keep config mutations local and no filesystem membership is cached.
|
|
19
17
|
* @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.
|
|
@@ -5,19 +5,17 @@ const createBriefFiles_1 = require("../../createBriefFiles");
|
|
|
5
5
|
const createNarrativeUnitFiles_1 = require("../../createNarrativeUnitFiles");
|
|
6
6
|
const createSettingsFiles_1 = require("../../createSettingsFiles");
|
|
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.
|
|
@@ -27,6 +25,6 @@ function createUnitFiles(layer, scope) {
|
|
|
27
25
|
return (0, createSettingsFiles_1.createSettingsFiles)();
|
|
28
26
|
if (layer === "brief")
|
|
29
27
|
return (0, createBriefFiles_1.createBriefFiles)();
|
|
30
|
-
return (0, createNarrativeUnitFiles_1.createNarrativeUnitFiles)(layer, scope);
|
|
28
|
+
return (0, createNarrativeUnitFiles_1.createNarrativeUnitFiles)({ layer, scope });
|
|
31
29
|
}
|
|
32
30
|
//# sourceMappingURL=createUnitFiles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUnitFiles.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/createUnitFiles.ts"],"names":[],"mappings":";;;AAEA,6DAA0D;AAC1D,6EAA0E;AAC1E,mEAAgE;AAEhE
|
|
1
|
+
{"version":3,"file":"createUnitFiles.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/createUnitFiles.ts"],"names":[],"mappings":";;;AAEA,6DAA0D;AAC1D,6EAA0E;AAC1E,mEAAgE;AAEhE;;;;;;;;;;;;;;;GAeG;AACH,yBACE,KAAoB,EACpB,KAAqB;IAErB,IAAI,KAAK,KAAK,UAAU;QAAE,OAAO,IAAA,yCAAmB,GAAE,CAAC;IACvD,IAAI,KAAK,KAAK,OAAO;QAAE,OAAO,IAAA,mCAAgB,GAAE,CAAC;IACjD,OAAO,IAAA,mDAAwB,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -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";
|
|
@@ -14,12 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BODY_ROOT"), exports);
|
|
17
18
|
__exportStar(require("./PACKAGE_DOCS_ROOT"), exports);
|
|
18
19
|
__exportStar(require("./assertProductionEvidenceSources"), exports);
|
|
19
20
|
__exportStar(require("./createContractDirectory"), exports);
|
|
20
21
|
__exportStar(require("./createContractRoot"), exports);
|
|
21
22
|
__exportStar(require("./createEvidenceFiles"), exports);
|
|
22
23
|
__exportStar(require("./createUnitFiles"), exports);
|
|
23
|
-
__exportStar(require("./passRoot"), exports);
|
|
24
24
|
__exportStar(require("./referenceLocation"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,oEAAkD;AAClD,4DAA0C;AAC1C,uDAAqC;AACrC,wDAAsC;AACtC,oDAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,sDAAoC;AACpC,oEAAkD;AAClD,4DAA0C;AAC1C,uDAAqC;AACrC,wDAAsC;AACtC,oDAAkC;AAClC,sDAAoC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import type { AuthoredPass } from "../../AuthoredPass";
|
|
2
1
|
/**
|
|
3
2
|
* Gives reference targets an explicit address in the graph's global space.
|
|
4
3
|
*
|
|
5
|
-
*
|
|
6
|
-
* distinct from a naturalness claim's working host; revision references select
|
|
7
|
-
* its frozen pre-revision snapshot.
|
|
4
|
+
* Every inherited reference selects the body, where each layer's authored text lives.
|
|
8
5
|
*
|
|
9
6
|
* File references use package-relative addresses. A claim that selects file
|
|
10
7
|
* hosts and a claim that selects section hosts read the same documents, and the
|
|
@@ -14,15 +11,15 @@ import type { AuthoredPass } from "../../AuthoredPass";
|
|
|
14
11
|
* a section host. A distinct address space keeps each annotation with the
|
|
15
12
|
* reference it answers.
|
|
16
13
|
*
|
|
17
|
-
* @evidence contracts/development/implementation.md#principled-implementation
|
|
14
|
+
* @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.
|
|
18
15
|
* @evidence contracts/development/implementation.md#clear-and-simple-structure Address qualification is centralized for coverage, lineage and settings references, keeping native binder address-space rules out of their semantic flag builders.
|
|
19
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The file/H2 address distinction follows native aggregate binding semantics; no citation is rewritten to match an expected answer
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains
|
|
16
|
+
* @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.
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains body targeting and why file references need a separate global address space.
|
|
21
18
|
* @evidence contracts/development/implementation.md#efficient-algorithms File mode maps n selectors and their total text length p into qualified paths in O(n + p) work/storage; H2 mode constructs only its root and reuses the supplied files array.
|
|
22
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Coverage and lineage share this address rule, and H2 mode reuses the input selector array; there is no cache that could incorrectly equate mutable files arrays
|
|
19
|
+
* @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.
|
|
23
20
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned root/files record; file mode owns n new strings while H2 mode retains the caller array reference, with no filesystem handle or running task.
|
|
24
21
|
*/
|
|
25
|
-
export declare function referenceLocation(files: string[],
|
|
22
|
+
export declare function referenceLocation(files: string[], symbol?: "file" | "h2"): {
|
|
26
23
|
root: string;
|
|
27
24
|
files: string[];
|
|
28
25
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.referenceLocation = referenceLocation;
|
|
4
|
-
const
|
|
4
|
+
const BODY_ROOT_1 = require("./BODY_ROOT");
|
|
5
5
|
/**
|
|
6
6
|
* Gives reference targets an explicit address in the graph's global space.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* distinct from a naturalness claim's working host; revision references select
|
|
10
|
-
* its frozen pre-revision snapshot.
|
|
8
|
+
* Every inherited reference selects the body, where each layer's authored text lives.
|
|
11
9
|
*
|
|
12
10
|
* File references use package-relative addresses. A claim that selects file
|
|
13
11
|
* hosts and a claim that selects section hosts read the same documents, and the
|
|
@@ -17,23 +15,20 @@ const PACKAGE_DOCS_ROOT_1 = require("./PACKAGE_DOCS_ROOT");
|
|
|
17
15
|
* a section host. A distinct address space keeps each annotation with the
|
|
18
16
|
* reference it answers.
|
|
19
17
|
*
|
|
20
|
-
* @evidence contracts/development/implementation.md#principled-implementation
|
|
18
|
+
* @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.
|
|
21
19
|
* @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.
|
|
22
|
-
* @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
|
|
23
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains
|
|
20
|
+
* @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.
|
|
21
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose explains body targeting and why file references need a separate global address space.
|
|
24
22
|
* @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.
|
|
25
|
-
* @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
|
|
23
|
+
* @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.
|
|
26
24
|
* @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.
|
|
27
25
|
*/
|
|
28
|
-
function referenceLocation(files,
|
|
26
|
+
function referenceLocation(files, symbol = "h2") {
|
|
29
27
|
if (symbol === "file")
|
|
30
28
|
return {
|
|
31
29
|
root: ".",
|
|
32
|
-
files: files.map((file) => `${
|
|
30
|
+
files: files.map((file) => `${BODY_ROOT_1.BODY_ROOT}/${file}`),
|
|
33
31
|
};
|
|
34
|
-
return {
|
|
35
|
-
root: `${PACKAGE_DOCS_ROOT_1.PACKAGE_DOCS_ROOT}/${pass === "revision" ? "revision" : "body"}`,
|
|
36
|
-
files,
|
|
37
|
-
};
|
|
32
|
+
return { root: BODY_ROOT_1.BODY_ROOT, files };
|
|
38
33
|
}
|
|
39
34
|
//# sourceMappingURL=referenceLocation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"referenceLocation.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/referenceLocation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"referenceLocation.js","sourceRoot":"","sources":["../../../../src/narrative/internal/utilities/referenceLocation.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AAExC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,2BACE,KAAe,EACf,MAAM,GAAkB,IAAI;IAK5B,IAAI,MAAM,KAAK,MAAM;QACnB,OAAO;YACL,IAAI,EAAE,GAAG;YACT,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAY,EAAU,EAAE,CAAC,GAAG,qBAAS,IAAI,IAAI,EAAE,CAAC;SACnE,CAAC;IACJ,OAAO,EAAE,IAAI,EAAE,qBAAS,EAAE,KAAK,EAAE,CAAC;AACpC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automovie/evidence",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Evidence configuration and optional narrative lifecycle validation for AutoMovie productions",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.23.2"
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"types": "./lib/index.d.ts",
|
|
12
12
|
"default": "./lib/index.js"
|
|
13
13
|
},
|
|
14
|
+
"./internal": {
|
|
15
|
+
"types": "./lib/internal/index.d.ts",
|
|
16
|
+
"default": "./lib/internal/index.js"
|
|
17
|
+
},
|
|
14
18
|
"./package.json": "./package.json"
|
|
15
19
|
},
|
|
16
20
|
"keywords": [
|
|
@@ -37,11 +41,11 @@
|
|
|
37
41
|
"@wrtnlabs/evidence": "^0.8.2"
|
|
38
42
|
},
|
|
39
43
|
"devDependencies": {
|
|
40
|
-
"@ttsc/evidence": "^0.
|
|
41
|
-
"@ttsc/lint": "^0.
|
|
44
|
+
"@ttsc/evidence": "^0.37.1",
|
|
45
|
+
"@ttsc/lint": "^0.37.1",
|
|
42
46
|
"@types/node": "^22.19.17",
|
|
43
47
|
"rimraf": "^6.0.1",
|
|
44
|
-
"ttsc": "^0.
|
|
48
|
+
"ttsc": "^0.37.1",
|
|
45
49
|
"typescript": "^7.0.2"
|
|
46
50
|
},
|
|
47
51
|
"scripts": {
|
|
@@ -5,15 +5,16 @@
|
|
|
5
5
|
* one checklist under `contracts/development/` of the shared skills tree, answered in
|
|
6
6
|
* their doc comments: entities in `src/entities/` answer `entities.md`, laws,
|
|
7
7
|
* interactions and consequences in `src/laws/`, `src/interactions/` and
|
|
8
|
-
* `src/consequences/` answer `behaviors.md
|
|
9
|
-
* and scenes and films in `src/composition/` answer `composition.md
|
|
10
|
-
* the screenplay
|
|
8
|
+
* `src/consequences/` answer `behaviors.md`, a law naming the study it
|
|
9
|
+
* follows in its answer, and scenes and films in `src/composition/` answer `composition.md`, scenes
|
|
10
|
+
* citing the screenplay scene file or the sections and beats of it they
|
|
11
|
+
* realize and films citing the scene files they order. An omitted stage stays
|
|
11
12
|
* `"disabled"`, so ordinary coding and narrative-only work owe none of them.
|
|
12
13
|
*
|
|
13
14
|
* @evidence contracts/development/design.md#principled-representation One stage per contract mirrors the scaffold's development contracts, so a commission enables exactly the duties its code can establish.
|
|
14
15
|
* @evidence contracts/development/design.md#minimal-and-owned-surface Three optional fields with the narrative stage vocabulary; folders, populations and references belong to the claim factory.
|
|
15
16
|
* @evidence contracts/development/design.md#prohibited-design-shortcuts No stage is implied by file presence; an absent field is disabled.
|
|
16
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment names each stage's respondents,
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment names each stage's respondents, the scene and film citations and the disabled default.
|
|
17
18
|
*/
|
|
18
19
|
export interface IAutoMovieDevelopmentProps {
|
|
19
20
|
/**
|
|
@@ -24,17 +25,17 @@ export interface IAutoMovieDevelopmentProps {
|
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* Functions and methods under `src/laws/`, `src/interactions/` and
|
|
27
|
-
* `src/consequences/` answer `contracts/development/behaviors.md
|
|
28
|
-
*
|
|
28
|
+
* `src/consequences/` answer `contracts/development/behaviors.md`. A law
|
|
29
|
+
* names the study it follows in its answer; no study citation is required.
|
|
29
30
|
*/
|
|
30
31
|
behaviors?: "disabled" | "evidence";
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* Functions and methods under `src/composition/scenes/` answer
|
|
34
|
-
* `contracts/development/composition.md` and cite screenplay
|
|
35
|
-
* beats, every
|
|
36
|
-
* `src/composition/films/` answer it and cite the
|
|
37
|
-
*
|
|
35
|
+
* `contracts/development/composition.md` and cite a screenplay scene file
|
|
36
|
+
* or its sections and beats, every section and beat of which must be cited;
|
|
37
|
+
* those under `src/composition/films/` answer it and cite the scene files
|
|
38
|
+
* they order, every one of which must belong to a film.
|
|
38
39
|
*/
|
|
39
40
|
composition?: "disabled" | "evidence";
|
|
40
41
|
}
|
|
@@ -2,22 +2,23 @@ import type { IEvidenceClaim } from "@wrtnlabs/evidence";
|
|
|
2
2
|
|
|
3
3
|
import type { IAutoMovieDevelopmentProps } from "./IAutoMovieDevelopmentProps";
|
|
4
4
|
import type { IAutoMovieNarrativeProps } from "./IAutoMovieNarrativeProps";
|
|
5
|
+
import type { IAutoMovieNoNarrativeProps } from "./IAutoMovieNoNarrativeProps";
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Configures a project's engineering evidence and optional narrative workflow.
|
|
8
9
|
*
|
|
9
|
-
* @evidence contracts/development/design.md#principled-representation The absolute project location anchors the production's own contracts and an optional
|
|
10
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface One object contains the two contract locations, native engineering claims and optional narrative choices with disabled stage defaults.
|
|
10
|
+
* @evidence contracts/development/design.md#principled-representation The absolute project location anchors the production's own contracts and an optional skills directory, absolute or relative to that location, anchors the bundled shared ones; native claims configure engineering while an explicit narrative route adds creative relationships and independent-review structure, and mode none adds only the instruction-to-code relation.
|
|
11
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface One object contains the two contract locations, native engineering claims and optional narrative choices, a route with disabled stage defaults or none.
|
|
11
12
|
* @evidence contracts/development/design.md#prohibited-design-shortcuts No narrative mode is inferred from existing files or imposed on ordinary coding and standalone assets, and no workspace is inferred from the filesystem: a shared tree elsewhere is named explicitly.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation Members state path ownership, the shared tree's default,
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation Members state path ownership, the shared tree's default, that supplied claims add to the engineering defaults, and narrative opt-in behavior.
|
|
13
14
|
*/
|
|
14
15
|
export interface IAutoMovieEvidenceConfigProps {
|
|
15
16
|
/** Absolute project directory containing the production-owned contracts. */
|
|
16
17
|
location: string;
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
-
* contracts
|
|
20
|
+
* Directory of the shared `.agents/skills` tree holding the bundled
|
|
21
|
+
* contracts, absolute or relative to `location`.
|
|
21
22
|
*
|
|
22
23
|
* The engineering and development checklists (`contracts/development/**`)
|
|
23
24
|
* and the shared story contracts (`contracts/story/shared/**`) resolve here.
|
|
@@ -31,11 +32,11 @@ export interface IAutoMovieEvidenceConfigProps {
|
|
|
31
32
|
*/
|
|
32
33
|
skills?: string;
|
|
33
34
|
|
|
34
|
-
/**
|
|
35
|
+
/** Native claims added to the default source and test engineering claims. */
|
|
35
36
|
claims?: IEvidenceClaim[];
|
|
36
37
|
|
|
37
|
-
/** Omit for ordinary coding and standalone assets; provide for video writing. */
|
|
38
|
-
narrative?: IAutoMovieNarrativeProps;
|
|
38
|
+
/** Omit for ordinary coding and standalone assets; provide a route for video writing, or mode none for a screenplay no narrative pass writes. */
|
|
39
|
+
narrative?: IAutoMovieNarrativeProps | IAutoMovieNoNarrativeProps;
|
|
39
40
|
|
|
40
41
|
/** Entity, behavior and composition development contracts; omitted stages stay disabled. */
|
|
41
42
|
development?: IAutoMovieDevelopmentProps;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { IEvidenceClaim } from "@wrtnlabs/evidence";
|
|
2
2
|
|
|
3
3
|
import type { IProductionConstruction } from "./narrative/IProductionConstruction";
|
|
4
|
-
import type { IProductionLayerStages } from "./narrative/IProductionLayerStages";
|
|
5
4
|
import type { NarrativeScope } from "./narrative/NarrativeScope";
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -19,9 +18,6 @@ export interface IAutoMovieNarrativeProps {
|
|
|
19
18
|
/** Unspecified layers are disabled drafts; an omitted outline follows settings. */
|
|
20
19
|
construction?: Partial<IProductionConstruction>;
|
|
21
20
|
|
|
22
|
-
/** An unspecified screenplay expression stage is disabled for drafting. */
|
|
23
|
-
naturalness?: Partial<IProductionLayerStages>;
|
|
24
|
-
|
|
25
21
|
/** Defaults to the complete work; a pilot must identify its exact first part. */
|
|
26
22
|
scope?: NarrativeScope;
|
|
27
23
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IEvidenceClaim } from "@wrtnlabs/evidence";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Declares that no narrative layer is checked, for a screenplay no narrative
|
|
5
|
+
* pass writes.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/design.md#principled-representation The choice is named by its own mode rather than left to an omitted option, and with an enabled composition stage the code then realizes every instruction section that no narrative layer cites.
|
|
8
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The mode and additional native claims are the only members; layer stages and scope belong to the narrative routes.
|
|
9
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts No stage or scope field exists, so none can be written and silently ignored.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states when the choice applies and what each member does.
|
|
11
|
+
*/
|
|
12
|
+
export interface IAutoMovieNoNarrativeProps {
|
|
13
|
+
/** Checks no narrative layer; with an enabled composition stage, the composition and entities must realize every instruction section instead. */
|
|
14
|
+
mode: "none";
|
|
15
|
+
|
|
16
|
+
/** Additional native claims for the production's actual respondents. */
|
|
17
|
+
claims?: IEvidenceClaim[];
|
|
18
|
+
}
|
|
@@ -13,29 +13,33 @@ import { SKILLS_ROOT } from "./internal/SKILLS_ROOT";
|
|
|
13
13
|
* Each enabled stage selects the exported declarations of its source folders
|
|
14
14
|
* and requires each to answer every item of
|
|
15
15
|
* `contracts/development/<stage>.md` in its doc comment, read from the skills
|
|
16
|
-
* tree at `
|
|
16
|
+
* tree at `props.skills`, by default the production's own `.agents/skills`.
|
|
17
17
|
* Entities answer with their types, classes, functions and methods, because an
|
|
18
18
|
* entity is a class whose methods are its capabilities. Behaviors (laws,
|
|
19
|
-
* interactions and consequences)
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
19
|
+
* interactions and consequences) answer their checklist alone: most only
|
|
20
|
+
* compose installed actions and follow no study, and a study can serve the
|
|
21
|
+
* screenplay without any code, so neither direction of a study relation
|
|
22
|
+
* holds for every production. A law names the study it follows in its
|
|
23
|
+
* answer, which review judges.
|
|
24
|
+
* Scenes cite the screenplay scene file, or the sections and beats of it they
|
|
25
|
+
* realize, and every H2 section and H3 beat must be realized; films cite each
|
|
26
|
+
* scene file they order, and every scene file must belong to a film. With
|
|
27
|
+
* `instructions`, the composition and entities must also realize every
|
|
28
|
+
* instruction section, which no narrative layer then cites, with no
|
|
29
|
+
* exclusion. Entities answer their checklist alone too, because their
|
|
30
|
+
* settings citations are judged by review rather than required for every
|
|
31
|
+
* settings heading.
|
|
27
32
|
*
|
|
28
|
-
* @evidence contracts/development/implementation.md#principled-implementation Native TypeScript claims carry the checklist, and a second Markdown reference uses native target coverage to make the
|
|
29
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One table maps each population to its stage, folders, symbol kinds and cited population; disabled stages produce no claim, and the
|
|
33
|
+
* @evidence contracts/development/implementation.md#principled-implementation Native TypeScript claims carry the checklist, and a second Markdown reference uses native target coverage to make the screenplay-section-and-beat-to-scene and scene-file-to-film relations mechanical, while entities and behaviors carry the checklist alone; `instructions` adds the instruction-to-code relation with the same coverage, no checklist and no exclusion, because a user requirement cannot be waived by its realizer.
|
|
34
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One table maps each checklist population to its stage, folders, symbol kinds and cited population, and the one instruction relation, which has no checklist, follows it; disabled stages produce no claim, and the one props object carries the stages, the instruction switch and where the checklists are read.
|
|
30
35
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Source folders are the scaffold layout's documented locations, not fixture paths; nothing is inferred from file presence.
|
|
31
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states each stage's respondents, the relation it enforces and which skills tree holds the checklists; the
|
|
32
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Builds at most
|
|
36
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states each stage's respondents, the relation it enforces and which skills tree holds the checklists; the `skills` member states its form and default, and `instructions` when the code must realize every instruction section.
|
|
37
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Builds at most five fixed-size claim trees in constant time; it performs no discovery or file I/O.
|
|
33
38
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work Fresh objects are returned so one configuration's edits cannot reach another; there is no expensive shared work.
|
|
34
39
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned claims; nothing is retained.
|
|
35
40
|
*/
|
|
36
41
|
export function createDevelopmentContractClaims(
|
|
37
|
-
props: IAutoMovieDevelopmentProps
|
|
38
|
-
options: {
|
|
42
|
+
props: IAutoMovieDevelopmentProps & {
|
|
39
43
|
/**
|
|
40
44
|
* Reference root of the skills tree holding the stage checklists, relative
|
|
41
45
|
* to the directory of `evidence.config.ts` with `/` separators; `..`
|
|
@@ -44,6 +48,14 @@ export function createDevelopmentContractClaims(
|
|
|
44
48
|
* @default ".agents/skills"
|
|
45
49
|
*/
|
|
46
50
|
skills?: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Whether, with an enabled composition stage, the composition and entities
|
|
54
|
+
* must also realize every instruction section, as under narrative mode
|
|
55
|
+
* none, where no narrative layer cites them. The caller passes it only when
|
|
56
|
+
* `docs/instructions/` exists, because an empty reference fails the graph.
|
|
57
|
+
*/
|
|
58
|
+
instructions?: boolean;
|
|
47
59
|
} = {},
|
|
48
60
|
): IEvidenceClaim[] {
|
|
49
61
|
const screenplay: string[] = ["docs/body/screenplay/**/*.md"];
|
|
@@ -69,11 +81,6 @@ export function createDevelopmentContractClaims(
|
|
|
69
81
|
"src/consequences/**/*.ts",
|
|
70
82
|
],
|
|
71
83
|
symbol: ["function"],
|
|
72
|
-
cited: {
|
|
73
|
-
type: "markdown",
|
|
74
|
-
files: ["docs/research/**/*.md", "!docs/research/index.md"],
|
|
75
|
-
symbol: "file",
|
|
76
|
-
},
|
|
77
84
|
},
|
|
78
85
|
{
|
|
79
86
|
stage: "composition",
|
|
@@ -90,7 +97,7 @@ export function createDevelopmentContractClaims(
|
|
|
90
97
|
cited: { type: "markdown", files: screenplay, symbol: "file" },
|
|
91
98
|
},
|
|
92
99
|
];
|
|
93
|
-
|
|
100
|
+
const claims: IEvidenceClaim[] = populations
|
|
94
101
|
.filter((entry): boolean => props[entry.stage] === "evidence")
|
|
95
102
|
.map(
|
|
96
103
|
(entry): IEvidenceClaim => ({
|
|
@@ -101,7 +108,7 @@ export function createDevelopmentContractClaims(
|
|
|
101
108
|
reference: [
|
|
102
109
|
{
|
|
103
110
|
type: "markdown",
|
|
104
|
-
root:
|
|
111
|
+
root: props.skills ?? SKILLS_ROOT,
|
|
105
112
|
files: [`contracts/development/${entry.stage}.md`],
|
|
106
113
|
symbol: "h2",
|
|
107
114
|
checklist: true,
|
|
@@ -110,4 +117,18 @@ export function createDevelopmentContractClaims(
|
|
|
110
117
|
],
|
|
111
118
|
}),
|
|
112
119
|
);
|
|
120
|
+
if (props.instructions === true && props.composition === "evidence")
|
|
121
|
+
claims.push({
|
|
122
|
+
name: "the code realizes every instruction section",
|
|
123
|
+
type: "typescript",
|
|
124
|
+
files: ["src/composition/**/*.ts", "src/entities/**/*.ts"],
|
|
125
|
+
symbol: ["type", "function"],
|
|
126
|
+
reference: {
|
|
127
|
+
type: "markdown",
|
|
128
|
+
files: ["docs/instructions/*.md"],
|
|
129
|
+
symbol: "h2",
|
|
130
|
+
noEvidenceExclude: true,
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
return claims;
|
|
113
134
|
}
|