@automovie/template 0.3.4 → 0.4.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 +8 -22
- package/generated/pnpm-workspace.json +5 -5
- package/generated/skills/3d-modeling/conditioning.md +3 -1
- package/generated/skills/3d-modeling/crafting/construction.md +29 -1
- package/generated/skills/3d-modeling/environments.md +47 -0
- package/generated/skills/3d-modeling/inspection.md +7 -4
- package/generated/skills/contracts/development/common.md +4 -6
- package/generated/skills/contracts/development/design.md +7 -17
- package/generated/skills/contracts/development/implementation.md +8 -36
- package/generated/skills/development/repair.md +2 -0
- package/generated/skills/documentation/SKILL.md +5 -5
- package/generated/skills/documentation/writing.md +2 -2
- package/generated/skills/motion/laws/authoring.md +2 -2
- package/generated/skills/motion/laws/contacts.md +6 -2
- package/generated/skills/motion/laws/transitions.md +14 -4
- package/generated/skills/motion/laws/variation.md +2 -2
- package/generated/skills/motion/laws/verification.md +7 -5
- package/generated/skills/multi-agent/continuing.md +5 -0
- package/generated/skills/prompting/SKILL.md +8 -22
- package/generated/skills/visual-debugging/correction-rounds.md +4 -0
- package/lib/IAutoMovieScaffoldProps.d.ts +12 -12
- package/lib/assertScaffoldProjectName.d.ts +8 -10
- package/lib/assertScaffoldProjectName.js +8 -10
- package/lib/assertScaffoldProjectName.js.map +1 -1
- package/lib/createAutoMovieScaffold.d.ts +23 -15
- package/lib/createAutoMovieScaffold.js +35 -18
- package/lib/createAutoMovieScaffold.js.map +1 -1
- package/lib/listAutoMovieScaffoldFiles.d.ts +8 -10
- package/lib/listAutoMovieScaffoldFiles.js +16 -12
- package/lib/listAutoMovieScaffoldFiles.js.map +1 -1
- package/lib/renderAutoMovieWorkspace.d.ts +8 -12
- package/lib/renderAutoMovieWorkspace.js +16 -14
- package/lib/renderAutoMovieWorkspace.js.map +1 -1
- package/lib/scaffoldSharedSkillPath.d.ts +13 -12
- package/lib/scaffoldSharedSkillPath.js +13 -12
- package/lib/scaffoldSharedSkillPath.js.map +1 -1
- package/package.json +6 -6
- package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +2 -0
- package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +3 -1
- package/scaffold/instructions/.agents/skills/3d-modeling/materials.md +11 -0
- package/scaffold/instructions/.agents/skills/audio/SKILL.md +1 -1
- package/scaffold/instructions/.agents/skills/audio/acquisition.md +5 -1
- package/scaffold/instructions/.agents/skills/audio/film-sound.md +3 -1
- package/scaffold/instructions/.agents/skills/audio/soundtrack.md +14 -0
- package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +4 -2
- package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/development/catalog.md +21 -0
- package/scaffold/instructions/.agents/skills/contracts/development/composition.md +37 -25
- package/scaffold/instructions/.agents/skills/contracts/development/entities.md +3 -1
- package/scaffold/instructions/.agents/skills/contracts/development/films.md +39 -0
- package/scaffold/instructions/.agents/skills/contracts/development/testing.md +21 -0
- package/scaffold/instructions/.agents/skills/contracts/story/principles/research.md +1 -1
- package/scaffold/instructions/.agents/skills/development/SKILL.md +2 -4
- package/scaffold/instructions/.agents/skills/development/entities.md +14 -2
- package/scaffold/instructions/.agents/skills/development/modules.md +16 -6
- package/scaffold/instructions/.agents/skills/development/source-layout.md +6 -6
- package/scaffold/instructions/.agents/skills/development/testing.md +1 -1
- package/scaffold/instructions/.agents/skills/evidence/configuration.md +2 -2
- package/scaffold/instructions/.agents/skills/motion/SKILL.md +4 -5
- package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +3 -3
- package/scaffold/instructions/.agents/skills/motion/compose/composition.md +37 -18
- package/scaffold/instructions/.agents/skills/motion/compose/refusals.md +2 -2
- package/scaffold/instructions/.agents/skills/motion/control-channels.md +4 -4
- package/scaffold/instructions/.agents/skills/motion/diffusion/SKILL.md +2 -2
- package/scaffold/instructions/.agents/skills/motion/judgment.md +7 -3
- package/scaffold/instructions/.agents/skills/motion/laws/SKILL.md +2 -3
- package/scaffold/instructions/.agents/skills/motion/laws/method-references.md +4 -2
- package/scaffold/instructions/.agents/skills/motion/performance.md +2 -2
- package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +6 -4
- package/scaffold/instructions/.agents/skills/motion/retargeting.md +1 -1
- package/scaffold/instructions/.agents/skills/motion/segment-review.md +1 -1
- package/scaffold/instructions/.agents/skills/motion/staging.md +12 -8
- package/scaffold/instructions/.agents/skills/multi-agent/$continuing.md +0 -0
- package/scaffold/instructions/.agents/skills/multi-agent/SKILL.md +8 -0
- package/scaffold/instructions/.agents/skills/production/SKILL.md +1 -2
- package/scaffold/instructions/.agents/skills/production/assembly.md +7 -5
- package/scaffold/instructions/.agents/skills/production/director.md +5 -5
- package/scaffold/instructions/.agents/skills/production/media-records.md +16 -1
- package/scaffold/instructions/.agents/skills/production/project-context.md +7 -13
- package/scaffold/instructions/.agents/skills/production/sustained-runs.md +3 -3
- package/scaffold/instructions/.agents/skills/production/workflow.md +1 -1
- package/scaffold/instructions/.agents/skills/review/delivery-review.md +4 -2
- package/scaffold/instructions/.agents/skills/review/source-review.md +3 -1
- package/scaffold/instructions/.agents/skills/story/answers.md +1 -1
- package/scaffold/instructions/.agents/skills/story/document-layout.md +2 -2
- package/scaffold/instructions/.agents/skills/story/layers/shots.md +1 -1
- package/scaffold/instructions/.agents/skills/story/planning/discovery.md +1 -1
- package/scaffold/instructions/.agents/skills/story/planning/research.md +2 -2
- package/scaffold/instructions/.agents/skills/story/workflow/routes.md +1 -1
- package/scaffold/instructions/.agents/skills/video/SKILL.md +1 -1
- package/scaffold/instructions/.agents/skills/video/diffusion/hints.md +1 -1
- package/scaffold/instructions/.agents/skills/video/direct-film.md +44 -9
- package/scaffold/instructions/.agents/skills/video/finishing.md +11 -3
- package/scaffold/instructions/.agents/skills/video/generated-film.md +1 -0
- package/scaffold/instructions/.agents/skills/video/requests.md +6 -2
- package/scaffold/instructions/AGENTS.md +21 -48
- package/scaffold/production/README.md +18 -99
- package/scaffold/production/package.json +3 -2
- package/scaffold/production/src/IFilm.ts +1 -6
- package/scaffold/production/src/IFilmProduction.ts +255 -31
- package/scaffold/production/src/clampProductionSeconds.ts +5 -8
- package/scaffold/production/src/composition/films/starter.ts +2 -7
- package/scaffold/production/src/executable/motionTake/IMotionTakeSource.ts +1 -2
- package/scaffold/production/src/executable/motionTake/assertMotionTakeBindings.ts +3 -10
- package/scaffold/production/src/executable/motionTake/collectMotionTakeFiles.ts +2 -6
- package/scaffold/production/src/executable/motionTake/hashMotionTakeFile.ts +2 -6
- package/scaffold/production/src/executable/motionTake/openMotionTake.ts +2 -6
- package/scaffold/production/src/executable/motionTake/readMotionTakeArtifact.ts +2 -6
- package/scaffold/production/src/executable/motionTake/readMotionTakeInstalledLock.ts +2 -6
- package/scaffold/production/src/executable/motionTake/readMotionTakePackageVersion.ts +2 -6
- package/scaffold/production/src/executable/motionTake/readMotionTakeSource.ts +2 -6
- package/scaffold/production/src/executable/motionTake/replayMotionTake.ts +2 -6
- package/scaffold/production/src/executable/motionTake/resolveMotionTakePath.ts +5 -12
- package/scaffold/production/src/executable/motionTake/verifyMotionTakeEditPrefix.ts +2 -6
- package/scaffold/production/src/executable/motionTake/writeMotionTakeArtifact.ts +2 -6
- package/scaffold/production/src/executable/recovery/node/artifact/archiveAutoMovieRecoveryModel.ts +12 -19
- package/scaffold/production/src/executable/recovery/node/artifact/createAutoMovieRecoveryArtifact.ts +13 -26
- package/scaffold/production/src/executable/recovery/node/artifact/writeAutoMovieRecoveryArtifact.ts +16 -22
- package/scaffold/production/src/executable/recovery/node/internal/IAutoMovieRecoveryMemoryUsage.ts +1 -2
- package/scaffold/production/src/executable/recovery/node/internal/RecoveryFileVectorTable.ts +11 -32
- package/scaffold/production/src/executable/recovery/node/internal/RecoveryFileVectorTableInput.ts +5 -14
- package/scaffold/production/src/executable/recovery/node/internal/createRecoveryFileVectorTable.ts +6 -13
- package/scaffold/production/src/executable/recovery/node/internal/observeRecoveryAtlas.ts +16 -24
- package/scaffold/production/src/executable/recovery/node/internal/readAutoMovieRecoveryBoundedFile.ts +9 -17
- package/scaffold/production/src/executable/recovery/node/internal/readRecoveryCameraImages.ts +2 -6
- package/scaffold/production/src/executable/recovery/node/internal/readRecoveryFixedReference.ts +2 -6
- package/scaffold/production/src/executable/recovery/node/internal/recovery.ts +12 -17
- package/scaffold/production/src/executable/recovery/node/internal/recoveryAtlas.ts +2 -6
- package/scaffold/production/src/executable/recovery/node/internal/recoveryCameraMap.ts +6 -12
- package/scaffold/production/src/executable/recovery/node/internal/recoveryCameraScene.ts +2 -10
- package/scaffold/production/src/executable/recovery/node/internal/recoveryCameras.ts +2 -9
- package/scaffold/production/src/executable/recovery/node/internal/recoveryContourPath.ts +7 -11
- package/scaffold/production/src/executable/recovery/node/internal/recoveryImages.ts +6 -14
- package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryContourFileMesh.ts +10 -25
- package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryMeshSpool.ts +9 -15
- package/scaffold/production/src/executable/recovery/node/mesh/readAutoMovieRecoveryMeshFrontier.ts +10 -13
- package/scaffold/production/src/executable/recovery/node/publishAutoMovieRecoveryArtifact.ts +2 -6
- package/scaffold/production/src/executable/recovery/node/reconstruction/reconstructAutoMovieRecoveryLocal.ts +13 -19
- package/scaffold/production/src/executable/recovery/node/runAutoMovieRecoveryCommand.ts +4 -19
- package/scaffold/production/src/executable/verify.ts +11 -0
- package/scaffold/production/src/inspectFilmProduction.ts +252 -0
- package/scaffold/production/src/main.ts +1 -0
- package/scaffold/production/src/markFilmProduction.ts +31 -19
- package/scaffold/production/src/readFilmVerdicts.ts +43 -0
- package/scaffold/production/src/selectFilm.ts +2 -6
- package/scaffold/production/src/subjectOfFilm.ts +158 -0
- package/scaffold/production/src/subjects.ts +13 -61
- package/scaffold/production/test/features/test_clamp_production_seconds.ts +2 -4
- package/scaffold/production/test/features/test_inspect_film_production.ts +325 -0
- package/scaffold/production/test/features/test_recovery_publication_cancellation.ts +2 -4
- package/scaffold/production/test/features/test_select_film.ts +2 -4
- package/scaffold/production/test/features/test_subject_of_film.ts +95 -0
- package/scaffold/production/test/features/testing/test_test_execution.ts +2 -4
- package/scaffold/production/test/features/testing/test_test_selection.ts +2 -4
- package/scaffold/production/test/helpers/assessTestExecution.ts +4 -7
- package/scaffold/production/test/helpers/overlappingPerformance.ts +199 -0
- package/scaffold/production/test/tsconfig.json +4 -1
- package/scaffold/production/tsconfig.json +2 -6
- package/scaffold/production/vite.config.ts +25 -2
- package/scaffold/workspace/README.md +9 -28
- package/scaffold/workspace/package.json +1 -1
- package/src/IAutoMovieScaffoldProps.ts +12 -12
- package/src/assertScaffoldProjectName.ts +8 -10
- package/src/createAutoMovieScaffold.ts +35 -18
- package/src/listAutoMovieScaffoldFiles.ts +16 -12
- package/src/renderAutoMovieWorkspace.ts +20 -15
- package/src/scaffoldSharedSkillPath.ts +13 -12
- package/generated/skills/contracts/development/testing.md +0 -27
- package/scaffold/instructions/.agents/skills/automovie/SKILL.md +0 -32
- package/scaffold/instructions/.agents/skills/motion/laws/extension.md +0 -39
- package/scaffold/instructions/.agents/skills/production/stage-caches.md +0 -26
- package/scaffold/production/src/executable/recovery/node/internal/recoveryLocal.ts +0 -153
- package/scaffold/production/src/executable/recovery/node/internal/recoveryOpen.ts +0 -237
- package/scaffold/production/tsconfig.test.json +0 -9
- /package/scaffold/instructions/.agents/skills/{contracts/development/$testing.md → 3d-modeling/$environments.md} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What {@link createAutoMovieScaffold} creates.
|
|
3
|
-
*
|
|
4
|
-
* @evidence contracts/development/design.md#principled-representation The record holds only what differs between creations: the installation kind and the name. Dependency versions are fixed when the package is built, so a caller cannot pin a scaffold to ranges the package was not built with.
|
|
5
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface `kind` selects the layers and generated files, and `name` fills the one per-project token; the name rule lives in `assertScaffoldProjectName`.
|
|
6
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts No override or raw token field lets a caller bypass the name rule or the built versions.
|
|
7
|
-
* @evidence contracts/development/common.md#meaningful-documentation Each member states its effect on the created files.
|
|
8
|
-
*/
|
|
1
|
+
/** What {@link createAutoMovieScaffold} creates. */
|
|
9
2
|
export interface IAutoMovieScaffoldProps {
|
|
10
3
|
/**
|
|
11
4
|
* The installation created.
|
|
12
5
|
*
|
|
13
|
-
* - `production`: a single production in its own repository, with the shared
|
|
14
|
-
*
|
|
15
|
-
*
|
|
6
|
+
* - `production`: a single production in its own repository, with the shared
|
|
7
|
+
* instructions and a `pnpm-workspace.yaml` holding its dependency
|
|
8
|
+
* catalogs.
|
|
9
|
+
* - `workspace`: a pnpm workspace root for `movies/shorts/*`, `movies/series/*`
|
|
10
|
+
* and `packages/*`, with the shared instructions and the catalogs every
|
|
11
|
+
* production uses.
|
|
12
|
+
* - `workspace-production`: a production inside such a workspace, three levels
|
|
13
|
+
* below the root whose instructions and catalogs it uses.
|
|
16
14
|
*/
|
|
17
15
|
kind: "production" | "workspace" | "workspace-production";
|
|
18
16
|
/**
|
|
19
|
-
* The project's or workspace's name, written into its `package.json` and
|
|
17
|
+
* The project's or workspace's name, written into its `package.json` and
|
|
18
|
+
* README heading after trimming. `assertScaffoldProjectName` lists the
|
|
19
|
+
* refused names.
|
|
20
20
|
*/
|
|
21
21
|
name: string;
|
|
22
22
|
}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Trim a project name and refuse one that cannot serve as a portable directory
|
|
2
|
+
* Trim a project name and refuse one that cannot serve as a portable directory
|
|
3
|
+
* segment and JSON string.
|
|
3
4
|
*
|
|
4
|
-
* The name is trimmed, then refused when empty, `.` or `..`, ending in `.`,
|
|
5
|
+
* The name is trimmed, then refused when empty, `.` or `..`, ending in `.`,
|
|
6
|
+
* containing `<>:"/\|?*` or an ASCII control character, or matching the ASCII
|
|
7
|
+
* device-name pattern `con`, `prn`, `aux`, `nul`, `com1` through `com9`, or
|
|
8
|
+
* `lpt1` through `lpt9`, with or without an extension. These checks prevent
|
|
9
|
+
* separators and JSON string delimiters; they do not establish npm package-name
|
|
10
|
+
* validity or every filesystem's name and length restrictions.
|
|
5
11
|
*
|
|
6
12
|
* @param name The name as supplied.
|
|
7
13
|
* @returns The trimmed name.
|
|
8
14
|
* @throws When the name is refused.
|
|
9
|
-
*
|
|
10
|
-
* @evidence contracts/development/implementation.md#principled-implementation After trim, explicit separator, ASCII control and device-name checks refuse the listed unsafe names; excluding quote, backslash and ASCII controls keeps plain substitution inside package.json's JSON string valid. This is a partial filename policy rather than npm-name or universal filesystem validation.
|
|
11
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure `createAutoMovieScaffold` admits its `{{name}}` through this one rule, so a production, a workspace and a workspace production refuse the same names.
|
|
12
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A refused name throws; nothing is rewritten into an admitted spelling.
|
|
13
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the trim, every refusal and why it matters, and what the rule does not establish.
|
|
14
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two regular-expression scans and fixed comparisons cost linear time in the name's length.
|
|
15
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call checks one supplied name once.
|
|
16
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function returns a string and retains nothing.
|
|
17
15
|
*/
|
|
18
16
|
export declare const assertScaffoldProjectName: (name: string) => string;
|
|
@@ -2,21 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assertScaffoldProjectName = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* Trim a project name and refuse one that cannot serve as a portable directory
|
|
5
|
+
* Trim a project name and refuse one that cannot serve as a portable directory
|
|
6
|
+
* segment and JSON string.
|
|
6
7
|
*
|
|
7
|
-
* The name is trimmed, then refused when empty, `.` or `..`, ending in `.`,
|
|
8
|
+
* The name is trimmed, then refused when empty, `.` or `..`, ending in `.`,
|
|
9
|
+
* containing `<>:"/\|?*` or an ASCII control character, or matching the ASCII
|
|
10
|
+
* device-name pattern `con`, `prn`, `aux`, `nul`, `com1` through `com9`, or
|
|
11
|
+
* `lpt1` through `lpt9`, with or without an extension. These checks prevent
|
|
12
|
+
* separators and JSON string delimiters; they do not establish npm package-name
|
|
13
|
+
* validity or every filesystem's name and length restrictions.
|
|
8
14
|
*
|
|
9
15
|
* @param name The name as supplied.
|
|
10
16
|
* @returns The trimmed name.
|
|
11
17
|
* @throws When the name is refused.
|
|
12
|
-
*
|
|
13
|
-
* @evidence contracts/development/implementation.md#principled-implementation After trim, explicit separator, ASCII control and device-name checks refuse the listed unsafe names; excluding quote, backslash and ASCII controls keeps plain substitution inside package.json's JSON string valid. This is a partial filename policy rather than npm-name or universal filesystem validation.
|
|
14
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure `createAutoMovieScaffold` admits its `{{name}}` through this one rule, so a production, a workspace and a workspace production refuse the same names.
|
|
15
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A refused name throws; nothing is rewritten into an admitted spelling.
|
|
16
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the trim, every refusal and why it matters, and what the rule does not establish.
|
|
17
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two regular-expression scans and fixed comparisons cost linear time in the name's length.
|
|
18
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call checks one supplied name once.
|
|
19
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function returns a string and retains nothing.
|
|
20
18
|
*/
|
|
21
19
|
const assertScaffoldProjectName = (name) => {
|
|
22
20
|
const trimmed = name.trim();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertScaffoldProjectName.js","sourceRoot":"","sources":["../src/assertScaffoldProjectName.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"assertScaffoldProjectName.js","sourceRoot":"","sources":["../src/assertScaffoldProjectName.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACI,MAAM,yBAAyB,GAA6B,CACjE,IAAY,EACJ,EAAE;IACV,MAAM,OAAO,GAAW,IAAI,CAAC,IAAI,EAAE,CAAC;IACpC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAC9E,IACE,OAAO,KAAK,GAAG;QACf,OAAO,KAAK,IAAI;QAChB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC;QACrB,4BAA4B,CAAC,IAAI,CAAC,OAAO,CAAC;QAC1C,kDAAkD,CAAC,IAAI,CAAC,OAAO,CAAC;QAEhE,MAAM,IAAI,KAAK,CACb,0BAA0B,OAAO,0CAA0C,CAC5E,CAAC;IACJ,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAhBW,QAAA,yBAAyB,GAAzB,yBAAyB,CAgBpC"}
|
|
@@ -1,29 +1,37 @@
|
|
|
1
1
|
import type { IAutoMovieScaffoldProps } from "./IAutoMovieScaffoldProps";
|
|
2
2
|
/**
|
|
3
|
-
* Create the files of a new AutoMovie installation as a `{ posixPath: content
|
|
3
|
+
* Create the files of a new AutoMovie installation as a `{ posixPath: content
|
|
4
|
+
* }` map.
|
|
4
5
|
*
|
|
5
6
|
* The map joins scaffold layers with generated files, by `kind`:
|
|
6
7
|
*
|
|
7
|
-
* - `production`: the `instructions` and `production` layers,
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* - `production`: the `instructions` and `production` layers,
|
|
9
|
+
* `pnpm-workspace.yaml` with catalogs and no packages, and
|
|
10
|
+
* `evidence.config.ts` reading the production's own `.agents/skills`.
|
|
11
|
+
* - `workspace`: the `instructions` and `workspace` layers, and
|
|
12
|
+
* `pnpm-workspace.yaml` listing `movies/shorts/*`, `movies/series/*` and
|
|
13
|
+
* `packages/*` with the same catalogs.
|
|
14
|
+
* - `workspace-production`: the `production` layer, and `evidence.config.ts`
|
|
15
|
+
* reading the workspace root's `../../../.agents/skills`.
|
|
10
16
|
*
|
|
11
|
-
* A `$<name>` placeholder under a layer's `.agents/skills` is replaced by the
|
|
17
|
+
* A `$<name>` placeholder under a layer's `.agents/skills` is replaced by the
|
|
18
|
+
* repository skill item the build copied to `generated/skills`. A layer's root
|
|
19
|
+
* `_gitignore` becomes `.gitignore`, because npm pack renames a packed
|
|
20
|
+
* `.gitignore`. `{{name}}` becomes the admitted name and `{{skills}}` the path
|
|
21
|
+
* of the skills the production reads. Line endings become LF. Every
|
|
22
|
+
* `package.json` dependency is a `catalog:` reference: the `automovie` catalog
|
|
23
|
+
* ranges this package's own version, and the others carry the ranges the build
|
|
24
|
+
* read from the repository's `pnpm-workspace.yaml`.
|
|
12
25
|
*
|
|
13
|
-
* Instruction Markdown omits reserved `<!-- @source ... -->` lines after shared
|
|
26
|
+
* Instruction Markdown omits reserved `<!-- @source ... -->` lines after shared
|
|
27
|
+
* skills are expanded. A source paragraph leaves one blank line between its
|
|
28
|
+
* heading and the body.
|
|
14
29
|
*
|
|
15
30
|
* Nothing is written; the caller writes the map.
|
|
16
31
|
*
|
|
17
32
|
* @param props The installation kind and its name.
|
|
18
33
|
* @returns The files, keyed by path relative to the installation directory.
|
|
19
|
-
* @throws When the name is refused, when the build outputs are missing, or when
|
|
20
|
-
*
|
|
21
|
-
* @evidence contracts/development/implementation.md#principled-implementation Layers are read from the installed package, so the map always matches the shipped scaffold. Catalog ranges come from the build's record of the repository catalogs and the automovie range from this package's own manifest, so a workspace and its productions resolve the release the package belongs to. A duplicate path throws instead of keeping either source.
|
|
22
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns the whole map for every kind; the kind decides only which layers are read and which generated files are added, and writing is left to the caller.
|
|
23
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No file is named except the generated `pnpm-workspace.yaml` and `evidence.config.ts`, whose content differs by kind, and the root `_gitignore`, whose rename npm pack forces.
|
|
24
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment lists every kind's layers and generated files, shared skills, source notes, renames, substitutions, line endings, version sources and failures.
|
|
25
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Each file is listed and read once. Source lines, tokens and line endings take a fixed number of linear scans, plus each directory's sort.
|
|
26
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call reads the scaffold as installed now, once per creation.
|
|
27
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Files are read with `readFileSync`, which releases its handle before returning; only the returned map, owned by the caller, outlives the call.
|
|
34
|
+
* @throws When the name is refused, when the build outputs are missing, or when
|
|
35
|
+
* two sources produce the same path.
|
|
28
36
|
*/
|
|
29
37
|
export declare const createAutoMovieScaffold: (props: IAutoMovieScaffoldProps) => Record<string, string>;
|
|
@@ -40,34 +40,45 @@ const assertScaffoldProjectName_1 = require("./assertScaffoldProjectName");
|
|
|
40
40
|
const listAutoMovieScaffoldFiles_1 = require("./listAutoMovieScaffoldFiles");
|
|
41
41
|
const renderAutoMovieWorkspace_1 = require("./renderAutoMovieWorkspace");
|
|
42
42
|
const scaffoldSharedSkillPath_1 = require("./scaffoldSharedSkillPath");
|
|
43
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* The package root: `src` under ttsx and `lib` when published both sit one
|
|
45
|
+
* level below it.
|
|
46
|
+
*/
|
|
44
47
|
const PACKAGE = path.resolve(__dirname, "..");
|
|
45
48
|
/**
|
|
46
|
-
* Create the files of a new AutoMovie installation as a `{ posixPath: content
|
|
49
|
+
* Create the files of a new AutoMovie installation as a `{ posixPath: content
|
|
50
|
+
* }` map.
|
|
47
51
|
*
|
|
48
52
|
* The map joins scaffold layers with generated files, by `kind`:
|
|
49
53
|
*
|
|
50
|
-
* - `production`: the `instructions` and `production` layers,
|
|
51
|
-
*
|
|
52
|
-
*
|
|
54
|
+
* - `production`: the `instructions` and `production` layers,
|
|
55
|
+
* `pnpm-workspace.yaml` with catalogs and no packages, and
|
|
56
|
+
* `evidence.config.ts` reading the production's own `.agents/skills`.
|
|
57
|
+
* - `workspace`: the `instructions` and `workspace` layers, and
|
|
58
|
+
* `pnpm-workspace.yaml` listing `movies/shorts/*`, `movies/series/*` and
|
|
59
|
+
* `packages/*` with the same catalogs.
|
|
60
|
+
* - `workspace-production`: the `production` layer, and `evidence.config.ts`
|
|
61
|
+
* reading the workspace root's `../../../.agents/skills`.
|
|
53
62
|
*
|
|
54
|
-
* A `$<name>` placeholder under a layer's `.agents/skills` is replaced by the
|
|
63
|
+
* A `$<name>` placeholder under a layer's `.agents/skills` is replaced by the
|
|
64
|
+
* repository skill item the build copied to `generated/skills`. A layer's root
|
|
65
|
+
* `_gitignore` becomes `.gitignore`, because npm pack renames a packed
|
|
66
|
+
* `.gitignore`. `{{name}}` becomes the admitted name and `{{skills}}` the path
|
|
67
|
+
* of the skills the production reads. Line endings become LF. Every
|
|
68
|
+
* `package.json` dependency is a `catalog:` reference: the `automovie` catalog
|
|
69
|
+
* ranges this package's own version, and the others carry the ranges the build
|
|
70
|
+
* read from the repository's `pnpm-workspace.yaml`.
|
|
55
71
|
*
|
|
56
|
-
* Instruction Markdown omits reserved `<!-- @source ... -->` lines after shared
|
|
72
|
+
* Instruction Markdown omits reserved `<!-- @source ... -->` lines after shared
|
|
73
|
+
* skills are expanded. A source paragraph leaves one blank line between its
|
|
74
|
+
* heading and the body.
|
|
57
75
|
*
|
|
58
76
|
* Nothing is written; the caller writes the map.
|
|
59
77
|
*
|
|
60
78
|
* @param props The installation kind and its name.
|
|
61
79
|
* @returns The files, keyed by path relative to the installation directory.
|
|
62
|
-
* @throws When the name is refused, when the build outputs are missing, or when
|
|
63
|
-
*
|
|
64
|
-
* @evidence contracts/development/implementation.md#principled-implementation Layers are read from the installed package, so the map always matches the shipped scaffold. Catalog ranges come from the build's record of the repository catalogs and the automovie range from this package's own manifest, so a workspace and its productions resolve the release the package belongs to. A duplicate path throws instead of keeping either source.
|
|
65
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns the whole map for every kind; the kind decides only which layers are read and which generated files are added, and writing is left to the caller.
|
|
66
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No file is named except the generated `pnpm-workspace.yaml` and `evidence.config.ts`, whose content differs by kind, and the root `_gitignore`, whose rename npm pack forces.
|
|
67
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment lists every kind's layers and generated files, shared skills, source notes, renames, substitutions, line endings, version sources and failures.
|
|
68
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Each file is listed and read once. Source lines, tokens and line endings take a fixed number of linear scans, plus each directory's sort.
|
|
69
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call reads the scaffold as installed now, once per creation.
|
|
70
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Files are read with `readFileSync`, which releases its handle before returning; only the returned map, owned by the caller, outlives the call.
|
|
80
|
+
* @throws When the name is refused, when the build outputs are missing, or when
|
|
81
|
+
* two sources produce the same path.
|
|
71
82
|
*/
|
|
72
83
|
const createAutoMovieScaffold = (props) => {
|
|
73
84
|
const name = (0, assertScaffoldProjectName_1.assertScaffoldProjectName)(props.name);
|
|
@@ -93,7 +104,10 @@ const createAutoMovieScaffold = (props) => {
|
|
|
93
104
|
return files;
|
|
94
105
|
};
|
|
95
106
|
exports.createAutoMovieScaffold = createAutoMovieScaffold;
|
|
96
|
-
/**
|
|
107
|
+
/**
|
|
108
|
+
* Pass every file of one scaffold layer to `add`, expanding shared-skill
|
|
109
|
+
* placeholders and renaming the root `_gitignore`.
|
|
110
|
+
*/
|
|
97
111
|
const readLayer = (layer, add) => {
|
|
98
112
|
const root = path.join(PACKAGE, "scaffold", layer);
|
|
99
113
|
/** Strip the source note while keeping one of its surrounding blank lines. */
|
|
@@ -118,7 +132,10 @@ const readLayer = (layer, add) => {
|
|
|
118
132
|
add(target, read(item));
|
|
119
133
|
}
|
|
120
134
|
};
|
|
121
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* The `evidence.config.ts` of a production, reading its own skills or, inside a
|
|
137
|
+
* workspace, the root's.
|
|
138
|
+
*/
|
|
122
139
|
const renderEvidenceConfig = (workspace) => [
|
|
123
140
|
`import { createEvidenceConfig } from "@automovie/evidence";`,
|
|
124
141
|
``,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAutoMovieScaffold.js","sourceRoot":"","sources":["../src/createAutoMovieScaffold.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAC9B,MAAY,IAAI,sCAAkB;AAGlC,2EAAwE;AACxE,6EAA0E;AAC1E,yEAAsE;AACtE,uEAAoE;AAEpE
|
|
1
|
+
{"version":3,"file":"createAutoMovieScaffold.js","sourceRoot":"","sources":["../src/createAutoMovieScaffold.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAC9B,MAAY,IAAI,sCAAkB;AAGlC,2EAAwE;AACxE,6EAA0E;AAC1E,yEAAsE;AACtE,uEAAoE;AAEpE;;;GAGG;AACH,MAAM,OAAO,GAAW,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACI,MAAM,uBAAuB,GAEN,CAC5B,KAA8B,EACN,EAAE;IAC1B,MAAM,IAAI,GAAW,IAAA,qDAAyB,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC3D,MAAM,MAAM,GACV,KAAK,CAAC,IAAI,KAAK,sBAAsB;QACnC,CAAC,CAAC,yBAAyB;QAC3B,CAAC,CAAC,gBAAgB,CAAC;IACvB,MAAM,KAAK,GAA2B,MAAM,CAAC,MAAM,CAAC,IAAI,CAGvD,CAAC;IACF,M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AC,SAAkB,EAAU,EAAE,CAC1D;IACE,6DAA6D;IAC7D,EAAE;IACF,SAAS;QACP,CAAC,CAAC,wHAAwH;QAC1H,CAAC,CAAC,mFAAmF;IACvF,uCAAuC;IACvC,kCAAkC;IAClC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9D,KAAK;IACL,EAAE;CACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEf,MAAM,OAAO,GAAG,CAAC,QAAgB,EAAU,EAAE,CAC3C,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* List every shipped file under `root`, as root-relative paths with the host's
|
|
2
|
+
* List every shipped file under `root`, as root-relative paths with the host's
|
|
3
|
+
* separator, in a deterministic order.
|
|
3
4
|
*
|
|
4
|
-
* The walk skips any directory named `.cache`, `.git`, or `node_modules` at any
|
|
5
|
+
* The walk skips any directory named `.cache`, `.git`, or `node_modules` at any
|
|
6
|
+
* depth, and any file whose name ends in `.js`, `.cjs`, `.mjs`, their `.map`,
|
|
7
|
+
* `.d.ts`, `.d.cts`, `.d.mts`, or `.tsbuildinfo`. Entries that are neither a
|
|
8
|
+
* plain directory nor a plain file, such as symbolic links, are skipped. Each
|
|
9
|
+
* directory's entries are visited in UTF-16 code-unit order of their names, so
|
|
10
|
+
* the listing is identical on every host.
|
|
5
11
|
*
|
|
6
12
|
* @param root Absolute scaffold directory.
|
|
7
13
|
* @returns The shipped files.
|
|
8
|
-
*
|
|
9
|
-
* @evidence contracts/development/implementation.md#principled-implementation A depth-first walk over `readdirSync` with file types visits each entry once without a stat per entry; names are compared with relational operators, which order by code unit independent of the host locale, unlike `localeCompare`; skipping symbolic links relies on the premise that the authored scaffold contains none, so a link is never shipped as a copy of its target.
|
|
10
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The two exclusion constants are the whole shipping policy and sit beside the walk, so `createAutoMovieScaffold` and the prepare script receive the population without deciding it.
|
|
11
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Exclusions are by directory name and output-file shape only, with no exception for any particular file or fixture.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment lists every excluded directory and file shape, states that links are skipped, and states the path form and the order of the result.
|
|
13
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The walk is linear in the number of entries under `root` plus a per-directory sort of its entries, never descending into an excluded directory, so a populated `node_modules` costs one skipped entry.
|
|
14
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call lists the directory as it is on disk now, and each caller lists once per scaffold layer or shared item.
|
|
15
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources `readdirSync` opens and closes each directory before returning, the recursion depth equals the scaffold's directory depth, and only the result array is retained, holding one string per shipped file.
|
|
16
14
|
*/
|
|
17
15
|
export declare const listAutoMovieScaffoldFiles: (root: string) => string[];
|
|
@@ -37,7 +37,10 @@ exports.listAutoMovieScaffoldFiles = void 0;
|
|
|
37
37
|
const fs = __importStar(require("node:fs"));
|
|
38
38
|
const path = __importStar(require("node:path"));
|
|
39
39
|
/**
|
|
40
|
-
* Directory names the scaffold never ships, whatever a host leaves there: a
|
|
40
|
+
* Directory names the scaffold never ships, whatever a host leaves there: a
|
|
41
|
+
* generated project installs its own dependencies and builds its own caches, so
|
|
42
|
+
* anything under these names is a working artifact of whoever ran a tool inside
|
|
43
|
+
* the scaffold directory.
|
|
41
44
|
*/
|
|
42
45
|
const UNSHIPPED_DIRECTORIES = new Set([
|
|
43
46
|
".cache",
|
|
@@ -45,24 +48,25 @@ const UNSHIPPED_DIRECTORIES = new Set([
|
|
|
45
48
|
"node_modules",
|
|
46
49
|
]);
|
|
47
50
|
/**
|
|
48
|
-
* Compiler outputs, which are never authored scaffold inputs. Every executable
|
|
51
|
+
* Compiler outputs, which are never authored scaffold inputs. Every executable
|
|
52
|
+
* scaffold source is TypeScript, and a generated project's loader would prefer
|
|
53
|
+
* an emitted `.js` next to its `.ts`, so an earlier local compilation must not
|
|
54
|
+
* ship its modules, maps, declarations, or build info.
|
|
49
55
|
*/
|
|
50
56
|
const UNSHIPPED_FILES = /(?:\.(?:c|m)?js(?:\.map)?|\.d\.(?:c|m)?ts|\.tsbuildinfo)$/u;
|
|
51
57
|
/**
|
|
52
|
-
* List every shipped file under `root`, as root-relative paths with the host's
|
|
58
|
+
* List every shipped file under `root`, as root-relative paths with the host's
|
|
59
|
+
* separator, in a deterministic order.
|
|
53
60
|
*
|
|
54
|
-
* The walk skips any directory named `.cache`, `.git`, or `node_modules` at any
|
|
61
|
+
* The walk skips any directory named `.cache`, `.git`, or `node_modules` at any
|
|
62
|
+
* depth, and any file whose name ends in `.js`, `.cjs`, `.mjs`, their `.map`,
|
|
63
|
+
* `.d.ts`, `.d.cts`, `.d.mts`, or `.tsbuildinfo`. Entries that are neither a
|
|
64
|
+
* plain directory nor a plain file, such as symbolic links, are skipped. Each
|
|
65
|
+
* directory's entries are visited in UTF-16 code-unit order of their names, so
|
|
66
|
+
* the listing is identical on every host.
|
|
55
67
|
*
|
|
56
68
|
* @param root Absolute scaffold directory.
|
|
57
69
|
* @returns The shipped files.
|
|
58
|
-
*
|
|
59
|
-
* @evidence contracts/development/implementation.md#principled-implementation A depth-first walk over `readdirSync` with file types visits each entry once without a stat per entry; names are compared with relational operators, which order by code unit independent of the host locale, unlike `localeCompare`; skipping symbolic links relies on the premise that the authored scaffold contains none, so a link is never shipped as a copy of its target.
|
|
60
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The two exclusion constants are the whole shipping policy and sit beside the walk, so `createAutoMovieScaffold` and the prepare script receive the population without deciding it.
|
|
61
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Exclusions are by directory name and output-file shape only, with no exception for any particular file or fixture.
|
|
62
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment lists every excluded directory and file shape, states that links are skipped, and states the path form and the order of the result.
|
|
63
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The walk is linear in the number of entries under `root` plus a per-directory sort of its entries, never descending into an excluded directory, so a populated `node_modules` costs one skipped entry.
|
|
64
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call lists the directory as it is on disk now, and each caller lists once per scaffold layer or shared item.
|
|
65
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources `readdirSync` opens and closes each directory before returning, the recursion depth equals the scaffold's directory depth, and only the result array is retained, holding one string per shipped file.
|
|
66
70
|
*/
|
|
67
71
|
const listAutoMovieScaffoldFiles = (root) => {
|
|
68
72
|
const out = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listAutoMovieScaffoldFiles.js","sourceRoot":"","sources":["../src/listAutoMovieScaffoldFiles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAC9B,MAAY,IAAI,sCAAkB;AAElC
|
|
1
|
+
{"version":3,"file":"listAutoMovieScaffoldFiles.js","sourceRoot":"","sources":["../src/listAutoMovieScaffoldFiles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAC9B,MAAY,IAAI,sCAAkB;AAElC;;;;;GAKG;AACH,MAAM,qBAAqB,GAAwB,IAAI,GAAG,CAAC;IACzD,QAAQ;IACR,MAAM;IACN,cAAc;CACf,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,eAAe,GACnB,4DAA4D,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACI,MAAM,0BAA0B,GAA+B,CACpE,IAAY,EACF,EAAE;IACZ,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,MAAM,IAAI,GAA0B,CAAC,GAAW,EAAQ,EAAE;QACxD,MAAM,OAAO,GAAgB,EAAE;aAC5B,WAAW,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;aACzC,IAAI,CACH,CAAC,IAAe,EAAE,KAAgB,EAAU,EAAE,CAC5C,MAAM,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAClE,CAAC;QACJ,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;YAC5B,MAAM,IAAI,GAAW,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YAChD,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC;gBACxB,IAAI,qBAAqB,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK;oBAAE,IAAI,CAAC,IAAI,CAAC,CAAC;YAClE,CAAC;iBAAM,IAAI,KAAK,CAAC,MAAM,EAAE,IAAI,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK;gBACrE,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;QACxC,CAAC;IACH,CAAC,CAAC;IACF,IAAI,CAAC,IAAI,CAAC,CAAC;IACX,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AArBW,QAAA,0BAA0B,GAA1B,0BAA0B,CAqBrC"}
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Render pnpm settings for a new production or workspace. Given an existing
|
|
3
3
|
* workspace's directory and YAML, fill missing scaffold catalog entries.
|
|
4
|
-
* Existing pins, overrides, workspace members and build policy keep their
|
|
5
|
-
* A linked SDK supplies missing scoped packages when their sibling
|
|
6
|
-
* identify them. Other new entries use the installed scaffold's
|
|
4
|
+
* Existing pins, overrides, workspace members and build policy keep their
|
|
5
|
+
* values. A linked SDK supplies missing scoped packages when their sibling
|
|
6
|
+
* manifests identify them. Other new entries use the installed scaffold's
|
|
7
|
+
* ranges.
|
|
7
8
|
*
|
|
8
|
-
* @param workspace The new layout or the existing workspace whose catalogs the
|
|
9
|
-
*
|
|
9
|
+
* @param workspace The new layout or the existing workspace whose catalogs the
|
|
10
|
+
* CLI needs.
|
|
11
|
+
* @returns Workspace YAML, byte-for-byte unchanged when every required entry
|
|
12
|
+
* exists.
|
|
10
13
|
* @throws If the shipped settings or workspace YAML cannot be read as required.
|
|
11
|
-
* @evidence contracts/development/implementation.md#principled-implementation Both paths resolve the shipped manifests' catalog references from the same build settings and template version. Local SDK lookup requires an existing link and the requested package identity.
|
|
12
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The layout selects creation or completion. The YAML document owns edits and the caller owns the write.
|
|
13
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The build discovers the dependencies. Package names and workspace layouts follow their published conventions.
|
|
14
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The existing document is parsed once and each required entry is visited once. Only missing SDK entries probe sibling manifests in distinct linked directories.
|
|
15
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Both layouts share the resolved defaults. SDK directories are deduplicated per document.
|
|
16
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources File reads close synchronously. Parsed settings, document and link directories live for one call.
|
|
17
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment describes each mode, precedence, return value and failure.
|
|
18
14
|
*/
|
|
19
15
|
export declare function renderAutoMovieWorkspace(workspace: "production" | "workspace" | {
|
|
20
16
|
directory: string;
|
|
@@ -40,20 +40,16 @@ const yaml_1 = require("yaml");
|
|
|
40
40
|
/**
|
|
41
41
|
* Render pnpm settings for a new production or workspace. Given an existing
|
|
42
42
|
* workspace's directory and YAML, fill missing scaffold catalog entries.
|
|
43
|
-
* Existing pins, overrides, workspace members and build policy keep their
|
|
44
|
-
* A linked SDK supplies missing scoped packages when their sibling
|
|
45
|
-
* identify them. Other new entries use the installed scaffold's
|
|
43
|
+
* Existing pins, overrides, workspace members and build policy keep their
|
|
44
|
+
* values. A linked SDK supplies missing scoped packages when their sibling
|
|
45
|
+
* manifests identify them. Other new entries use the installed scaffold's
|
|
46
|
+
* ranges.
|
|
46
47
|
*
|
|
47
|
-
* @param workspace The new layout or the existing workspace whose catalogs the
|
|
48
|
-
*
|
|
48
|
+
* @param workspace The new layout or the existing workspace whose catalogs the
|
|
49
|
+
* CLI needs.
|
|
50
|
+
* @returns Workspace YAML, byte-for-byte unchanged when every required entry
|
|
51
|
+
* exists.
|
|
49
52
|
* @throws If the shipped settings or workspace YAML cannot be read as required.
|
|
50
|
-
* @evidence contracts/development/implementation.md#principled-implementation Both paths resolve the shipped manifests' catalog references from the same build settings and template version. Local SDK lookup requires an existing link and the requested package identity.
|
|
51
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The layout selects creation or completion. The YAML document owns edits and the caller owns the write.
|
|
52
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The build discovers the dependencies. Package names and workspace layouts follow their published conventions.
|
|
53
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The existing document is parsed once and each required entry is visited once. Only missing SDK entries probe sibling manifests in distinct linked directories.
|
|
54
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Both layouts share the resolved defaults. SDK directories are deduplicated per document.
|
|
55
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources File reads close synchronously. Parsed settings, document and link directories live for one call.
|
|
56
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment describes each mode, precedence, return value and failure.
|
|
57
53
|
*/
|
|
58
54
|
function renderAutoMovieWorkspace(workspace) {
|
|
59
55
|
const settings = JSON.parse(fs.readFileSync(path.join(__dirname, "../generated/pnpm-workspace.json"), "utf8"));
|
|
@@ -102,7 +98,10 @@ function renderAutoMovieWorkspace(workspace) {
|
|
|
102
98
|
}
|
|
103
99
|
return changed ? document.toString() : workspace.source;
|
|
104
100
|
}
|
|
105
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* Give this path its own entries, preserving the old values at other uses of
|
|
103
|
+
* its anchor.
|
|
104
|
+
*/
|
|
106
105
|
function isolateMapping(document, keys, values) {
|
|
107
106
|
const node = document.getIn(keys, true);
|
|
108
107
|
if (!(0, yaml_1.isMap)(node)) {
|
|
@@ -125,7 +124,10 @@ function mapping(value, key) {
|
|
|
125
124
|
return value;
|
|
126
125
|
throw new Error(`${key} must be a mapping in pnpm-workspace.yaml`);
|
|
127
126
|
}
|
|
128
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* Resolve a missing scoped SDK package beside the workspace's linked SDK
|
|
129
|
+
* packages.
|
|
130
|
+
*/
|
|
129
131
|
function linkedSibling(root, directories, name) {
|
|
130
132
|
if (!name.startsWith("@automovie/"))
|
|
131
133
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderAutoMovieWorkspace.js","sourceRoot":"","sources":["../src/renderAutoMovieWorkspace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAC9B,MAAY,IAAI,sCAAkB;AAClC,+BAA6E;
|
|
1
|
+
{"version":3,"file":"renderAutoMovieWorkspace.js","sourceRoot":"","sources":["../src/renderAutoMovieWorkspace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAC9B,MAAY,IAAI,sCAAkB;AAClC,+BAA6E;AAY7E;;;;;;;;;;;;;GAaG;AACH,kCACE,SAA6E;IAE7E,MAAM,QAAQ,GAAsB,IAAI,CAAC,KAAK,CAC5C,EAAE,CAAC,YAAY,CACb,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,kCAAkC,CAAC,EACxD,MAAM,CACP,CACF,CAAC;IACF,MAAM,QAAQ,GAAwB,IAAI,CAAC,KAAK,C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IAAI;QAAE,OAAO,IAAI,GAAG,EAAE,CAAC;IAC5D,IAAI,KAAK,YAAY,GAAG;QAAE,OAAO,KAAK,CAAC;IACvC,MAAM,IAAI,KAAK,CAAC,GAAG,GAAG,2CAA2C,CAAC,CAAC;AACrE,CAAC;AAED;;;GAGG;AACH,SAAS,aAAa,CACpB,IAAY,EACZ,WAAwB,EACxB,IAAY;IAEZ,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;QAAE,OAAO,SAAS,CAAC;IACtD,KAAK,MAAM,SAAS,IAAI,WAAW,EAAE,CAAC;QACpC,MAAM,SAAS,GAAW,IAAI,CAAC,IAAI,CACjC,SAAS,EACT,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,CAAC;QACF,MAAM,IAAI,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;QAC1D,IACE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI;YAEvD,OAAO,QAAQ,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IAC9E,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The repository skill path a scaffold placeholder stands for, or `null` when
|
|
2
|
+
* The repository skill path a scaffold placeholder stands for, or `null` when
|
|
3
|
+
* the file is not a placeholder.
|
|
3
4
|
*
|
|
4
|
-
* A placeholder is a file under the scaffold's `.agents/skills` whose name is
|
|
5
|
+
* A placeholder is a file under the scaffold's `.agents/skills` whose name is
|
|
6
|
+
* `$` followed by the name of a repository item at the same place under the
|
|
7
|
+
* repository's `.agents/skills`: `$documentation` stands for the whole
|
|
8
|
+
* `documentation` folder and `development/$repair.md` for the single
|
|
9
|
+
* `development/repair.md` file. The placeholder holds no text; the build copies
|
|
10
|
+
* the item it names and the scaffold reader ships that item in its place, so
|
|
11
|
+
* each shared text has one source.
|
|
5
12
|
*
|
|
6
|
-
* @param relative Scaffold-relative file path with the host's separator, as
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate owns the placeholder rule for both the build step that copies the named items and the reader that ships them, so the two cannot disagree on which files are placeholders.
|
|
11
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The rule depends only on the `$` prefix and the location under `.agents/skills`, with no list of particular skills or files.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment defines a placeholder, gives both the folder and file forms, states what the build and the reader do with it, and describes the parameter's separator and the result's form.
|
|
13
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Splitting the path and testing one name is linear in the path length.
|
|
14
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call classifies one path from its text alone; there is no shared work to reuse.
|
|
15
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only call-local component arrays are allocated; no filesystem resource is acquired.
|
|
13
|
+
* @param relative Scaffold-relative file path with the host's separator, as
|
|
14
|
+
* {@link listAutoMovieScaffoldFiles} returns it.
|
|
15
|
+
* @returns The named item's path relative to `.agents/skills`, with `/`
|
|
16
|
+
* separators and the `$` removed, or `null`.
|
|
16
17
|
*/
|
|
17
18
|
export declare const scaffoldSharedSkillPath: (relative: string) => string | null;
|
|
@@ -38,20 +38,21 @@ const path = __importStar(require("node:path"));
|
|
|
38
38
|
/** A placeholder's file name: `$` followed by one portable path segment. */
|
|
39
39
|
const PLACEHOLDER = /^\$([a-zA-Z0-9_-][a-zA-Z0-9_.-]*)$/u;
|
|
40
40
|
/**
|
|
41
|
-
* The repository skill path a scaffold placeholder stands for, or `null` when
|
|
41
|
+
* The repository skill path a scaffold placeholder stands for, or `null` when
|
|
42
|
+
* the file is not a placeholder.
|
|
42
43
|
*
|
|
43
|
-
* A placeholder is a file under the scaffold's `.agents/skills` whose name is
|
|
44
|
+
* A placeholder is a file under the scaffold's `.agents/skills` whose name is
|
|
45
|
+
* `$` followed by the name of a repository item at the same place under the
|
|
46
|
+
* repository's `.agents/skills`: `$documentation` stands for the whole
|
|
47
|
+
* `documentation` folder and `development/$repair.md` for the single
|
|
48
|
+
* `development/repair.md` file. The placeholder holds no text; the build copies
|
|
49
|
+
* the item it names and the scaffold reader ships that item in its place, so
|
|
50
|
+
* each shared text has one source.
|
|
44
51
|
*
|
|
45
|
-
* @param relative Scaffold-relative file path with the host's separator, as
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate owns the placeholder rule for both the build step that copies the named items and the reader that ships them, so the two cannot disagree on which files are placeholders.
|
|
50
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The rule depends only on the `$` prefix and the location under `.agents/skills`, with no list of particular skills or files.
|
|
51
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment defines a placeholder, gives both the folder and file forms, states what the build and the reader do with it, and describes the parameter's separator and the result's form.
|
|
52
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Splitting the path and testing one name is linear in the path length.
|
|
53
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call classifies one path from its text alone; there is no shared work to reuse.
|
|
54
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only call-local component arrays are allocated; no filesystem resource is acquired.
|
|
52
|
+
* @param relative Scaffold-relative file path with the host's separator, as
|
|
53
|
+
* {@link listAutoMovieScaffoldFiles} returns it.
|
|
54
|
+
* @returns The named item's path relative to `.agents/skills`, with `/`
|
|
55
|
+
* separators and the `$` removed, or `null`.
|
|
55
56
|
*/
|
|
56
57
|
const scaffoldSharedSkillPath = (relative) => {
|
|
57
58
|
const parts = relative.split(path.sep);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffoldSharedSkillPath.js","sourceRoot":"","sources":["../src/scaffoldSharedSkillPath.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,IAAI,sCAAkB;AAElC,4EAA4E;AAC5E,MAAM,WAAW,GAAW,qCAAqC,CAAC;AAElE
|
|
1
|
+
{"version":3,"file":"scaffoldSharedSkillPath.js","sourceRoot":"","sources":["../src/scaffoldSharedSkillPath.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,IAAI,sCAAkB;AAElC,4EAA4E;AAC5E,MAAM,WAAW,GAAW,qCAAqC,CAAC;AAElE;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,uBAAuB,GAAwC,CAC1E,QAAgB,EACD,EAAE;IACjB,MAAM,KAAK,GAAa,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,SAAS,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ;QACrE,OAAO,IAAI,CAAC;IACd,MAAM,KAAK,GAA2B,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC;IACtE,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACzE,OAAO,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC,CAAC;AATW,QAAA,uBAAuB,GAAvB,uBAAuB,CASlC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automovie/template",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "The scaffold every AutoMovie production is created from and the function that creates its files.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"yaml": "^2.9.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@automovie/evidence": "^0.
|
|
46
|
-
"@ttsc/evidence": "^0.
|
|
47
|
-
"@ttsc/lint": "^0.
|
|
45
|
+
"@automovie/evidence": "^0.4.0",
|
|
46
|
+
"@ttsc/evidence": "^0.38.1",
|
|
47
|
+
"@ttsc/lint": "^0.38.1",
|
|
48
48
|
"@types/node": "^22.19.17",
|
|
49
49
|
"rimraf": "^6.0.1",
|
|
50
|
-
"ttsc": "^0.
|
|
50
|
+
"ttsc": "^0.38.1",
|
|
51
51
|
"typescript": "^7.0.2",
|
|
52
|
-
"@wrtnlabs/evidence": "^0.
|
|
52
|
+
"@wrtnlabs/evidence": "^0.11.1"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "rimraf lib && pnpm run prepare && ttsc",
|
|
@@ -13,6 +13,7 @@ Use [entity work](../development/entities.md#coarse-first) for people and provid
|
|
|
13
13
|
|
|
14
14
|
| Read | To |
|
|
15
15
|
| --- | --- |
|
|
16
|
+
| [Environments](environments.md) | Build a place: a furnished room, a terrain or an outdoor set |
|
|
16
17
|
| [Coarse forms](coarse-forms.md) | Build a subject no package provides from a few primitives |
|
|
17
18
|
| [Modularization](modularization.md) | Define parts, groups, placements or shared boundaries |
|
|
18
19
|
| [Inspecting a form](inspection.md) | Inspect a form's measures, coverage or light |
|
|
@@ -34,3 +35,4 @@ For a commissioned [detail option](../development/entities.md#detail), use the s
|
|
|
34
35
|
| [Conditioning](conditioning.md) | Take a found or generated mesh into the production, or vary it by a parameter |
|
|
35
36
|
| [Mesh recovery](crafting/recovery.md) | Rebuild a fixed mesh as curves or surfaces |
|
|
36
37
|
| [Rigging](rigging.md) | Add or change a skeleton, skin, attachment or deformation control |
|
|
38
|
+
| [Materials](materials.md) | Give the form its surfaces: record materials, generated finishes and wear |
|
|
@@ -6,7 +6,9 @@ A coarse form is the few primitives that tell a reader of the hint what a subjec
|
|
|
6
6
|
|
|
7
7
|
Use two to four simple volumes in their real arrangement to distinguish the subject ([Biederman 1987](https://doi.org/10.1037/0033-295X.94.2.115)). Name it in the generation prompt.
|
|
8
8
|
|
|
9
|
-
Add only parts a scene interacts with or moves separately. Define their affordances under entity work.
|
|
9
|
+
Add only parts a scene interacts with or moves separately, at any size. Define their affordances under entity work.
|
|
10
|
+
|
|
11
|
+
Keep any other part only where the scene's camera distance resolves its [form tier](crafting/construction.md#form-tiers).
|
|
10
12
|
|
|
11
13
|
## Size
|
|
12
14
|
|