@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
package/README.md
CHANGED
|
@@ -23,15 +23,14 @@ export default createEvidenceConfig({ location: import.meta.dirname });
|
|
|
23
23
|
|
|
24
24
|
A declaration answers a checklist in its doc comment, with one `@evidence <checklist>#<item>` tag per item followed by the answer.
|
|
25
25
|
|
|
26
|
-
The bundled contracts are read from `<location>/.agents/skills`. A production inside a pnpm workspace, where the root holds the one shared skills tree,
|
|
26
|
+
The bundled contracts are read from `<location>/.agents/skills`. A production inside a pnpm workspace, where the root holds the one shared skills tree, names that tree, absolute or relative to `location`:
|
|
27
27
|
|
|
28
28
|
```ts
|
|
29
29
|
import { createEvidenceConfig } from "@automovie/evidence";
|
|
30
|
-
import { resolve } from "node:path";
|
|
31
30
|
|
|
32
31
|
export default createEvidenceConfig({
|
|
33
32
|
location: import.meta.dirname,
|
|
34
|
-
skills:
|
|
33
|
+
skills: "../../../.agents/skills",
|
|
35
34
|
});
|
|
36
35
|
```
|
|
37
36
|
|
|
@@ -47,18 +46,21 @@ export default createEvidenceConfig({
|
|
|
47
46
|
narrative: {
|
|
48
47
|
mode: "short",
|
|
49
48
|
construction: { brief: "evidence", screenplay: "evidence" },
|
|
50
|
-
naturalness: { screenplay: "evidence" },
|
|
51
49
|
},
|
|
52
50
|
});
|
|
53
51
|
```
|
|
54
52
|
|
|
55
|
-
`construction` checks how each layer is built from the one before it
|
|
53
|
+
`construction` checks how each layer is built from the one before it. Setting a layer to `"evidence"` turns its check on, and setting a finished layer back to `"disabled"` leaves the layers still running unaffected.
|
|
56
54
|
|
|
57
55
|
`short` is a brief under `docs/body/brief` followed by the screenplay, and `long`, the mode of a series, has four layers: settings, treatments, scripts and screenplay. A layer you leave out stays a disabled draft. The checks cover the complete work unless `scope` names the first part that a pilot covers.
|
|
58
56
|
|
|
57
|
+
The screenplay is one folder per film with one file per scene: `docs/body/screenplay/<film>/NNN-<scene>.md` for a short, and `docs/body/screenplay/NNN-part/NNN-episode/NNN-<scene>.md` for a series, where each scene file realizes one scene of its episode's script. Both depths are selected on either route.
|
|
58
|
+
|
|
59
|
+
`none` checks no narrative layer, for a screenplay no narrative pass writes, and takes no `construction` or `scope`.
|
|
60
|
+
|
|
59
61
|
### Research and development contracts
|
|
60
62
|
|
|
61
|
-
Add `research`
|
|
63
|
+
Add `research` to hold each study in `docs/research/` to the research contract, and `development` when it builds the film's entities, behaviors and scenes in code:
|
|
62
64
|
|
|
63
65
|
```ts
|
|
64
66
|
export default createEvidenceConfig({
|
|
@@ -77,13 +79,15 @@ export default createEvidenceConfig({
|
|
|
77
79
|
| `research` | Each study in `docs/research/` | `contracts/story/shared/principles/research.md` |
|
|
78
80
|
| `development.entities` | Exports under `src/entities/` | `contracts/development/entities.md` |
|
|
79
81
|
| `development.behaviors` | Exports under `src/laws/`, `src/interactions/` and `src/consequences/` | `contracts/development/behaviors.md`, each citing the study it follows |
|
|
80
|
-
| `development.composition` | Exports under `src/composition/` | `contracts/development/composition.md`, citing the screenplay
|
|
82
|
+
| `development.composition` | Exports under `src/composition/` | `contracts/development/composition.md`, citing the screenplay scene files, sections and beats they realize |
|
|
81
83
|
|
|
82
|
-
Every study must be cited by some behavior
|
|
84
|
+
Every study must be cited by some behavior. Every screenplay section and beat must be realized by some scene, and every scene file by the film that orders it. Under `narrative: { mode: "none" }` with `development.composition`, every section of `docs/instructions/` must be realized by some composition or entity too, with no exclusion, because no narrative layer cites them. An option you leave out stays disabled.
|
|
83
85
|
|
|
84
86
|
### Your own claims
|
|
85
87
|
|
|
86
|
-
A claim binds a set of declarations to the checklist they answer. Top-level `claims`
|
|
88
|
+
A claim binds a set of declarations to the checklist they answer. Top-level `claims` adds claims to the engineering defaults, and `narrative.claims` adds claims to the ones `narrative` configures. Both take `IEvidenceClaim[]` from `@wrtnlabs/evidence`.
|
|
89
|
+
|
|
90
|
+
`createEvidenceConfig` is the package's only entry. The `@automovie/evidence/internal` subpath serves this repository's own tests and tools and promises no stability.
|
|
87
91
|
|
|
88
92
|
## Run
|
|
89
93
|
|
|
@@ -6,8 +6,9 @@
|
|
|
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
8
|
* `src/consequences/` answer `behaviors.md` and cite the research they follow,
|
|
9
|
-
* and scenes and films in `src/composition/` answer `composition.md
|
|
10
|
-
* the screenplay
|
|
9
|
+
* 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.
|
|
@@ -29,10 +30,10 @@ export interface IAutoMovieDevelopmentProps {
|
|
|
29
30
|
behaviors?: "disabled" | "evidence";
|
|
30
31
|
/**
|
|
31
32
|
* Functions and methods under `src/composition/scenes/` answer
|
|
32
|
-
* `contracts/development/composition.md` and cite screenplay
|
|
33
|
-
* beats, every
|
|
34
|
-
* `src/composition/films/` answer it and cite the
|
|
35
|
-
*
|
|
33
|
+
* `contracts/development/composition.md` and cite a screenplay scene file
|
|
34
|
+
* or its sections and beats, every section and beat of which must be cited;
|
|
35
|
+
* those under `src/composition/films/` answer it and cite the scene files
|
|
36
|
+
* they order, every one of which must belong to a film.
|
|
36
37
|
*/
|
|
37
38
|
composition?: "disabled" | "evidence";
|
|
38
39
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import type { IEvidenceClaim } from "@wrtnlabs/evidence";
|
|
2
2
|
import type { IAutoMovieDevelopmentProps } from "./IAutoMovieDevelopmentProps";
|
|
3
3
|
import type { IAutoMovieNarrativeProps } from "./IAutoMovieNarrativeProps";
|
|
4
|
+
import type { IAutoMovieNoNarrativeProps } from "./IAutoMovieNoNarrativeProps";
|
|
4
5
|
/**
|
|
5
6
|
* Configures a project's engineering evidence and optional narrative workflow.
|
|
6
7
|
*
|
|
7
|
-
* @evidence contracts/development/design.md#principled-representation The absolute project location anchors the production's own contracts and an optional
|
|
8
|
-
* @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.
|
|
8
|
+
* @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.
|
|
9
|
+
* @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.
|
|
9
10
|
* @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.
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation Members state path ownership, the shared tree's default,
|
|
11
|
+
* @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.
|
|
11
12
|
*/
|
|
12
13
|
export interface IAutoMovieEvidenceConfigProps {
|
|
13
14
|
/** Absolute project directory containing the production-owned contracts. */
|
|
14
15
|
location: string;
|
|
15
16
|
/**
|
|
16
|
-
*
|
|
17
|
-
* contracts
|
|
17
|
+
* Directory of the shared `.agents/skills` tree holding the bundled
|
|
18
|
+
* contracts, absolute or relative to `location`.
|
|
18
19
|
*
|
|
19
20
|
* The engineering and development checklists (`contracts/development/**`)
|
|
20
21
|
* and the shared story contracts (`contracts/story/shared/**`) resolve here.
|
|
@@ -27,10 +28,10 @@ export interface IAutoMovieEvidenceConfigProps {
|
|
|
27
28
|
* @default path.join(location, ".agents", "skills")
|
|
28
29
|
*/
|
|
29
30
|
skills?: string;
|
|
30
|
-
/**
|
|
31
|
+
/** Native claims added to the default source and test engineering claims. */
|
|
31
32
|
claims?: IEvidenceClaim[];
|
|
32
|
-
/** Omit for ordinary coding and standalone assets; provide for video writing. */
|
|
33
|
-
narrative?: IAutoMovieNarrativeProps;
|
|
33
|
+
/** Omit for ordinary coding and standalone assets; provide a route for video writing, or mode none for a screenplay no narrative pass writes. */
|
|
34
|
+
narrative?: IAutoMovieNarrativeProps | IAutoMovieNoNarrativeProps;
|
|
34
35
|
/** Entity, behavior and composition development contracts; omitted stages stay disabled. */
|
|
35
36
|
development?: IAutoMovieDevelopmentProps;
|
|
36
37
|
/** Research studies answer the story research principles when `"evidence"`; disabled by default. */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { IEvidenceClaim } from "@wrtnlabs/evidence";
|
|
2
2
|
import type { IProductionConstruction } from "./narrative/IProductionConstruction";
|
|
3
|
-
import type { IProductionLayerStages } from "./narrative/IProductionLayerStages";
|
|
4
3
|
import type { NarrativeScope } from "./narrative/NarrativeScope";
|
|
5
4
|
/**
|
|
6
5
|
* Opts into narrative evidence using native claims and selected authored stages.
|
|
@@ -15,8 +14,6 @@ export interface IAutoMovieNarrativeProps {
|
|
|
15
14
|
mode: "long" | "short";
|
|
16
15
|
/** Unspecified layers are disabled drafts; an omitted outline follows settings. */
|
|
17
16
|
construction?: Partial<IProductionConstruction>;
|
|
18
|
-
/** An unspecified screenplay expression stage is disabled for drafting. */
|
|
19
|
-
naturalness?: Partial<IProductionLayerStages>;
|
|
20
17
|
/** Defaults to the complete work; a pilot must identify its exact first part. */
|
|
21
18
|
scope?: NarrativeScope;
|
|
22
19
|
/** Additional native claims for the production's actual respondents. */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IEvidenceClaim } from "@wrtnlabs/evidence";
|
|
2
|
+
/**
|
|
3
|
+
* Declares that no narrative layer is checked, for a screenplay no narrative
|
|
4
|
+
* pass writes.
|
|
5
|
+
*
|
|
6
|
+
* @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.
|
|
7
|
+
* @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.
|
|
8
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts No stage or scope field exists, so none can be written and silently ignored.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states when the choice applies and what each member does.
|
|
10
|
+
*/
|
|
11
|
+
export interface IAutoMovieNoNarrativeProps {
|
|
12
|
+
/** Checks no narrative layer; with an enabled composition stage, the composition and entities must realize every instruction section instead. */
|
|
13
|
+
mode: "none";
|
|
14
|
+
/** Additional native claims for the production's actual respondents. */
|
|
15
|
+
claims?: IEvidenceClaim[];
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMovieNoNarrativeProps.js","sourceRoot":"","sources":["../src/IAutoMovieNoNarrativeProps.ts"],"names":[],"mappings":""}
|
|
@@ -6,27 +6,30 @@ import type { IAutoMovieDevelopmentProps } from "./IAutoMovieDevelopmentProps";
|
|
|
6
6
|
* Each enabled stage selects the exported declarations of its source folders
|
|
7
7
|
* and requires each to answer every item of
|
|
8
8
|
* `contracts/development/<stage>.md` in its doc comment, read from the skills
|
|
9
|
-
* tree at `
|
|
9
|
+
* tree at `props.skills`, by default the production's own `.agents/skills`.
|
|
10
10
|
* Entities answer with their types, classes, functions and methods, because an
|
|
11
11
|
* entity is a class whose methods are its capabilities. Behaviors (laws,
|
|
12
12
|
* interactions and consequences) also cite the research studies they follow,
|
|
13
13
|
* and every study in `docs/research/` apart from its index must be cited, so a
|
|
14
14
|
* behavior cannot be written without its study and no study goes unused.
|
|
15
|
-
* Scenes cite the screenplay
|
|
16
|
-
* and H3 beat must be realized; films cite
|
|
17
|
-
* and every
|
|
18
|
-
*
|
|
19
|
-
*
|
|
15
|
+
* Scenes cite the screenplay scene file, or the sections and beats of it they
|
|
16
|
+
* realize, and every H2 section and H3 beat must be realized; films cite each
|
|
17
|
+
* scene file they order, and every scene file must belong to a film. With
|
|
18
|
+
* `instructions`, the composition and entities must also realize every
|
|
19
|
+
* instruction section, which no narrative layer then cites, with no
|
|
20
|
+
* exclusion. Entities answer their checklist alone, because their settings
|
|
21
|
+
* citations are judged by review rather than required for every settings
|
|
22
|
+
* heading.
|
|
20
23
|
*
|
|
21
|
-
* @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 study-to-behavior, screenplay-to-scene and
|
|
22
|
-
* @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
|
|
24
|
+
* @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 study-to-behavior, screenplay-section-and-beat-to-scene and scene-file-to-film relations mechanical; `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.
|
|
25
|
+
* @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.
|
|
23
26
|
* @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.
|
|
24
|
-
* @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
|
|
25
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Builds at most
|
|
27
|
+
* @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.
|
|
28
|
+
* @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.
|
|
26
29
|
* @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.
|
|
27
30
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned claims; nothing is retained.
|
|
28
31
|
*/
|
|
29
|
-
export declare function createDevelopmentContractClaims(props
|
|
32
|
+
export declare function createDevelopmentContractClaims(props?: IAutoMovieDevelopmentProps & {
|
|
30
33
|
/**
|
|
31
34
|
* Reference root of the skills tree holding the stage checklists, relative
|
|
32
35
|
* to the directory of `evidence.config.ts` with `/` separators; `..`
|
|
@@ -35,4 +38,11 @@ export declare function createDevelopmentContractClaims(props: IAutoMovieDevelop
|
|
|
35
38
|
* @default ".agents/skills"
|
|
36
39
|
*/
|
|
37
40
|
skills?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Whether, with an enabled composition stage, the composition and entities
|
|
43
|
+
* must also realize every instruction section, as under narrative mode
|
|
44
|
+
* none, where no narrative layer cites them. The caller passes it only when
|
|
45
|
+
* `docs/instructions/` exists, because an empty reference fails the graph.
|
|
46
|
+
*/
|
|
47
|
+
instructions?: boolean;
|
|
38
48
|
}): IEvidenceClaim[];
|
|
@@ -8,27 +8,30 @@ const SKILLS_ROOT_1 = require("./internal/SKILLS_ROOT");
|
|
|
8
8
|
* Each enabled stage selects the exported declarations of its source folders
|
|
9
9
|
* and requires each to answer every item of
|
|
10
10
|
* `contracts/development/<stage>.md` in its doc comment, read from the skills
|
|
11
|
-
* tree at `
|
|
11
|
+
* tree at `props.skills`, by default the production's own `.agents/skills`.
|
|
12
12
|
* Entities answer with their types, classes, functions and methods, because an
|
|
13
13
|
* entity is a class whose methods are its capabilities. Behaviors (laws,
|
|
14
14
|
* interactions and consequences) also cite the research studies they follow,
|
|
15
15
|
* and every study in `docs/research/` apart from its index must be cited, so a
|
|
16
16
|
* behavior cannot be written without its study and no study goes unused.
|
|
17
|
-
* Scenes cite the screenplay
|
|
18
|
-
* and H3 beat must be realized; films cite
|
|
19
|
-
* and every
|
|
20
|
-
*
|
|
21
|
-
*
|
|
17
|
+
* Scenes cite the screenplay scene file, or the sections and beats of it they
|
|
18
|
+
* realize, and every H2 section and H3 beat must be realized; films cite each
|
|
19
|
+
* scene file they order, and every scene file must belong to a film. With
|
|
20
|
+
* `instructions`, the composition and entities must also realize every
|
|
21
|
+
* instruction section, which no narrative layer then cites, with no
|
|
22
|
+
* exclusion. Entities answer their checklist alone, because their settings
|
|
23
|
+
* citations are judged by review rather than required for every settings
|
|
24
|
+
* heading.
|
|
22
25
|
*
|
|
23
|
-
* @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 study-to-behavior, screenplay-to-scene and
|
|
24
|
-
* @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
|
|
26
|
+
* @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 study-to-behavior, screenplay-section-and-beat-to-scene and scene-file-to-film relations mechanical; `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.
|
|
27
|
+
* @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.
|
|
25
28
|
* @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.
|
|
26
|
-
* @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
|
|
27
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Builds at most
|
|
29
|
+
* @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.
|
|
30
|
+
* @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.
|
|
28
31
|
* @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.
|
|
29
32
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned claims; nothing is retained.
|
|
30
33
|
*/
|
|
31
|
-
function createDevelopmentContractClaims(props
|
|
34
|
+
function createDevelopmentContractClaims(props = {}) {
|
|
32
35
|
const screenplay = ["docs/body/screenplay/**/*.md"];
|
|
33
36
|
const populations = [
|
|
34
37
|
{
|
|
@@ -67,7 +70,7 @@ function createDevelopmentContractClaims(props, options = {}) {
|
|
|
67
70
|
cited: { type: "markdown", files: screenplay, symbol: "file" },
|
|
68
71
|
},
|
|
69
72
|
];
|
|
70
|
-
|
|
73
|
+
const claims = populations
|
|
71
74
|
.filter((entry) => props[entry.stage] === "evidence")
|
|
72
75
|
.map((entry) => ({
|
|
73
76
|
name: entry.name,
|
|
@@ -77,7 +80,7 @@ function createDevelopmentContractClaims(props, options = {}) {
|
|
|
77
80
|
reference: [
|
|
78
81
|
{
|
|
79
82
|
type: "markdown",
|
|
80
|
-
root:
|
|
83
|
+
root: props.skills ?? SKILLS_ROOT_1.SKILLS_ROOT,
|
|
81
84
|
files: [`contracts/development/${entry.stage}.md`],
|
|
82
85
|
symbol: "h2",
|
|
83
86
|
checklist: true,
|
|
@@ -85,5 +88,19 @@ function createDevelopmentContractClaims(props, options = {}) {
|
|
|
85
88
|
...(entry.cited === undefined ? [] : [structuredClone(entry.cited)]),
|
|
86
89
|
],
|
|
87
90
|
}));
|
|
91
|
+
if (props.instructions === true && props.composition === "evidence")
|
|
92
|
+
claims.push({
|
|
93
|
+
name: "the code realizes every instruction section",
|
|
94
|
+
type: "typescript",
|
|
95
|
+
files: ["src/composition/**/*.ts", "src/entities/**/*.ts"],
|
|
96
|
+
symbol: ["type", "function"],
|
|
97
|
+
reference: {
|
|
98
|
+
type: "markdown",
|
|
99
|
+
files: ["docs/instructions/*.md"],
|
|
100
|
+
symbol: "h2",
|
|
101
|
+
noEvidenceExclude: true,
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
return claims;
|
|
88
105
|
}
|
|
89
106
|
//# sourceMappingURL=createDevelopmentContractClaims.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDevelopmentContractClaims.js","sourceRoot":"","sources":["../src/createDevelopmentContractClaims.ts"],"names":[],"mappings":";;;AAOA,wDAAqD;AAErD
|
|
1
|
+
{"version":3,"file":"createDevelopmentContractClaims.js","sourceRoot":"","sources":["../src/createDevelopmentContractClaims.ts"],"names":[],"mappings":";;;AAOA,wDAAqD;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,yCACE,KAAK,GAiBD,EAAE;IAEN,MAAM,UAAU,GAAa,CAAC,8BAA8B,CAAC,CAAC;IAC9D,MAAM,WAAW,GAMX;QACJ;YACE,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,CAAC,sBAAsB,CAAC;YAC/B,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;SAC7B;QACD;YACE,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE;gBACL,kBAAkB;gBAClB,0BAA0B;gBAC1B,0BAA0B;aAC3B;YACD,MAAM,EAAE,CAAC,UAAU,CAAC;YACpB,KAAK,EAAE;gBACL,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,CAAC,uBAAuB,EAAE,yBAAyB,CAAC;gBAC3D,MAAM,EAAE,MAAM;aACf;SACF;QACD;YACE,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,CAAC,gCAAgC,CAAC;YACzC,MAAM,EAAE,CAAC,UAAU,CAAC;YACpB,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;SACrE;QACD;YACE,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,CAAC,+BAA+B,CAAC;YACxC,MAAM,EAAE,CAAC,UAAU,CAAC;YACpB,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE;SAC/D;KACF,CAAC;IACF,MAAM,MAAM,GAAqB,WAAW;SACzC,MAAM,CAAC,CAAC,KAAK,EAAW,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,UAAU,CAAC;SAC7D,GAAG,CACF,CAAC,KAAK,EAAkB,EAAE,CAAC,CAAC;QAC1B,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC;QACvB,MAAM,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC;QACzB,SAAS,EAAE;YACT;gBACE,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,KAAK,CAAC,MAAM,IAAI,yBAAW;gBACjC,KAAK,EAAE,CAAC,yBAAyB,KAAK,CAAC,KAAK,KAAK,CAAC;gBAClD,MAAM,EAAE,IAAI;gBACZ,SAAS,EAAE,IAAI;aAChB;YACD,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;SACrE;KACF,CAAC,CACH,CAAC;IACJ,IAAI,KAAK,CAAC,YAAY,KAAK,IAAI,IAAI,KAAK,CAAC,WAAW,KAAK,UAAU;QACjE,MAAM,CAAC,IAAI,CAAC;YACV,IAAI,EAAE,6CAA6C;YACnD,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,CAAC,yBAAyB,EAAE,sBAAsB,CAAC;YAC1D,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC;YAC5B,SAAS,EAAE;gBACT,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,CAAC,wBAAwB,CAAC;gBACjC,MAAM,EAAE,IAAI;gBACZ,iBAAiB,EAAE,IAAI;aACxB;SACF,CAAC,CAAC;IACL,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -7,12 +7,12 @@ import type { IAutoMovieEvidenceConfigProps } from "./IAutoMovieEvidenceConfigPr
|
|
|
7
7
|
* narrative factories, which keep production-owned work and language contracts
|
|
8
8
|
* under `<location>/docs/contracts`, and its root relative to `location` goes to the default
|
|
9
9
|
* engineering, development and research claims. Caller-supplied `claims` are
|
|
10
|
-
*
|
|
10
|
+
* added after the defaults as written, so they name their own root.
|
|
11
11
|
*
|
|
12
12
|
* @evidence contracts/development/implementation.md#principled-implementation An absolute project location and a resolved absolute shared skills tree anchor the native engineering defaults and optional narrative selectors; native Evidence resolves the relative root against the configuration directory, the location, and caller-supplied claims are cloned before composition.
|
|
13
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One options object selects engineering alone or delegates narrative claim composition to createProductionConfig; resolveSkillsDirectory and createReferenceRoot own the shared-tree default, validation and spelling.
|
|
13
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One options object selects engineering alone, engineering whose code realizes every instruction section when narrative mode is none and `docs/instructions` exists, or delegates narrative claim composition to createProductionConfig; resolveSkillsDirectory and createReferenceRoot own the shared-tree default, validation and spelling.
|
|
14
14
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The returned object is an ordinary native configuration; this function neither evaluates diagnostics nor grants creative approval, an omitted skills tree yields exactly the standalone roots, and assertProductionContractLayout refuses a production still keeping its own contracts in the retired skills location rather than letting their duties vanish.
|
|
15
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two legacy-layout existence probes precede work; engineering creation clones supplied claims
|
|
15
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Two legacy-layout existence probes precede work, and mode none adds one instruction-directory probe; engineering creation allocates fixed defaults and clones supplied claims after them; narrative creation additionally discovers current contract files and expands a fixed number of layer families.
|
|
16
16
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work The shared tree is resolved once per call and reused by every factory; the layout guard repeats its two probes inside a narrative build so createProductionConfig called directly stays guarded; each call owns fresh option and claim copies, and filesystem-dependent narrative composition is not cached across calls.
|
|
17
17
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned configuration; this function retains no registry, native process or open resource.
|
|
18
18
|
* @evidence contracts/development/common.md#meaningful-documentation The comment states how the shared tree reaches each factory and that supplied claims keep their own root; the input types explain routes, disabled stage defaults and additional native claims.
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.createEvidenceConfig = createEvidenceConfig;
|
|
7
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
7
8
|
const node_path_1 = __importDefault(require("node:path"));
|
|
8
9
|
const createDevelopmentContractClaims_1 = require("./createDevelopmentContractClaims");
|
|
9
10
|
const createEngineeringClaims_1 = require("./createEngineeringClaims");
|
|
@@ -19,32 +20,42 @@ const createProductionConfig_1 = require("./narrative/createProductionConfig");
|
|
|
19
20
|
* narrative factories, which keep production-owned work and language contracts
|
|
20
21
|
* under `<location>/docs/contracts`, and its root relative to `location` goes to the default
|
|
21
22
|
* engineering, development and research claims. Caller-supplied `claims` are
|
|
22
|
-
*
|
|
23
|
+
* added after the defaults as written, so they name their own root.
|
|
23
24
|
*
|
|
24
25
|
* @evidence contracts/development/implementation.md#principled-implementation An absolute project location and a resolved absolute shared skills tree anchor the native engineering defaults and optional narrative selectors; native Evidence resolves the relative root against the configuration directory, the location, and caller-supplied claims are cloned before composition.
|
|
25
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One options object selects engineering alone or delegates narrative claim composition to createProductionConfig; resolveSkillsDirectory and createReferenceRoot own the shared-tree default, validation and spelling.
|
|
26
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One options object selects engineering alone, engineering whose code realizes every instruction section when narrative mode is none and `docs/instructions` exists, or delegates narrative claim composition to createProductionConfig; resolveSkillsDirectory and createReferenceRoot own the shared-tree default, validation and spelling.
|
|
26
27
|
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The returned object is an ordinary native configuration; this function neither evaluates diagnostics nor grants creative approval, an omitted skills tree yields exactly the standalone roots, and assertProductionContractLayout refuses a production still keeping its own contracts in the retired skills location rather than letting their duties vanish.
|
|
27
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two legacy-layout existence probes precede work; engineering creation clones supplied claims
|
|
28
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Two legacy-layout existence probes precede work, and mode none adds one instruction-directory probe; engineering creation allocates fixed defaults and clones supplied claims after them; narrative creation additionally discovers current contract files and expands a fixed number of layer families.
|
|
28
29
|
* @evidence contracts/development/implementation.md#reuse-equivalent-work The shared tree is resolved once per call and reused by every factory; the layout guard repeats its two probes inside a narrative build so createProductionConfig called directly stays guarded; each call owns fresh option and claim copies, and filesystem-dependent narrative composition is not cached across calls.
|
|
29
30
|
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns the returned configuration; this function retains no registry, native process or open resource.
|
|
30
31
|
* @evidence contracts/development/common.md#meaningful-documentation The comment states how the shared tree reaches each factory and that supplied claims keep their own root; the input types explain routes, disabled stage defaults and additional native claims.
|
|
31
32
|
*/
|
|
32
33
|
function createEvidenceConfig(props) {
|
|
33
34
|
if (!node_path_1.default.isAbsolute(props.location))
|
|
34
|
-
throw new Error("Evidence location must be an absolute project directory.");
|
|
35
|
+
throw new Error("Evidence location must be an absolute project directory, such as import.meta.dirname.");
|
|
35
36
|
(0, assertProductionContractLayout_1.assertProductionContractLayout)(props.location);
|
|
36
37
|
const skills = (0, resolveSkillsDirectory_1.resolveSkillsDirectory)(props);
|
|
37
38
|
const root = (0, createReferenceRoot_1.createReferenceRoot)(props.location, skills);
|
|
38
|
-
const claims =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
const claims = [
|
|
40
|
+
...(0, createEngineeringClaims_1.createEngineeringClaims)({ skills: root }),
|
|
41
|
+
...structuredClone(props.claims ?? []),
|
|
42
|
+
];
|
|
43
|
+
claims.push(...(0, createDevelopmentContractClaims_1.createDevelopmentContractClaims)({
|
|
44
|
+
...props.development,
|
|
42
45
|
skills: root,
|
|
46
|
+
instructions: props.narrative?.mode === "none" &&
|
|
47
|
+
node_fs_1.default.existsSync(node_path_1.default.join(props.location, "docs", "instructions")),
|
|
43
48
|
}));
|
|
44
49
|
if (props.research === "evidence")
|
|
45
50
|
claims.push(...(0, createResearchClaims_1.createResearchClaims)({ skills: root }));
|
|
46
51
|
if (props.narrative === undefined)
|
|
47
52
|
return { severity: "error", claims };
|
|
53
|
+
// Mode none adds only the caller's narrative claims; there is no layer to build.
|
|
54
|
+
if (props.narrative.mode === "none")
|
|
55
|
+
return {
|
|
56
|
+
severity: "error",
|
|
57
|
+
claims: [...claims, ...structuredClone(props.narrative.claims ?? [])],
|
|
58
|
+
};
|
|
48
59
|
return (0, createProductionConfig_1.createProductionConfig)({
|
|
49
60
|
location: props.location,
|
|
50
61
|
skills,
|
|
@@ -57,10 +68,6 @@ function createEvidenceConfig(props) {
|
|
|
57
68
|
screenplay: "disabled",
|
|
58
69
|
...structuredClone(props.narrative.construction ?? {}),
|
|
59
70
|
},
|
|
60
|
-
naturalness: {
|
|
61
|
-
screenplay: "disabled",
|
|
62
|
-
...structuredClone(props.narrative.naturalness ?? {}),
|
|
63
|
-
},
|
|
64
71
|
supportClaims: claims,
|
|
65
72
|
claims: structuredClone(props.narrative.claims ?? []),
|
|
66
73
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createEvidenceConfig.js","sourceRoot":"","sources":["../src/createEvidenceConfig.ts"],"names":[],"mappings":";;;;;;AACA,0DAA6B;AAG7B,uFAAoF;AACpF,uEAAoE;AACpE,iEAA8D;AAC9D,8FAA2F;AAC3F,wEAAqE;AACrE,8EAA2E;AAC3E,+EAA4E;AAE5E;;;;;;;;;;;;;;;;GAgBG;AACH,8BACE,KAAoC;IAEpC,IAAI,CAAC,mBAAI,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC;QAClC,MAAM,IAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"createEvidenceConfig.js","sourceRoot":"","sources":["../src/createEvidenceConfig.ts"],"names":[],"mappings":";;;;;;AACA,sDAAyB;AACzB,0DAA6B;AAG7B,uFAAoF;AACpF,uEAAoE;AACpE,iEAA8D;AAC9D,8FAA2F;AAC3F,wEAAqE;AACrE,8EAA2E;AAC3E,+EAA4E;AAE5E;;;;;;;;;;;;;;;;GAgBG;AACH,8BACE,KAAoC;IAEpC,IAAI,CAAC,mBAAI,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC;QAClC,MAAM,IAAI,KAAK,CACb,uFAAuF,CACxF,CAAC;IACJ,IAAA,+DAA8B,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC/C,MAAM,MAAM,GAAW,IAAA,+CAAsB,EAAC,KAAK,CAAC,CAAC;IACrD,MAAM,IAAI,GAAW,IAAA,yCAAmB,EAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAEjE,MAAM,MAAM,GAAqB;QAC/B,GAAG,IAAA,iDAAuB,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAC5C,GAAG,eAAe,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC;KACvC,CAAC;IACF,MAAM,CAAC,IAAI,CACT,GAAG,IAAA,iEAA+B,EAAC;QACjC,GAAG,KAAK,CAAC,WAAW;QACpB,MAAM,EAAE,IAAI;QACZ,YAAY,EACV,KAAK,CAAC,SAAS,EAAE,IAAI,KAAK,MAAM;YAChC,iBAAE,CAAC,UAAU,CAAC,mBAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;KACnE,CAAC,CACH,CAAC;IACF,IAAI,KAAK,CAAC,QAAQ,KAAK,UAAU;QAC/B,MAAM,CAAC,IAAI,CAAC,GAAG,IAAA,2CAAoB,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACzD,IAAI,KAAK,CAAC,SAAS,KAAK,SAAS;QAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAExE,iFAAiF;IACjF,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,KAAK,MAAM;QACjC,OAAO;YACL,QAAQ,EAAE,OAAO;YACjB,MAAM,EAAE,CAAC,GAAG,MAAM,EAAE,GAAG,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;SACtE,CAAC;IAEJ,OAAO,IAAA,+CAAsB,EAAC;QAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,MAAM;QACN,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,IAAI;QAC1B,cAAc,EAAE,eAAe,CAC7B,KAAK,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CACnD;QACD,YAAY,EAAE;YACZ,QAAQ,EAAE,UAAU;YACpB,UAAU,EAAE,UAAU;YACtB,OAAO,EAAE,UAAU;YACnB,UAAU,EAAE,UAAU;YACtB,GAAG,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,YAAY,IAAI,EAAE,CAAC;SACvD;QACD,aAAa,EAAE,MAAM;QACrB,MAAM,EAAE,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,IAAI,EAAE,CAAC;KACtD,CAAC,CAAC;AACL,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export * from "./IAutoMovieDevelopmentProps";
|
|
2
|
-
export * from "./IAutoMovieEvidenceConfigProps";
|
|
3
|
-
export * from "./IAutoMovieNarrativeProps";
|
|
4
|
-
export * from "./createDevelopmentContractClaims";
|
|
5
|
-
export * from "./createEngineeringClaims";
|
|
6
1
|
export * from "./createEvidenceConfig";
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
2
|
+
export type * from "./IAutoMovieDevelopmentProps";
|
|
3
|
+
export type * from "./IAutoMovieEvidenceConfigProps";
|
|
4
|
+
export type * from "./IAutoMovieNarrativeProps";
|
|
5
|
+
export type * from "./IAutoMovieNoNarrativeProps";
|
|
6
|
+
export type * from "./narrative/IProductionConstruction";
|
|
7
|
+
export type * from "./narrative/NarrativeScope";
|
|
8
|
+
export type * from "./narrative/ProductionStage";
|
package/lib/index.js
CHANGED
|
@@ -14,13 +14,6 @@ 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
|
-
|
|
18
|
-
__exportStar(require("./IAutoMovieEvidenceConfigProps"), exports);
|
|
19
|
-
__exportStar(require("./IAutoMovieNarrativeProps"), exports);
|
|
20
|
-
__exportStar(require("./createDevelopmentContractClaims"), exports);
|
|
21
|
-
__exportStar(require("./createEngineeringClaims"), exports);
|
|
17
|
+
// The one entry a production needs: `createEvidenceConfig` and the types of its props.
|
|
22
18
|
__exportStar(require("./createEvidenceConfig"), exports);
|
|
23
|
-
__exportStar(require("./createResearchClaims"), exports);
|
|
24
|
-
__exportStar(require("./internal"), exports);
|
|
25
|
-
__exportStar(require("./narrative"), exports);
|
|
26
19
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uFAAuF;AACvF,yDAAuC"}
|
package/lib/internal/index.d.ts
CHANGED
|
@@ -5,3 +5,8 @@ export * from "./STORY_CONTRACTS";
|
|
|
5
5
|
export * from "./assertProductionContractLayout";
|
|
6
6
|
export * from "./createReferenceRoot";
|
|
7
7
|
export * from "./resolveSkillsDirectory";
|
|
8
|
+
export * from "../createDevelopmentContractClaims";
|
|
9
|
+
export * from "../createEngineeringClaims";
|
|
10
|
+
export * from "../createResearchClaims";
|
|
11
|
+
export * from "../narrative";
|
|
12
|
+
export * from "../narrative/internal";
|
package/lib/internal/index.js
CHANGED
|
@@ -14,6 +14,8 @@ 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
|
+
// Internal API for this repository's tests and tools; productions import only
|
|
18
|
+
// the package root's `createEvidenceConfig`, and nothing here is stable.
|
|
17
19
|
__exportStar(require("./IContractLocation"), exports);
|
|
18
20
|
__exportStar(require("./PRODUCTION_CONTRACTS"), exports);
|
|
19
21
|
__exportStar(require("./SKILLS_ROOT"), exports);
|
|
@@ -21,4 +23,9 @@ __exportStar(require("./STORY_CONTRACTS"), exports);
|
|
|
21
23
|
__exportStar(require("./assertProductionContractLayout"), exports);
|
|
22
24
|
__exportStar(require("./createReferenceRoot"), exports);
|
|
23
25
|
__exportStar(require("./resolveSkillsDirectory"), exports);
|
|
26
|
+
__exportStar(require("../createDevelopmentContractClaims"), exports);
|
|
27
|
+
__exportStar(require("../createEngineeringClaims"), exports);
|
|
28
|
+
__exportStar(require("../createResearchClaims"), exports);
|
|
29
|
+
__exportStar(require("../narrative"), exports);
|
|
30
|
+
__exportStar(require("../narrative/internal"), exports);
|
|
24
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,yDAAuC;AACvC,gDAA8B;AAC9B,oDAAkC;AAClC,mEAAiD;AACjD,wDAAsC;AACtC,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/internal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8EAA8E;AAC9E,yEAAyE;AACzE,sDAAoC;AACpC,yDAAuC;AACvC,gDAA8B;AAC9B,oDAAkC;AAClC,mEAAiD;AACjD,wDAAsC;AACtC,2DAAyC;AACzC,qEAAmD;AACnD,6DAA2C;AAC3C,0DAAwC;AACxC,+CAA6B;AAC7B,wDAAsC"}
|
|
@@ -3,20 +3,19 @@ import type { IContractLocation } from "./IContractLocation";
|
|
|
3
3
|
* Resolves the absolute shared skills tree holding the bundled contracts.
|
|
4
4
|
*
|
|
5
5
|
* An omitted `skills` is the standalone layout, the production's own
|
|
6
|
-
* `.agents/skills`. A
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* `.agents/skills`. A relative one resolves against `location`, never against
|
|
7
|
+
* the working directory, so a workspace production can write
|
|
8
|
+
* `"../../../.agents/skills"` and get the same tree from any process.
|
|
9
9
|
*
|
|
10
10
|
* @param contracts The production location and optional shared tree; read, not retained.
|
|
11
11
|
* @returns The absolute shared skills directory.
|
|
12
|
-
* @throws Error when a supplied `skills` is not absolute.
|
|
13
12
|
*
|
|
14
|
-
* @evidence contracts/development/implementation.md#principled-implementation Node's `path.
|
|
15
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns both the default and the
|
|
16
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A relative value is
|
|
17
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One
|
|
13
|
+
* @evidence contracts/development/implementation.md#principled-implementation Node's `path.resolve` anchors a relative value at the absolute production location, and `path.join` builds the default from the scaffold's `.agents/skills` layout.
|
|
14
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns both the default and the resolution rule, so the configuration entry, the narrative assertion and every shared contract lookup agree on the shared tree.
|
|
15
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A relative value is resolved against the production, never the working directory; no workspace layout is inferred from the filesystem.
|
|
16
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One path resolution or join, linear in the path length.
|
|
18
17
|
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
19
18
|
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the standalone default,
|
|
19
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the standalone default, how a relative value resolves, and the parameter and result.
|
|
21
20
|
*/
|
|
22
21
|
export declare function resolveSkillsDirectory(contracts: IContractLocation): string;
|
|
@@ -10,27 +10,24 @@ const SKILLS_ROOT_1 = require("./SKILLS_ROOT");
|
|
|
10
10
|
* Resolves the absolute shared skills tree holding the bundled contracts.
|
|
11
11
|
*
|
|
12
12
|
* An omitted `skills` is the standalone layout, the production's own
|
|
13
|
-
* `.agents/skills`. A
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* `.agents/skills`. A relative one resolves against `location`, never against
|
|
14
|
+
* the working directory, so a workspace production can write
|
|
15
|
+
* `"../../../.agents/skills"` and get the same tree from any process.
|
|
16
16
|
*
|
|
17
17
|
* @param contracts The production location and optional shared tree; read, not retained.
|
|
18
18
|
* @returns The absolute shared skills directory.
|
|
19
|
-
* @throws Error when a supplied `skills` is not absolute.
|
|
20
19
|
*
|
|
21
|
-
* @evidence contracts/development/implementation.md#principled-implementation Node's `path.
|
|
22
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns both the default and the
|
|
23
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A relative value is
|
|
24
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One
|
|
20
|
+
* @evidence contracts/development/implementation.md#principled-implementation Node's `path.resolve` anchors a relative value at the absolute production location, and `path.join` builds the default from the scaffold's `.agents/skills` layout.
|
|
21
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns both the default and the resolution rule, so the configuration entry, the narrative assertion and every shared contract lookup agree on the shared tree.
|
|
22
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A relative value is resolved against the production, never the working directory; no workspace layout is inferred from the filesystem.
|
|
23
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One path resolution or join, linear in the path length.
|
|
25
24
|
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A pure path computation coordinates no work across requests.
|
|
26
25
|
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Only the returned string outlives the call.
|
|
27
|
-
* @evidence contracts/development/common.md#meaningful-documentation States the standalone default,
|
|
26
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the standalone default, how a relative value resolves, and the parameter and result.
|
|
28
27
|
*/
|
|
29
28
|
function resolveSkillsDirectory(contracts) {
|
|
30
29
|
if (contracts.skills === undefined)
|
|
31
30
|
return node_path_1.default.join(contracts.location, ...SKILLS_ROOT_1.SKILLS_ROOT.split("/"));
|
|
32
|
-
|
|
33
|
-
throw new Error("Evidence skills must be an absolute directory.");
|
|
34
|
-
return contracts.skills;
|
|
31
|
+
return node_path_1.default.resolve(contracts.location, contracts.skills);
|
|
35
32
|
}
|
|
36
33
|
//# sourceMappingURL=resolveSkillsDirectory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveSkillsDirectory.js","sourceRoot":"","sources":["../../src/internal/resolveSkillsDirectory.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAG7B,+CAA4C;AAE5C
|
|
1
|
+
{"version":3,"file":"resolveSkillsDirectory.js","sourceRoot":"","sources":["../../src/internal/resolveSkillsDirectory.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAG7B,+CAA4C;AAE5C;;;;;;;;;;;;;;;;;;GAkBG;AACH,gCAAuC,SAA4B;IACjE,IAAI,SAAS,CAAC,MAAM,KAAK,SAAS;QAChC,OAAO,mBAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,GAAG,yBAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAClE,OAAO,mBAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;AAC5D,CAAC"}
|