@automovie/template 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -18
- package/generated/pnpm-workspace.json +54 -0
- package/generated/skills/3d-modeling/conditioning.md +87 -0
- package/generated/skills/3d-modeling/crafting/SKILL.md +16 -0
- package/generated/skills/3d-modeling/crafting/construction.md +63 -0
- package/generated/skills/3d-modeling/crafting/lofting.md +75 -0
- package/generated/skills/3d-modeling/crafting/recovery.md +25 -0
- package/generated/skills/3d-modeling/diffusion/image-hints.md +30 -0
- package/generated/skills/3d-modeling/diffusion/models.md +43 -0
- package/generated/skills/3d-modeling/diffusion/prompts.md +9 -0
- package/generated/skills/3d-modeling/diffusion/request.md +18 -0
- package/generated/skills/3d-modeling/diffusion/shape-hints.md +33 -0
- package/generated/skills/3d-modeling/inspection.md +57 -0
- package/generated/skills/3d-modeling/modularization.md +25 -0
- package/generated/skills/3d-modeling/rigging.md +100 -0
- package/generated/skills/3d-modeling/sources.md +29 -0
- package/generated/skills/contracts/development/common.md +13 -0
- package/generated/skills/contracts/development/design.md +27 -0
- package/generated/skills/contracts/development/implementation.md +49 -0
- package/generated/skills/contracts/development/testing.md +27 -0
- package/generated/skills/development/repair.md +11 -0
- package/generated/skills/documentation/SKILL.md +19 -0
- package/generated/skills/documentation/writing.md +85 -0
- package/generated/skills/motion/laws/authoring.md +45 -0
- package/generated/skills/motion/laws/contacts.md +41 -0
- package/generated/skills/motion/laws/declaration.md +25 -0
- package/generated/skills/motion/laws/transitions.md +39 -0
- package/generated/skills/motion/laws/variation.md +23 -0
- package/generated/skills/motion/laws/verification.md +32 -0
- package/generated/skills/prompting/SKILL.md +100 -0
- package/generated/skills/visual-debugging/capture.md +64 -0
- package/{lib → generated}/skills/visual-debugging/comparison.md +7 -9
- package/generated/skills/visual-debugging/correction-rounds.md +25 -0
- package/generated/skills/visual-debugging/passes.md +29 -0
- package/generated/skills/visual-debugging/rendering-cost.md +5 -0
- package/lib/IAutoMovieScaffoldProps.d.ts +14 -6
- package/lib/assertScaffoldProjectName.d.ts +1 -1
- package/lib/assertScaffoldProjectName.js +1 -1
- package/lib/createAutoMovieScaffold.d.ts +27 -0
- package/lib/createAutoMovieScaffold.js +127 -0
- package/lib/createAutoMovieScaffold.js.map +1 -0
- package/lib/index.d.ts +2 -45
- package/lib/index.js +2 -45
- package/lib/index.js.map +1 -1
- package/lib/listAutoMovieScaffoldFiles.d.ts +2 -2
- package/lib/listAutoMovieScaffoldFiles.js +2 -2
- package/lib/renderAutoMovieWorkspace.d.ts +22 -0
- package/lib/renderAutoMovieWorkspace.js +141 -0
- package/lib/renderAutoMovieWorkspace.js.map +1 -0
- package/package.json +9 -12
- package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +22 -18
- package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +8 -10
- package/scaffold/instructions/.agents/skills/3d-modeling/diffusion/SKILL.md +24 -0
- package/scaffold/instructions/.agents/skills/audio/SKILL.md +11 -22
- package/scaffold/instructions/.agents/skills/audio/acquisition.md +22 -12
- package/scaffold/instructions/.agents/skills/audio/diffusion/SKILL.md +18 -0
- package/scaffold/instructions/.agents/skills/audio/diffusion/cloning.md +25 -0
- package/scaffold/instructions/.agents/skills/audio/diffusion/models.md +59 -0
- package/scaffold/instructions/.agents/skills/audio/diffusion/prompts.md +45 -0
- package/scaffold/instructions/.agents/skills/audio/film-sound.md +27 -0
- package/scaffold/instructions/.agents/skills/audio/generated-sound.md +17 -0
- package/scaffold/instructions/.agents/skills/audio/listening.md +13 -0
- package/scaffold/instructions/.agents/skills/audio/sound-effects.md +11 -17
- package/scaffold/instructions/.agents/skills/audio/soundtrack.md +7 -0
- package/scaffold/instructions/.agents/skills/automovie/SKILL.md +32 -0
- package/scaffold/instructions/.agents/skills/contracts/SKILL.md +6 -35
- package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +13 -13
- package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +20 -11
- package/scaffold/instructions/.agents/skills/contracts/development/composition.md +17 -10
- package/scaffold/instructions/.agents/skills/contracts/development/entities.md +10 -10
- package/scaffold/instructions/.agents/skills/contracts/development/statements/behaviors.md +24 -26
- package/scaffold/instructions/.agents/skills/contracts/development/statements/composition.md +19 -19
- package/scaffold/instructions/.agents/skills/contracts/development/statements/entities.md +18 -18
- package/scaffold/instructions/.agents/skills/contracts/items.md +26 -0
- package/scaffold/instructions/.agents/skills/contracts/story/SKILL.md +36 -26
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/brief.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/common.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/narratives.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/screenplay.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/scripts.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/settings.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/treatments.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/common.md +7 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/common.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/realized.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/realized.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/brief.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/common.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/index.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/narratives.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/review.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/screenplay.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/scripts.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/settings.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/treatments.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/brief.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/common.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/index.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/narratives.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/realized.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/research.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/review.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/screenplay.md +5 -9
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/scripts.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/settings.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/treatments.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/brief.md +4 -9
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/common.md +9 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/narratives.md +2 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/screenplay.md +3 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/scripts.md +4 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/settings.md +5 -9
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/treatments.md +3 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/common.md +38 -48
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/common.md +7 -10
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/realized.md +4 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/scripts.md +5 -10
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/realized.md +12 -13
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/scripts.md +4 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/brief.md +13 -13
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/common.md +15 -17
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/index.md +6 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/narratives.md +16 -18
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/review.md +16 -22
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/screenplay.md +8 -13
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/scripts.md +7 -10
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/settings.md +29 -24
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/treatments.md +13 -17
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/brief.md +9 -19
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/common.md +4 -9
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/index.md +7 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/narratives.md +30 -28
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/realized.md +10 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/research.md +18 -20
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/review.md +14 -28
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/screenplay.md +40 -47
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/scripts.md +18 -20
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/settings.md +8 -26
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/treatments.md +12 -19
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/screenplay.md +7 -10
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/scripts.md +4 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/treatments.md +3 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/screenplay.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/treatments.md +3 -3
- package/scaffold/instructions/.agents/skills/development/SKILL.md +14 -26
- package/scaffold/instructions/.agents/skills/development/entities.md +25 -21
- package/scaffold/instructions/.agents/skills/development/modules.md +31 -0
- package/scaffold/instructions/.agents/skills/development/source-layout.md +65 -41
- package/scaffold/instructions/.agents/skills/development/testing.md +12 -10
- package/scaffold/instructions/.agents/skills/evidence/SKILL.md +7 -7
- package/scaffold/instructions/.agents/skills/evidence/adoption.md +4 -4
- package/scaffold/instructions/.agents/skills/evidence/answering.md +3 -5
- package/scaffold/instructions/.agents/skills/evidence/configuration.md +8 -8
- package/scaffold/instructions/.agents/skills/image/SKILL.md +9 -62
- package/scaffold/instructions/.agents/skills/image/canon-references.md +37 -0
- package/scaffold/instructions/.agents/skills/image/diffusion/SKILL.md +23 -0
- package/scaffold/instructions/.agents/skills/image/diffusion/conditioning.md +29 -0
- package/scaffold/instructions/.agents/skills/image/diffusion/consistency.md +25 -0
- package/scaffold/instructions/.agents/skills/image/diffusion/editing.md +15 -0
- package/scaffold/instructions/.agents/skills/image/diffusion/finishing.md +11 -0
- package/scaffold/instructions/.agents/skills/image/diffusion/models.md +35 -0
- package/scaffold/instructions/.agents/skills/image/diffusion/prompting.md +27 -0
- package/scaffold/instructions/.agents/skills/image/turnaround-views.md +17 -0
- package/scaffold/instructions/.agents/skills/motion/SKILL.md +15 -48
- package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +25 -5
- package/scaffold/instructions/.agents/skills/motion/compose/composition.md +66 -0
- package/scaffold/instructions/.agents/skills/motion/compose/refusals.md +15 -0
- package/scaffold/instructions/.agents/skills/motion/control-channels.md +25 -9
- package/scaffold/instructions/.agents/skills/motion/diffusion/SKILL.md +28 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/clips.md +31 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/hints.md +49 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/models.md +32 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/tracing.md +59 -0
- package/scaffold/instructions/.agents/skills/motion/frame-evaluation.md +9 -13
- package/scaffold/instructions/.agents/skills/motion/judgment.md +37 -0
- package/scaffold/instructions/.agents/skills/motion/laws/$verification.md +0 -0
- package/scaffold/instructions/.agents/skills/motion/laws/SKILL.md +19 -0
- package/scaffold/instructions/.agents/skills/motion/laws/extension.md +39 -0
- package/scaffold/instructions/.agents/skills/motion/laws/method-references.md +51 -0
- package/scaffold/instructions/.agents/skills/motion/performance.md +11 -0
- package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +15 -15
- package/scaffold/instructions/.agents/skills/motion/retargeting.md +9 -11
- package/scaffold/instructions/.agents/skills/motion/segment-review.md +7 -7
- package/scaffold/instructions/.agents/skills/motion/staging.md +24 -14
- package/scaffold/instructions/.agents/skills/production/SKILL.md +11 -38
- package/scaffold/instructions/.agents/skills/production/assembly.md +19 -11
- package/scaffold/instructions/.agents/skills/production/captions.md +15 -0
- package/scaffold/instructions/.agents/skills/production/director.md +17 -0
- package/scaffold/instructions/.agents/skills/production/media-records.md +38 -15
- package/scaffold/instructions/.agents/skills/production/project-context.md +77 -14
- package/scaffold/instructions/.agents/skills/production/reorganization.md +13 -0
- package/scaffold/instructions/.agents/skills/production/stage-caches.md +9 -13
- package/scaffold/instructions/.agents/skills/production/sustained-runs.md +10 -10
- package/scaffold/instructions/.agents/skills/production/workflow.md +45 -0
- package/scaffold/instructions/.agents/skills/review/SKILL.md +10 -17
- package/scaffold/instructions/.agents/skills/review/delivery-review.md +50 -33
- package/scaffold/instructions/.agents/skills/review/estimation.md +35 -16
- package/scaffold/instructions/.agents/skills/review/independent-reading.md +12 -18
- package/scaffold/instructions/.agents/skills/review/narrative-rounds.md +10 -36
- package/scaffold/instructions/.agents/skills/review/source-review.md +7 -23
- package/scaffold/instructions/.agents/skills/story/SKILL.md +10 -13
- package/scaffold/instructions/.agents/skills/story/answers.md +27 -0
- package/scaffold/instructions/.agents/skills/story/correction/inspection.md +10 -16
- package/scaffold/instructions/.agents/skills/story/correction/repair.md +18 -16
- package/scaffold/instructions/.agents/skills/story/document-layout.md +33 -21
- package/scaffold/instructions/.agents/skills/story/layers/SKILL.md +12 -9
- package/scaffold/instructions/.agents/skills/story/layers/brief.md +5 -21
- package/scaffold/instructions/.agents/skills/story/layers/notation.md +27 -16
- package/scaffold/instructions/.agents/skills/story/layers/screenplay.md +31 -7
- package/scaffold/instructions/.agents/skills/story/layers/scripts.md +5 -5
- package/scaffold/instructions/.agents/skills/story/layers/settings.md +28 -17
- package/scaffold/instructions/.agents/skills/story/layers/shots.md +27 -0
- package/scaffold/instructions/.agents/skills/story/layers/treatments.md +4 -4
- package/scaffold/instructions/.agents/skills/story/planning/SKILL.md +7 -7
- package/scaffold/instructions/.agents/skills/story/planning/direction.md +5 -5
- package/scaffold/instructions/.agents/skills/story/planning/discovery.md +13 -10
- package/scaffold/instructions/.agents/skills/story/planning/requirements.md +13 -11
- package/scaffold/instructions/.agents/skills/story/planning/research.md +21 -11
- package/scaffold/instructions/.agents/skills/story/workflow/SKILL.md +15 -0
- package/scaffold/instructions/.agents/skills/story/workflow/long.md +42 -0
- package/scaffold/instructions/.agents/skills/story/workflow/routes.md +46 -0
- package/scaffold/instructions/.agents/skills/story/workflow/short.md +41 -0
- package/scaffold/instructions/.agents/skills/video/SKILL.md +9 -23
- package/scaffold/instructions/.agents/skills/video/diffusion/SKILL.md +21 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/continuity.md +21 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/hints.md +31 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/models.md +47 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/prompts.md +53 -0
- package/scaffold/instructions/.agents/skills/video/direct-film.md +53 -0
- package/scaffold/instructions/.agents/skills/video/finishing.md +46 -0
- package/scaffold/instructions/.agents/skills/video/generated-film.md +24 -0
- package/scaffold/instructions/.agents/skills/video/generation.md +32 -13
- package/scaffold/instructions/.agents/skills/video/requests.md +46 -0
- package/scaffold/instructions/.agents/skills/visual-debugging/SKILL.md +19 -18
- package/scaffold/instructions/AGENTS.md +44 -70
- package/scaffold/production/PROJECT.md +1 -1
- package/scaffold/production/README.md +44 -99
- package/scaffold/production/_gitignore +1 -2
- package/scaffold/production/index.html +4 -8
- package/scaffold/production/lint.config.ts +1 -1
- package/scaffold/production/package.json +31 -31
- package/scaffold/production/src/IFilm.ts +3 -3
- package/scaffold/production/src/IFilmProduction.ts +21 -6
- package/scaffold/production/src/composition/films/index.ts +3 -2
- package/scaffold/production/src/composition/films/starter.ts +2 -2
- package/scaffold/production/src/executable/physics.ts +8 -4
- package/scaffold/production/src/executable/recovery/node/artifact/archiveAutoMovieRecoveryModel.ts +4 -4
- package/scaffold/production/src/executable/recovery/node/artifact/createAutoMovieRecoveryArtifact.ts +5 -3
- package/scaffold/production/src/executable/recovery/node/artifact/writeAutoMovieRecoveryArtifact.ts +7 -7
- package/scaffold/production/src/executable/recovery/node/internal/readRecoveryCameraImages.ts +4 -2
- package/scaffold/production/src/executable/recovery/node/internal/recovery.ts +3 -3
- package/scaffold/production/src/executable/recovery/node/internal/recoveryImages.ts +3 -3
- package/scaffold/production/src/executable/recovery/node/internal/recoveryLocal.ts +4 -2
- package/scaffold/production/src/executable/recovery/node/internal/recoveryOpen.ts +2 -2
- package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryContourFileMesh.ts +17 -18
- package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryMeshSpool.ts +17 -18
- package/scaffold/production/src/executable/recovery/node/mesh/readAutoMovieRecoveryMeshFrontier.ts +4 -4
- package/scaffold/production/src/executable/recovery/node/publishAutoMovieRecoveryArtifact.ts +37 -21
- package/scaffold/production/src/executable/recovery/node/reconstruction/reconstructAutoMovieRecoveryLocal.ts +25 -15
- package/scaffold/production/src/executable/recovery/node/runAutoMovieRecoveryCommand.ts +1 -1
- package/scaffold/production/src/main.ts +9 -195
- package/scaffold/production/src/markFilmProduction.ts +43 -0
- package/scaffold/production/src/selectFilm.ts +3 -5
- package/scaffold/production/src/subjects.ts +65 -0
- package/scaffold/production/test/features/test_recovery_publication_cancellation.ts +129 -0
- package/scaffold/production/tsconfig.json +1 -2
- package/scaffold/production/vite.config.ts +16 -2
- package/scaffold/workspace/README.md +6 -8
- package/scaffold/workspace/package.json +1 -1
- package/src/IAutoMovieScaffoldProps.ts +15 -6
- package/src/assertScaffoldProjectName.ts +1 -1
- package/src/createAutoMovieScaffold.ts +115 -0
- package/src/index.ts +2 -46
- package/src/listAutoMovieScaffoldFiles.ts +2 -2
- package/src/renderAutoMovieWorkspace.ts +157 -0
- package/build/resolveTemplateVersions.ts +0 -92
- package/build/syncScaffoldInstructions.ts +0 -28
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.d.ts +0 -14
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js +0 -52
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js.map +0 -1
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.d.ts +0 -2
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js +0 -42
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js.map +0 -1
- package/lib/AutoMovieScaffoldLayer.d.ts +0 -15
- package/lib/AutoMovieScaffoldLayer.js +0 -3
- package/lib/AutoMovieScaffoldLayer.js.map +0 -1
- package/lib/FILE_ATTRIBUTE_DIRECTORY.d.ts +0 -2
- package/lib/FILE_ATTRIBUTE_DIRECTORY.js +0 -6
- package/lib/FILE_ATTRIBUTE_DIRECTORY.js.map +0 -1
- package/lib/IAutoMovieCatalogVersionProps.d.ts +0 -16
- package/lib/IAutoMovieCatalogVersionProps.js +0 -3
- package/lib/IAutoMovieCatalogVersionProps.js.map +0 -1
- package/lib/IAutoMovieScaffoldSourceEntry.d.ts +0 -18
- package/lib/IAutoMovieScaffoldSourceEntry.js +0 -3
- package/lib/IAutoMovieScaffoldSourceEntry.js.map +0 -1
- package/lib/IAutoMovieTemplateDependencyVersionsProps.d.ts +0 -17
- package/lib/IAutoMovieTemplateDependencyVersionsProps.js +0 -3
- package/lib/IAutoMovieTemplateDependencyVersionsProps.js.map +0 -1
- package/lib/IAutoMovieWorkspacePackageVersions.d.ts +0 -34
- package/lib/IAutoMovieWorkspacePackageVersions.js +0 -3
- package/lib/IAutoMovieWorkspacePackageVersions.js.map +0 -1
- package/lib/IBoundChild.d.ts +0 -71
- package/lib/IBoundChild.js +0 -3
- package/lib/IBoundChild.js.map +0 -1
- package/lib/IBoundChildStatus.d.ts +0 -20
- package/lib/IBoundChildStatus.js +0 -3
- package/lib/IBoundChildStatus.js.map +0 -1
- package/lib/IBoundParent.d.ts +0 -61
- package/lib/IBoundParent.js +0 -3
- package/lib/IBoundParent.js.map +0 -1
- package/lib/IBoundParentStatus.d.ts +0 -14
- package/lib/IBoundParentStatus.js +0 -3
- package/lib/IBoundParentStatus.js.map +0 -1
- package/lib/ICreateResult.d.ts +0 -27
- package/lib/ICreateResult.js +0 -3
- package/lib/ICreateResult.js.map +0 -1
- package/lib/IScaffoldCompletedFilePublicationOutcome.d.ts +0 -16
- package/lib/IScaffoldCompletedFilePublicationOutcome.js +0 -3
- package/lib/IScaffoldCompletedFilePublicationOutcome.js.map +0 -1
- package/lib/IScaffoldCompletedPublication.d.ts +0 -15
- package/lib/IScaffoldCompletedPublication.js +0 -3
- package/lib/IScaffoldCompletedPublication.js.map +0 -1
- package/lib/IScaffoldFileSnapshot.d.ts +0 -24
- package/lib/IScaffoldFileSnapshot.js +0 -3
- package/lib/IScaffoldFileSnapshot.js.map +0 -1
- package/lib/IScaffoldParentPublicationRequest.d.ts +0 -26
- package/lib/IScaffoldParentPublicationRequest.js +0 -3
- package/lib/IScaffoldParentPublicationRequest.js.map +0 -1
- package/lib/IScaffoldPartialFilePublicationOutcome.d.ts +0 -22
- package/lib/IScaffoldPartialFilePublicationOutcome.js +0 -3
- package/lib/IScaffoldPartialFilePublicationOutcome.js.map +0 -1
- package/lib/IScaffoldPhysicalDirectory.d.ts +0 -20
- package/lib/IScaffoldPhysicalDirectory.js +0 -3
- package/lib/IScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/IScaffoldPosixConstants.d.ts +0 -24
- package/lib/IScaffoldPosixConstants.js +0 -3
- package/lib/IScaffoldPosixConstants.js.map +0 -1
- package/lib/IScaffoldPublicationEntry.d.ts +0 -20
- package/lib/IScaffoldPublicationEntry.js +0 -3
- package/lib/IScaffoldPublicationEntry.js.map +0 -1
- package/lib/IScaffoldPublicationFailure.d.ts +0 -18
- package/lib/IScaffoldPublicationFailure.js +0 -3
- package/lib/IScaffoldPublicationFailure.js.map +0 -1
- package/lib/IScaffoldPublicationOptions.d.ts +0 -17
- package/lib/IScaffoldPublicationOptions.js +0 -3
- package/lib/IScaffoldPublicationOptions.js.map +0 -1
- package/lib/IScaffoldPublicationReceipt.d.ts +0 -25
- package/lib/IScaffoldPublicationReceipt.js +0 -3
- package/lib/IScaffoldPublicationReceipt.js.map +0 -1
- package/lib/IScaffoldRefusedFilePublicationOutcome.d.ts +0 -18
- package/lib/IScaffoldRefusedFilePublicationOutcome.js +0 -3
- package/lib/IScaffoldRefusedFilePublicationOutcome.js.map +0 -1
- package/lib/IScaffoldSyncPlan.d.ts +0 -25
- package/lib/IScaffoldSyncPlan.js +0 -3
- package/lib/IScaffoldSyncPlan.js.map +0 -1
- package/lib/IScaffoldSyncProps.d.ts +0 -16
- package/lib/IScaffoldSyncProps.js +0 -3
- package/lib/IScaffoldSyncProps.js.map +0 -1
- package/lib/IWindowsFileInformation.d.ts +0 -20
- package/lib/IWindowsFileInformation.js +0 -3
- package/lib/IWindowsFileInformation.js.map +0 -1
- package/lib/IWindowsLibrary.d.ts +0 -127
- package/lib/IWindowsLibrary.js +0 -3
- package/lib/IWindowsLibrary.js.map +0 -1
- package/lib/SCAFFOLD_SYNC_STATE_FILE.d.ts +0 -4
- package/lib/SCAFFOLD_SYNC_STATE_FILE.js +0 -8
- package/lib/SCAFFOLD_SYNC_STATE_FILE.js.map +0 -1
- package/lib/ScaffoldFilePublicationOutcome.d.ts +0 -14
- package/lib/ScaffoldFilePublicationOutcome.js +0 -3
- package/lib/ScaffoldFilePublicationOutcome.js.map +0 -1
- package/lib/ScaffoldParentChangedError.d.ts +0 -11
- package/lib/ScaffoldParentChangedError.js +0 -19
- package/lib/ScaffoldParentChangedError.js.map +0 -1
- package/lib/ScaffoldPublicationError.d.ts +0 -17
- package/lib/ScaffoldPublicationError.js +0 -46
- package/lib/ScaffoldPublicationError.js.map +0 -1
- package/lib/assertOrdinaryFile.d.ts +0 -13
- package/lib/assertOrdinaryFile.js +0 -20
- package/lib/assertOrdinaryFile.js.map +0 -1
- package/lib/assertOrdinarySingleLinkFile.d.ts +0 -13
- package/lib/assertOrdinarySingleLinkFile.js +0 -22
- package/lib/assertOrdinarySingleLinkFile.js.map +0 -1
- package/lib/assertScaffoldOwnership.d.ts +0 -13
- package/lib/assertScaffoldOwnership.js +0 -24
- package/lib/assertScaffoldOwnership.js.map +0 -1
- package/lib/assertScaffoldPhysicalDirectory.d.ts +0 -16
- package/lib/assertScaffoldPhysicalDirectory.js +0 -26
- package/lib/assertScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/attachScaffoldSyncState.d.ts +0 -18
- package/lib/attachScaffoldSyncState.js +0 -30
- package/lib/attachScaffoldSyncState.js.map +0 -1
- package/lib/captureEmptyScaffoldPhysicalDirectory.d.ts +0 -13
- package/lib/captureEmptyScaffoldPhysicalDirectory.js +0 -69
- package/lib/captureEmptyScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/captureScaffoldFile.d.ts +0 -13
- package/lib/captureScaffoldFile.js +0 -67
- package/lib/captureScaffoldFile.js.map +0 -1
- package/lib/captureScaffoldPhysicalDirectory.d.ts +0 -13
- package/lib/captureScaffoldPhysicalDirectory.js +0 -63
- package/lib/captureScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/combineScaffoldFailures.d.ts +0 -19
- package/lib/combineScaffoldFailures.js +0 -32
- package/lib/combineScaffoldFailures.js.map +0 -1
- package/lib/createAutoMovieCatalogVersionResolver.d.ts +0 -17
- package/lib/createAutoMovieCatalogVersionResolver.js +0 -64
- package/lib/createAutoMovieCatalogVersionResolver.js.map +0 -1
- package/lib/createScaffoldSyncState.d.ts +0 -12
- package/lib/createScaffoldSyncState.js +0 -26
- package/lib/createScaffoldSyncState.js.map +0 -1
- package/lib/createScaffoldVariables.d.ts +0 -25
- package/lib/createScaffoldVariables.js +0 -41
- package/lib/createScaffoldVariables.js.map +0 -1
- package/lib/ensureScaffoldBaseDirectory.d.ts +0 -19
- package/lib/ensureScaffoldBaseDirectory.js +0 -89
- package/lib/ensureScaffoldBaseDirectory.js.map +0 -1
- package/lib/ensureScaffoldFileDirectory.d.ts +0 -25
- package/lib/ensureScaffoldFileDirectory.js +0 -103
- package/lib/ensureScaffoldFileDirectory.js.map +0 -1
- package/lib/inside.d.ts +0 -12
- package/lib/inside.js +0 -57
- package/lib/inside.js.map +0 -1
- package/lib/isScaffoldInstruction.d.ts +0 -12
- package/lib/isScaffoldInstruction.js +0 -29
- package/lib/isScaffoldInstruction.js.map +0 -1
- package/lib/loadWindowsLibrary.d.ts +0 -13
- package/lib/loadWindowsLibrary.js +0 -180
- package/lib/loadWindowsLibrary.js.map +0 -1
- package/lib/mergeScaffoldFiles.d.ts +0 -18
- package/lib/mergeScaffoldFiles.js +0 -37
- package/lib/mergeScaffoldFiles.js.map +0 -1
- package/lib/missingPath.d.ts +0 -12
- package/lib/missingPath.js +0 -18
- package/lib/missingPath.js.map +0 -1
- package/lib/nativeError.d.ts +0 -12
- package/lib/nativeError.js +0 -17
- package/lib/nativeError.js.map +0 -1
- package/lib/openPosixParent.d.ts +0 -13
- package/lib/openPosixParent.js +0 -135
- package/lib/openPosixParent.js.map +0 -1
- package/lib/openWindowsParent.d.ts +0 -13
- package/lib/openWindowsParent.js +0 -224
- package/lib/openWindowsParent.js.map +0 -1
- package/lib/overwriteScaffoldFile.d.ts +0 -22
- package/lib/overwriteScaffoldFile.js +0 -214
- package/lib/overwriteScaffoldFile.js.map +0 -1
- package/lib/physicalDirectoryIdentity.d.ts +0 -15
- package/lib/physicalDirectoryIdentity.js +0 -65
- package/lib/physicalDirectoryIdentity.js.map +0 -1
- package/lib/physicalVersion.d.ts +0 -13
- package/lib/physicalVersion.js +0 -18
- package/lib/physicalVersion.js.map +0 -1
- package/lib/planScaffoldPublication.d.ts +0 -22
- package/lib/planScaffoldPublication.js +0 -100
- package/lib/planScaffoldPublication.js.map +0 -1
- package/lib/planScaffoldSync.d.ts +0 -14
- package/lib/planScaffoldSync.js +0 -102
- package/lib/planScaffoldSync.js.map +0 -1
- package/lib/publishFiles.d.ts +0 -23
- package/lib/publishFiles.js +0 -124
- package/lib/publishFiles.js.map +0 -1
- package/lib/publishNativeScaffoldFile.d.ts +0 -21
- package/lib/publishNativeScaffoldFile.js +0 -211
- package/lib/publishNativeScaffoldFile.js.map +0 -1
- package/lib/publishScaffoldCandidate.d.ts +0 -24
- package/lib/publishScaffoldCandidate.js +0 -70
- package/lib/publishScaffoldCandidate.js.map +0 -1
- package/lib/readAutoMovieScaffoldSources.d.ts +0 -20
- package/lib/readAutoMovieScaffoldSources.js +0 -103
- package/lib/readAutoMovieScaffoldSources.js.map +0 -1
- package/lib/readScaffoldSyncFile.d.ts +0 -16
- package/lib/readScaffoldSyncFile.js +0 -64
- package/lib/readScaffoldSyncFile.js.map +0 -1
- package/lib/renderScaffold.d.ts +0 -19
- package/lib/renderScaffold.js +0 -33
- package/lib/renderScaffold.js.map +0 -1
- package/lib/renderScaffoldEntries.d.ts +0 -20
- package/lib/renderScaffoldEntries.js +0 -106
- package/lib/renderScaffoldEntries.js.map +0 -1
- package/lib/renderScaffoldInstructions.d.ts +0 -17
- package/lib/renderScaffoldInstructions.js +0 -23
- package/lib/renderScaffoldInstructions.js.map +0 -1
- package/lib/renderScaffoldLayer.d.ts +0 -20
- package/lib/renderScaffoldLayer.js +0 -28
- package/lib/renderScaffoldLayer.js.map +0 -1
- package/lib/renderTemplate.d.ts +0 -19
- package/lib/renderTemplate.js +0 -56
- package/lib/renderTemplate.js.map +0 -1
- package/lib/renderWorkspaceProductionScaffold.d.ts +0 -19
- package/lib/renderWorkspaceProductionScaffold.js +0 -30
- package/lib/renderWorkspaceProductionScaffold.js.map +0 -1
- package/lib/renderWorkspaceScaffold.d.ts +0 -19
- package/lib/renderWorkspaceScaffold.js +0 -33
- package/lib/renderWorkspaceScaffold.js.map +0 -1
- package/lib/replaceSharedScaffoldFile.d.ts +0 -30
- package/lib/replaceSharedScaffoldFile.js +0 -106
- package/lib/replaceSharedScaffoldFile.js.map +0 -1
- package/lib/resolveAutoMovieCatalogVersion.d.ts +0 -19
- package/lib/resolveAutoMovieCatalogVersion.js +0 -24
- package/lib/resolveAutoMovieCatalogVersion.js.map +0 -1
- package/lib/resolveAutoMovieTemplateDependencyVersions.d.ts +0 -19
- package/lib/resolveAutoMovieTemplateDependencyVersions.js +0 -62
- package/lib/resolveAutoMovieTemplateDependencyVersions.js.map +0 -1
- package/lib/resolveScaffoldPosixConstants.d.ts +0 -13
- package/lib/resolveScaffoldPosixConstants.js +0 -44
- package/lib/resolveScaffoldPosixConstants.js.map +0 -1
- package/lib/scaffoldAssetDirectory.d.ts +0 -19
- package/lib/scaffoldAssetDirectory.js +0 -63
- package/lib/scaffoldAssetDirectory.js.map +0 -1
- package/lib/scaffoldPhysicalIdentity.d.ts +0 -18
- package/lib/scaffoldPhysicalIdentity.js +0 -22
- package/lib/scaffoldPhysicalIdentity.js.map +0 -1
- package/lib/scaffoldSharedSkillDirectory.d.ts +0 -17
- package/lib/scaffoldSharedSkillDirectory.js +0 -62
- package/lib/scaffoldSharedSkillDirectory.js.map +0 -1
- package/lib/skills/3d-modeling/conditioning.md +0 -82
- package/lib/skills/3d-modeling/crafting.md +0 -82
- package/lib/skills/3d-modeling/diffusion.md +0 -34
- package/lib/skills/3d-modeling/inspection.md +0 -54
- package/lib/skills/3d-modeling/lofting.md +0 -43
- package/lib/skills/3d-modeling/modularization.md +0 -31
- package/lib/skills/3d-modeling/recovery.md +0 -29
- package/lib/skills/3d-modeling/rigging.md +0 -97
- package/lib/skills/3d-modeling/sources.md +0 -29
- package/lib/skills/contracts/development/common.md +0 -13
- package/lib/skills/contracts/development/design.md +0 -28
- package/lib/skills/contracts/development/implementation.md +0 -49
- package/lib/skills/contracts/development/testing.md +0 -27
- package/lib/skills/development/repair.md +0 -13
- package/lib/skills/documentation/SKILL.md +0 -25
- package/lib/skills/documentation/writing.md +0 -51
- package/lib/skills/motion/authoring.md +0 -51
- package/lib/skills/motion/contacts.md +0 -39
- package/lib/skills/motion/laws.md +0 -23
- package/lib/skills/motion/layers.md +0 -7
- package/lib/skills/motion/transitions.md +0 -27
- package/lib/skills/motion/variation.md +0 -23
- package/lib/skills/motion/verification.md +0 -36
- package/lib/skills/prompting/SKILL.md +0 -80
- package/lib/skills/visual-debugging/capture.md +0 -60
- package/lib/skills/visual-debugging/correction-rounds.md +0 -34
- package/lib/skills/visual-debugging/passes.md +0 -29
- package/lib/skills/visual-debugging/rendering-cost.md +0 -5
- package/lib/syncScaffold.d.ts +0 -19
- package/lib/syncScaffold.js +0 -28
- package/lib/syncScaffold.js.map +0 -1
- package/lib/writeFiles.d.ts +0 -20
- package/lib/writeFiles.js +0 -33
- package/lib/writeFiles.js.map +0 -1
- package/lib/writeScaffoldFile.d.ts +0 -35
- package/lib/writeScaffoldFile.js +0 -107
- package/lib/writeScaffoldFile.js.map +0 -1
- package/lib/writtenVersion.d.ts +0 -13
- package/lib/writtenVersion.js +0 -18
- package/lib/writtenVersion.js.map +0 -1
- package/scaffold/instructions/.agents/skills/audio/local-speech.md +0 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/screenplay.md +0 -9
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/screenplay.md +0 -13
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/screenplay.md +0 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/screenplay.md +0 -25
- package/scaffold/instructions/.agents/skills/development/reuse.md +0 -47
- package/scaffold/instructions/.agents/skills/motion/method-references.md +0 -23
- package/scaffold/instructions/.agents/skills/production/sync-and-reorganization.md +0 -21
- package/scaffold/instructions/.agents/skills/story/correction/SKILL.md +0 -13
- package/scaffold/instructions/.agents/skills/story/evidence/SKILL.md +0 -13
- package/scaffold/instructions/.agents/skills/story/evidence/answer-placement.md +0 -13
- package/scaffold/instructions/.agents/skills/story/evidence/answer-writing.md +0 -23
- package/scaffold/instructions/.agents/skills/story/naturalness/SKILL.md +0 -13
- package/scaffold/instructions/.agents/skills/story/naturalness/rewriting.md +0 -17
- package/scaffold/instructions/.agents/skills/story/naturalness/transfer.md +0 -11
- package/scaffold/instructions/.agents/skills/story/workflow.md +0 -61
- package/scaffold/instructions/.agents/skills/video/diffusion.md +0 -33
- package/scaffold/instructions/.agents/skills/video/prompts.md +0 -51
- package/scaffold/production/evidence.config.ts +0 -12
- package/scaffold/production/src/executable/capture.ts +0 -489
- package/scaffold/production/src/executable/planCaptureStills.ts +0 -65
- package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureError.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureErrorCode.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessWaitUntil.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureOptions.ts +0 -79
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureSession.ts +0 -39
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessFrameWriter.ts +0 -20
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessLocator.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessPage.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/createHeadlessCaptureAdapter.ts +0 -92
- package/scaffold/production/src/executable/render/headlessCapture/index.ts +0 -9
- package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoOptions.ts +0 -128
- package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoResult.ts +0 -43
- package/scaffold/production/src/executable/render/node/IProductionRenditionClip.ts +0 -44
- package/scaffold/production/src/executable/render/node/acquireViewerBrowser.ts +0 -24
- package/scaffold/production/src/executable/render/node/addProductionMp4Sample.ts +0 -89
- package/scaffold/production/src/executable/render/node/appendLosslessVideoClip.ts +0 -62
- package/scaffold/production/src/executable/render/node/assembleProductionChunkVideoMp4.ts +0 -167
- package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionClips.ts +0 -184
- package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionVideo.ts +0 -127
- package/scaffold/production/src/executable/render/node/assertProductionRenditionClipDelivery.ts +0 -102
- package/scaffold/production/src/executable/render/node/cache/IAutoMovieDirectoryArtifactStore.ts +0 -59
- package/scaffold/production/src/executable/render/node/cache/IAutoMovieViewerFrameCacheReport.ts +0 -30
- package/scaffold/production/src/executable/render/node/cache/cacheViewerCaptureSession.ts +0 -187
- package/scaffold/production/src/executable/render/node/cache/composeViewerFrameKeys.ts +0 -55
- package/scaffold/production/src/executable/render/node/cache/createAutoMovieArtifactMiddleware.ts +0 -107
- package/scaffold/production/src/executable/render/node/cache/createAutoMovieDirectoryArtifactStore.ts +0 -203
- package/scaffold/production/src/executable/render/node/cache/digestAutoMovieSourceTree.ts +0 -66
- package/scaffold/production/src/executable/render/node/cache/readViewerFrameStates.ts +0 -95
- package/scaffold/production/src/executable/render/node/capture/DEFAULT_CHROME_EXECUTABLE.ts +0 -11
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageOperationFailure.ts +0 -13
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeArtifact.ts +0 -30
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeOptions.ts +0 -51
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceMetadata.ts +0 -27
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderArtifact.ts +0 -44
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderOptions.ts +0 -43
- package/scaffold/production/src/executable/render/node/capture/IAutoMovieSequenceDissolvePixelCheck.ts +0 -39
- package/scaffold/production/src/executable/render/node/capture/captureRenderAndSee.ts +0 -233
- package/scaffold/production/src/executable/render/node/capture/captureSequenceRenderAndSee.ts +0 -377
- package/scaffold/production/src/executable/render/node/capture/index.ts +0 -14
- package/scaffold/production/src/executable/render/node/capture/preserveCleanupFailure.ts +0 -34
- package/scaffold/production/src/executable/render/node/capture/renderAndSeeCommand.ts +0 -169
- package/scaffold/production/src/executable/render/node/capture/renderSequenceAndSeeCommand.ts +0 -165
- package/scaffold/production/src/executable/render/node/capture/verifySequenceDissolvePixels.ts +0 -179
- package/scaffold/production/src/executable/render/node/conformProductionRenditionVideoMp4.ts +0 -86
- package/scaffold/production/src/executable/render/node/conformProductionVisualDeliveryVideoMp4.ts +0 -230
- package/scaffold/production/src/executable/render/node/decodeAutoMovieDelivery.ts +0 -253
- package/scaffold/production/src/executable/render/node/equalRational.ts +0 -36
- package/scaffold/production/src/executable/render/node/exactProductionClockProduct.ts +0 -26
- package/scaffold/production/src/executable/render/node/exportModelToGLB.ts +0 -267
- package/scaffold/production/src/executable/render/node/index.ts +0 -27
- package/scaffold/production/src/executable/render/node/loadModelGltfCore.ts +0 -18
- package/scaffold/production/src/executable/render/node/mixAutoMovieAudioCues.ts +0 -74
- package/scaffold/production/src/executable/render/node/muxProductionFeatureMp4.ts +0 -170
- package/scaffold/production/src/executable/render/node/neutralTrackPresentation.ts +0 -59
- package/scaffold/production/src/executable/render/node/normalizeProductionH264Mp4.ts +0 -110
- package/scaffold/production/src/executable/render/node/openLosslessVideoTrack.ts +0 -81
- package/scaffold/production/src/executable/render/node/parseMp4.ts +0 -46
- package/scaffold/production/src/executable/render/node/parseProductionMp4Output.ts +0 -70
- package/scaffold/production/src/executable/render/node/parseProductionRenditionClip.ts +0 -92
- package/scaffold/production/src/executable/render/node/planViewerVideo.ts +0 -140
- package/scaffold/production/src/executable/render/node/probeParsedProductionVideoMp4.ts +0 -48
- package/scaffold/production/src/executable/render/node/probeProductionPngPicture.ts +0 -223
- package/scaffold/production/src/executable/render/node/probeProductionRenderedMedia.ts +0 -355
- package/scaffold/production/src/executable/render/node/probeProductionVideoMp4.ts +0 -27
- package/scaffold/production/src/executable/render/node/probeVideoTrack.ts +0 -220
- package/scaffold/production/src/executable/render/node/productionRenditionVideoPlan.ts +0 -149
- package/scaffold/production/src/executable/render/node/recordViewerPlayback.ts +0 -137
- package/scaffold/production/src/executable/render/node/renderViewerFrames.ts +0 -139
- package/scaffold/production/src/executable/render/node/renderViewerVideo.ts +0 -301
- package/scaffold/production/src/executable/render/node/renderViewerVideoSession.ts +0 -75
- package/scaffold/production/src/executable/render/node/residentMp4Box.ts +0 -36
- package/scaffold/production/src/executable/render/node/residentPngJs.ts +0 -26
- package/scaffold/production/src/executable/render/node/runViewerVideoEncoder.ts +0 -58
- package/scaffold/production/src/executable/render/node/sameSampleDescription.ts +0 -43
- package/scaffold/production/src/executable/render/node/sameSampleFlags.ts +0 -28
- package/scaffold/production/src/executable/render/node/sampleBytes.ts +0 -46
- package/scaffold/production/src/executable/render/node/sampleDescription.ts +0 -40
- package/scaffold/production/src/executable/render/node/sampleOptions.ts +0 -37
- package/scaffold/production/src/executable/render/node/serializeDescriptionBox.ts +0 -29
- package/scaffold/production/src/executable/render/node/trimProductionAudioPresentation.ts +0 -115
- package/scaffold/production/src/executable/render/node/verifySampleStorage.ts +0 -86
- package/scaffold/production/src/executable/render/node/writeViewerFrameSheet.ts +0 -101
- package/scaffold/production/src/executable/render.ts +0 -92
- package/scaffold/production/src/executable/review.ts +0 -54
- package/scaffold/production/src/executable/viewer/inspection/createViewerDiskSource.ts +0 -119
- package/scaffold/production/src/executable/viewer/inspection/readViewerMaintainedSourceFiles.ts +0 -64
- package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureError.ts +0 -41
- package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureErrorCode.ts +0 -22
- package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessWaitUntil.ts +0 -18
- package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessLocator.ts +0 -32
- package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessPage.ts +0 -130
- package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureOptions.ts +0 -38
- package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureSession.ts +0 -41
- package/scaffold/production/src/executable/viewer/node/capture/createViewerCaptureSession.ts +0 -154
- package/scaffold/production/src/executable/viewer/node/capture/index.ts +0 -8
- package/scaffold/production/src/executable/viewer/node/index.ts +0 -2
- package/scaffold/production/src/executable/viewer/process/ProcessOwnership.ts +0 -102
- package/scaffold/production/src/executable/viewer/process/internal/IProcessChildObservation.ts +0 -18
- package/scaffold/production/src/executable/viewer/process/internal/IProcessOwnershipHost.ts +0 -70
- package/scaffold/production/src/executable/viewer/process/internal/ProcessOwnershipController.ts +0 -125
- package/scaffold/production/src/executable/viewer/process/internal/WindowsProcessOwnershipPrograms.ts +0 -52
- package/scaffold/production/src/executable/viewer/process/internal/createNodeProcessOwnershipHost.ts +0 -41
- package/scaffold/production/src/executable/viewer/process/internal/decodeLinuxProcessIdentity.ts +0 -22
- package/scaffold/production/src/executable/viewer/process/internal/decodePosixProcessIdentity.ts +0 -24
- package/scaffold/production/src/executable/viewer/process/internal/decodeWindowsProcessResult.ts +0 -24
- package/scaffold/production/src/executable/viewer/process/internal/readNativeProcessIdentity.ts +0 -45
- package/scaffold/production/src/executable/viewer/process/internal/requireProcessId.ts +0 -15
- package/scaffold/production/src/executable/viewer/process/internal/resolveProcessIdentityReadError.ts +0 -15
- package/scaffold/production/src/executable/viewer/process/internal/runWindowsProcessOperation.ts +0 -41
- package/scaffold/production/src/executable/viewer/process/internal/selectProcessOwnershipTree.ts +0 -68
- package/scaffold/production/test/features/executable/test_plan_capture_stills.ts +0 -75
- package/scaffold/workspace/pnpm-workspace.yaml +0 -46
- package/src/AUTOMOVIE_TEMPLATE_CATALOGS.ts +0 -48
- package/src/AUTOMOVIE_TEMPLATE_VERSIONS.ts +0 -39
- package/src/AutoMovieScaffoldLayer.ts +0 -18
- package/src/FILE_ATTRIBUTE_DIRECTORY.ts +0 -2
- package/src/IAutoMovieCatalogVersionProps.ts +0 -18
- package/src/IAutoMovieScaffoldSourceEntry.ts +0 -19
- package/src/IAutoMovieTemplateDependencyVersionsProps.ts +0 -19
- package/src/IAutoMovieWorkspacePackageVersions.ts +0 -44
- package/src/IBoundChild.ts +0 -86
- package/src/IBoundChildStatus.ts +0 -24
- package/src/IBoundParent.ts +0 -65
- package/src/IBoundParentStatus.ts +0 -15
- package/src/ICreateResult.ts +0 -35
- package/src/IScaffoldCompletedFilePublicationOutcome.ts +0 -17
- package/src/IScaffoldCompletedPublication.ts +0 -17
- package/src/IScaffoldFileSnapshot.ts +0 -28
- package/src/IScaffoldParentPublicationRequest.ts +0 -29
- package/src/IScaffoldPartialFilePublicationOutcome.ts +0 -25
- package/src/IScaffoldPhysicalDirectory.ts +0 -22
- package/src/IScaffoldPosixConstants.ts +0 -30
- package/src/IScaffoldPublicationEntry.ts +0 -22
- package/src/IScaffoldPublicationFailure.ts +0 -18
- package/src/IScaffoldPublicationOptions.ts +0 -19
- package/src/IScaffoldPublicationReceipt.ts +0 -29
- package/src/IScaffoldRefusedFilePublicationOutcome.ts +0 -20
- package/src/IScaffoldSyncPlan.ts +0 -26
- package/src/IScaffoldSyncProps.ts +0 -16
- package/src/IWindowsFileInformation.ts +0 -24
- package/src/IWindowsLibrary.ts +0 -148
- package/src/SCAFFOLD_SYNC_STATE_FILE.ts +0 -5
- package/src/ScaffoldFilePublicationOutcome.ts +0 -18
- package/src/ScaffoldParentChangedError.ts +0 -14
- package/src/ScaffoldPublicationError.ts +0 -58
- package/src/assertOrdinaryFile.ts +0 -20
- package/src/assertOrdinarySingleLinkFile.ts +0 -26
- package/src/assertScaffoldOwnership.ts +0 -29
- package/src/assertScaffoldPhysicalDirectory.ts +0 -29
- package/src/attachScaffoldSyncState.ts +0 -30
- package/src/captureEmptyScaffoldPhysicalDirectory.ts +0 -45
- package/src/captureScaffoldFile.ts +0 -34
- package/src/captureScaffoldPhysicalDirectory.ts +0 -34
- package/src/combineScaffoldFailures.ts +0 -35
- package/src/createAutoMovieCatalogVersionResolver.ts +0 -117
- package/src/createScaffoldSyncState.ts +0 -33
- package/src/createScaffoldVariables.ts +0 -50
- package/src/ensureScaffoldBaseDirectory.ts +0 -55
- package/src/ensureScaffoldFileDirectory.ts +0 -75
- package/src/inside.ts +0 -25
- package/src/isScaffoldInstruction.ts +0 -29
- package/src/loadWindowsLibrary.ts +0 -277
- package/src/mergeScaffoldFiles.ts +0 -39
- package/src/missingPath.ts +0 -16
- package/src/nativeError.ts +0 -15
- package/src/openPosixParent.ts +0 -155
- package/src/openWindowsParent.ts +0 -305
- package/src/overwriteScaffoldFile.ts +0 -262
- package/src/physicalDirectoryIdentity.ts +0 -33
- package/src/physicalVersion.ts +0 -18
- package/src/planScaffoldPublication.ts +0 -100
- package/src/planScaffoldSync.ts +0 -122
- package/src/publishFiles.ts +0 -120
- package/src/publishNativeScaffoldFile.ts +0 -287
- package/src/publishScaffoldCandidate.ts +0 -94
- package/src/readAutoMovieScaffoldSources.ts +0 -82
- package/src/readScaffoldSyncFile.ts +0 -66
- package/src/renderScaffold.ts +0 -43
- package/src/renderScaffoldEntries.ts +0 -110
- package/src/renderScaffoldInstructions.ts +0 -22
- package/src/renderScaffoldLayer.ts +0 -38
- package/src/renderTemplate.ts +0 -62
- package/src/renderWorkspaceProductionScaffold.ts +0 -35
- package/src/renderWorkspaceScaffold.ts +0 -43
- package/src/replaceSharedScaffoldFile.ts +0 -88
- package/src/resolveAutoMovieCatalogVersion.ts +0 -27
- package/src/resolveAutoMovieTemplateDependencyVersions.ts +0 -70
- package/src/resolveScaffoldPosixConstants.ts +0 -50
- package/src/scaffoldAssetDirectory.ts +0 -30
- package/src/scaffoldPhysicalIdentity.ts +0 -21
- package/src/scaffoldSharedSkillDirectory.ts +0 -25
- package/src/syncScaffold.ts +0 -38
- package/src/writeFiles.ts +0 -48
- package/src/writeScaffoldFile.ts +0 -88
- package/src/writtenVersion.ts +0 -19
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$crafting.md → $crafting} +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$diffusion.md → diffusion/$image-hints.md} +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$lofting.md → diffusion/$models.md} +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$recovery.md → diffusion/$prompts.md} +0 -0
- /package/scaffold/instructions/.agents/skills/{motion/$authoring.md → 3d-modeling/diffusion/$request.md} +0 -0
- /package/scaffold/instructions/.agents/skills/{motion/$contacts.md → 3d-modeling/diffusion/$shape-hints.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$laws.md → laws/$authoring.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$layers.md → laws/$contacts.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$transitions.md → laws/$declaration.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$variation.md → laws/$transitions.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$verification.md → laws/$variation.md} +0 -0
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import * as path from "node:path";
|
|
2
|
-
|
|
3
|
-
import type { IAutoMovieScaffoldSourceEntry } from "./IAutoMovieScaffoldSourceEntry";
|
|
4
|
-
import { renderTemplate } from "./renderTemplate";
|
|
5
|
-
|
|
6
|
-
/** One source entry after rendering, keeping its source path for diagnostics. */
|
|
7
|
-
interface IRenderedScaffoldEntry {
|
|
8
|
-
content: string;
|
|
9
|
-
relative: string;
|
|
10
|
-
source: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Normalize `\r\n` to `\n` so the scaffold emits identical bytes on every host: a Windows checkout with `core.autocrlf` would otherwise ship CRLF. The tree is text only, so the replacement cannot corrupt binary content.
|
|
15
|
-
*/
|
|
16
|
-
const normalizeLineEndings: (content: string) => string = (
|
|
17
|
-
content: string,
|
|
18
|
-
): string => content.replaceAll("\r\n", "\n");
|
|
19
|
-
|
|
20
|
-
/** Join path segments with `/` so map keys do not depend on the host. */
|
|
21
|
-
const toPosix: (value: string) => string = (value: string): string =>
|
|
22
|
-
value.split(path.sep).join("/");
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The rendered key for one scaffold-relative path.
|
|
26
|
-
*
|
|
27
|
-
* Path segments get the same strict substitution and unknown-token failure as file contents, so a templated path cannot ship verbatim. The root `_gitignore` stand-in becomes `.gitignore` only here, because npm pack renames a packed `.gitignore` to `.npmignore`; nested files of that name stay ordinary paths.
|
|
28
|
-
*/
|
|
29
|
-
const renderKey: (
|
|
30
|
-
relative: string,
|
|
31
|
-
variables: Readonly<Record<string, string>>,
|
|
32
|
-
) => string = (
|
|
33
|
-
relative: string,
|
|
34
|
-
variables: Readonly<Record<string, string>>,
|
|
35
|
-
): string => {
|
|
36
|
-
const dir: string = path.dirname(relative);
|
|
37
|
-
const base: string = path.basename(relative);
|
|
38
|
-
const outputBase: string =
|
|
39
|
-
dir === "." && base === "_gitignore" ? ".gitignore" : base;
|
|
40
|
-
return renderTemplate(
|
|
41
|
-
toPosix(dir === "." ? outputBase : path.join(dir, outputBase)),
|
|
42
|
-
variables,
|
|
43
|
-
);
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Render a list of scaffold sources into a `{ posixPath: content }` map, refusing the whole list when two sources render to the same path.
|
|
48
|
-
*
|
|
49
|
-
* Each content has CRLF normalized to LF and its tokens rendered; each path is rendered the same way, with `/` separators, and a root `_gitignore` becomes `.gitignore`, so a scaffold that ships both is refused as a collision. The collision error names the first colliding path in code-unit order and both source paths, independent of the input order. The returned object has no prototype, so a key such as `__proto__` is an ordinary file path.
|
|
50
|
-
*
|
|
51
|
-
* @param entries Source paths relative to the scaffold root, with their text.
|
|
52
|
-
* @param variables Token values, as for {@link renderTemplate}.
|
|
53
|
-
* @returns The rendered file map.
|
|
54
|
-
* @throws On a collision or on any token error from {@link renderTemplate}.
|
|
55
|
-
*
|
|
56
|
-
* @evidence contracts/development/implementation.md#principled-implementation Collisions are found by sorting rendered entries by output path, then source path, and comparing neighbours, which detects a duplicate whenever one exists and reports the smallest colliding path regardless of input order; string relational operators compare UTF-16 code units, so the order does not depend on the host locale; `Object.defineProperty` on a null-prototype object stores `__proto__` as data instead of invoking the setter.
|
|
57
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The function owns line endings, path rendering, the `.gitignore` rename, and collision refusal for an explicit source list, while `renderScaffold` owns reading the scaffold from disk, so this step works on any list without file-system access.
|
|
58
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The `_gitignore` rename is the one path special case, and its basis is npm's documented renaming of `.gitignore` in packed packages; a collision is refused rather than resolved by keeping either source.
|
|
59
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the normalization, the path rules and the rename, what a collision reports and that it is order independent, the null prototype, and what throws.
|
|
60
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Each content and path is rendered once with renderTemplate's token-search and string-construction costs. Collision reporting sorts a copy of n rendered entries, using n log n path comparisons whose cost depends on shared path prefixes, then scans neighbours once to choose the smallest collision deterministically.
|
|
61
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Every entry renders distinct text once; there is no repeated computation within a call, and a new call receives a new source list.
|
|
62
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The rendered list and its sorted copy live only for the call; the returned map holds one string per entry and is owned by the caller.
|
|
63
|
-
*/
|
|
64
|
-
export const renderScaffoldEntries: (
|
|
65
|
-
entries: readonly IAutoMovieScaffoldSourceEntry[],
|
|
66
|
-
variables: Readonly<Record<string, string>>,
|
|
67
|
-
) => Record<string, string> = (
|
|
68
|
-
entries: readonly IAutoMovieScaffoldSourceEntry[],
|
|
69
|
-
variables: Readonly<Record<string, string>>,
|
|
70
|
-
): Record<string, string> => {
|
|
71
|
-
const rendered: IRenderedScaffoldEntry[] = entries.map(
|
|
72
|
-
(entry: IAutoMovieScaffoldSourceEntry): IRenderedScaffoldEntry => ({
|
|
73
|
-
content: renderTemplate(normalizeLineEndings(entry.content), variables),
|
|
74
|
-
relative: renderKey(entry.relative, variables),
|
|
75
|
-
source: toPosix(entry.relative),
|
|
76
|
-
}),
|
|
77
|
-
);
|
|
78
|
-
const ordered: IRenderedScaffoldEntry[] = [...rendered].sort(
|
|
79
|
-
(left: IRenderedScaffoldEntry, right: IRenderedScaffoldEntry): number =>
|
|
80
|
-
left.relative < right.relative
|
|
81
|
-
? -1
|
|
82
|
-
: left.relative > right.relative
|
|
83
|
-
? 1
|
|
84
|
-
: left.source < right.source
|
|
85
|
-
? -1
|
|
86
|
-
: left.source > right.source
|
|
87
|
-
? 1
|
|
88
|
-
: 0,
|
|
89
|
-
);
|
|
90
|
-
for (let index: number = 1; index < ordered.length; index++) {
|
|
91
|
-
const previous: IRenderedScaffoldEntry = ordered[index - 1]!;
|
|
92
|
-
const current: IRenderedScaffoldEntry = ordered[index]!;
|
|
93
|
-
if (previous.relative === current.relative)
|
|
94
|
-
throw new Error(
|
|
95
|
-
`scaffold sources collide at rendered path "${current.relative}": "${previous.source}", "${current.source}"`,
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
const files: Record<string, string> = Object.create(null) as Record<
|
|
99
|
-
string,
|
|
100
|
-
string
|
|
101
|
-
>;
|
|
102
|
-
for (const entry of rendered)
|
|
103
|
-
Object.defineProperty(files, entry.relative, {
|
|
104
|
-
configurable: true,
|
|
105
|
-
enumerable: true,
|
|
106
|
-
value: entry.content,
|
|
107
|
-
writable: true,
|
|
108
|
-
});
|
|
109
|
-
return files;
|
|
110
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { renderScaffoldLayer } from "./renderScaffoldLayer";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Render the shared instruction surface: `AGENTS.md`, `CLAUDE.md` and `.agents/skills`, with every `$<name>` placeholder expanded.
|
|
5
|
-
*
|
|
6
|
-
* The layer is rendered with no tokens, so its bytes are identical for a single production and a workspace root, and explicit sync can compare either against one bundle. A token in an instruction file fails the render.
|
|
7
|
-
*
|
|
8
|
-
* @returns The instruction files, relative to the directory holding `AGENTS.md`.
|
|
9
|
-
* @throws As {@link renderScaffoldLayer} does.
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/implementation.md#principled-implementation An empty token table makes the instruction bytes independent of the project name and layout, which is what lets one sync plan serve both installations.
|
|
12
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Creation and sync obtain the instruction surface from this one function.
|
|
13
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No installation-specific value reaches the instructions; a layout difference belongs to the production or workspace layer.
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the content, why no tokens are supplied, and what fails.
|
|
15
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One layer render, with the costs of the reader and renderer.
|
|
16
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call reads the installed bundle as it is now.
|
|
17
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned map is owned by the caller.
|
|
18
|
-
*/
|
|
19
|
-
export const renderScaffoldInstructions: () => Record<
|
|
20
|
-
string,
|
|
21
|
-
string
|
|
22
|
-
> = (): Record<string, string> => renderScaffoldLayer("instructions", {});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { AutoMovieScaffoldLayer } from "./AutoMovieScaffoldLayer";
|
|
2
|
-
import { readAutoMovieScaffoldSources } from "./readAutoMovieScaffoldSources";
|
|
3
|
-
import { renderScaffoldEntries } from "./renderScaffoldEntries";
|
|
4
|
-
import { scaffoldAssetDirectory } from "./scaffoldAssetDirectory";
|
|
5
|
-
import { scaffoldSharedSkillDirectory } from "./scaffoldSharedSkillDirectory";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Render one bundled scaffold layer into a `{ posixPath: content }` map relative to the directory it installs into.
|
|
9
|
-
*
|
|
10
|
-
* The layer's files are read with each `$<name>` placeholder expanded by {@link readAutoMovieScaffoldSources}, then rendered by {@link renderScaffoldEntries}: LF line endings, tokens replaced from `variables`, the layer-root `_gitignore` returned as `.gitignore`, and colliding paths refused.
|
|
11
|
-
*
|
|
12
|
-
* @param layer The layer to render.
|
|
13
|
-
* @param variables Token values; a token absent from them fails the render.
|
|
14
|
-
* @returns The rendered layer.
|
|
15
|
-
* @throws When the layer or shared-skill directory is missing, on a placeholder refusal, or on a token error or path collision.
|
|
16
|
-
*
|
|
17
|
-
* @evidence contracts/development/implementation.md#principled-implementation Each layer is an ordinary scaffold root, so the existing reader and renderer apply unchanged, including the root `_gitignore` rename per installed directory.
|
|
18
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The function only joins location, reading and rendering; composition and naming stay with the public renderers.
|
|
19
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No layer or file is special-cased here; any failure throws instead of returning part of a layer.
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states what is read, how it is rendered, and what throws.
|
|
21
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The layer is walked and each file read and rendered once, with the costs of the reader and renderer it calls.
|
|
22
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call reads the layer as installed now; a render reads each layer at most once.
|
|
23
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Reads close before returning, and the returned map is owned by the caller.
|
|
24
|
-
*/
|
|
25
|
-
export const renderScaffoldLayer: (
|
|
26
|
-
layer: AutoMovieScaffoldLayer,
|
|
27
|
-
variables: Readonly<Record<string, string>>,
|
|
28
|
-
) => Record<string, string> = (
|
|
29
|
-
layer: AutoMovieScaffoldLayer,
|
|
30
|
-
variables: Readonly<Record<string, string>>,
|
|
31
|
-
): Record<string, string> =>
|
|
32
|
-
renderScaffoldEntries(
|
|
33
|
-
readAutoMovieScaffoldSources(
|
|
34
|
-
scaffoldAssetDirectory(layer),
|
|
35
|
-
scaffoldSharedSkillDirectory(),
|
|
36
|
-
),
|
|
37
|
-
variables,
|
|
38
|
-
);
|
package/src/renderTemplate.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Replace every `{{key}}` token in `content` with `variables[key]`.
|
|
3
|
-
*
|
|
4
|
-
* A key is one or more of `A-Z`, `a-z`, `0-9`, `:`, `_`, `@`, `.`, `/`, and `-`, such as `name` or `version:engine`. Everything else is an error, so a mistyped placeholder fails the render instead of shipping a broken file: a `{{` without a later `}}`, a `}}` before any `{{`, an empty, blank, or malformed key, a key that is not an own property of `variables`, and a value that itself contains `{{` or `}}`. A replaced value is never scanned again.
|
|
5
|
-
*
|
|
6
|
-
* @param content Template text.
|
|
7
|
-
* @param variables Values by key; inherited properties are not keys.
|
|
8
|
-
* @returns The rendered text.
|
|
9
|
-
* @throws On any of the errors listed above, naming the token or offset.
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/implementation.md#principled-implementation A left-to-right cursor finds delimiter pairs with indexOf and appends intervening text and selected values. The key pattern excludes braces and each value is checked for delimiters, so substituted values are never rescanned and malformed input throws before a result is returned.
|
|
12
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function serves both file contents and path segments in `renderScaffoldEntries`, so paths and payloads follow the same token rules.
|
|
13
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts An unknown key throws rather than being left in place or blanked, and the own-property check keeps `__proto__` or `constructor` from resolving through the prototype.
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the key alphabet, every refusal with its reason, that inherited properties are not keys, and that values are not rescanned.
|
|
15
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Delimiter searches advance with the cursor and examine input spans a bounded number of times; key and value checks add their visited lengths. Output uses repeated string concatenation, whose allocation and copying cost depends on the JavaScript engine's string representation, so this owner does not guarantee linear output construction.
|
|
16
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call renders one distinct text; `renderScaffoldEntries` calls it once per file content and once per path.
|
|
17
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The function builds one output string and retains nothing after returning.
|
|
18
|
-
*/
|
|
19
|
-
export const renderTemplate: (
|
|
20
|
-
content: string,
|
|
21
|
-
variables: Readonly<Record<string, string>>,
|
|
22
|
-
) => string = (
|
|
23
|
-
content: string,
|
|
24
|
-
variables: Readonly<Record<string, string>>,
|
|
25
|
-
): string => {
|
|
26
|
-
let cursor: number = 0;
|
|
27
|
-
let rendered: string = "";
|
|
28
|
-
while (cursor < content.length) {
|
|
29
|
-
const opening: number = content.indexOf("{{", cursor);
|
|
30
|
-
const closing: number = content.indexOf("}}", cursor);
|
|
31
|
-
if (closing !== -1 && (opening === -1 || closing < opening))
|
|
32
|
-
throw new Error(
|
|
33
|
-
`unmatched scaffold placeholder closing delimiter at offset ${closing}`,
|
|
34
|
-
);
|
|
35
|
-
if (opening === -1) {
|
|
36
|
-
rendered += content.slice(cursor);
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
rendered += content.slice(cursor, opening);
|
|
40
|
-
const end: number = content.indexOf("}}", opening + 2);
|
|
41
|
-
if (end === -1)
|
|
42
|
-
throw new Error(
|
|
43
|
-
`unmatched scaffold placeholder opening delimiter at offset ${opening}`,
|
|
44
|
-
);
|
|
45
|
-
const key: string = content.slice(opening + 2, end);
|
|
46
|
-
if (key.length === 0) throw new Error("empty scaffold placeholder: {{}}");
|
|
47
|
-
if (key.trim().length === 0)
|
|
48
|
-
throw new Error(`whitespace scaffold placeholder: {{${key}}}`);
|
|
49
|
-
if (/^[A-Za-z0-9:_@./-]+$/u.test(key) === false)
|
|
50
|
-
throw new Error(`malformed scaffold placeholder: {{${key}}}`);
|
|
51
|
-
if (Object.prototype.hasOwnProperty.call(variables, key) === false)
|
|
52
|
-
throw new Error(`unknown scaffold variable: {{${key}}}`);
|
|
53
|
-
const value: string = variables[key]!;
|
|
54
|
-
if (value.includes("{{") || value.includes("}}"))
|
|
55
|
-
throw new Error(
|
|
56
|
-
`scaffold variable {{${key}}} expands to placeholder syntax`,
|
|
57
|
-
);
|
|
58
|
-
rendered += value;
|
|
59
|
-
cursor = end + 2;
|
|
60
|
-
}
|
|
61
|
-
return rendered;
|
|
62
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { IAutoMovieScaffoldProps } from "./IAutoMovieScaffoldProps";
|
|
2
|
-
import { assertScaffoldProjectName } from "./assertScaffoldProjectName";
|
|
3
|
-
import { createScaffoldVariables } from "./createScaffoldVariables";
|
|
4
|
-
import { renderScaffoldLayer } from "./renderScaffoldLayer";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Render one production for a workspace from {@link renderWorkspaceScaffold}, into an in-memory `{ posixPath: content }` map relative to its directory `movies/<shorts|series>/<directory>`.
|
|
8
|
-
*
|
|
9
|
-
* Only the `production` layer is rendered: the instructions and their sync state stay at the workspace root. `{{name}}` is the admitted package name, `{{skills}}` is `../../../.agents/skills`, the workspace root's shared tree three directories up, and every `{{version:<key>}}` is `catalog:<name>` of its `AUTOMOVIE_TEMPLATE_CATALOGS` group, resolved by the root's `pnpm-workspace.yaml`. Nothing is written.
|
|
10
|
-
*
|
|
11
|
-
* @param props The production's package name, admitted by {@link assertScaffoldProjectName}.
|
|
12
|
-
* @returns The rendered file map.
|
|
13
|
-
* @throws When the name is refused, when the layer or the shared-skill directory is missing, or on a token error or path collision.
|
|
14
|
-
*
|
|
15
|
-
* @evidence contracts/development/implementation.md#principled-implementation The fixed depth of `movies/<family>/<directory>` makes the shared skills exactly three directories up, and pnpm resolves `catalog:` through the workspace root's catalog.
|
|
16
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The same production layer serves a single production and a workspace production; only the skills path and dependency mode differ.
|
|
17
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The workspace root is never searched for or inspected; the caller chooses the target, and the layout is documented instead of detected.
|
|
18
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the target directory, what is excluded, every token value, and what throws.
|
|
19
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One layer render with the reader's and renderer's costs.
|
|
20
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call reads the scaffold as installed now and is made once per CLI run.
|
|
21
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Reads close before returning, and the returned map is owned by the caller.
|
|
22
|
-
*/
|
|
23
|
-
export const renderWorkspaceProductionScaffold: (
|
|
24
|
-
props: IAutoMovieScaffoldProps,
|
|
25
|
-
) => Record<string, string> = (
|
|
26
|
-
props: IAutoMovieScaffoldProps,
|
|
27
|
-
): Record<string, string> =>
|
|
28
|
-
renderScaffoldLayer(
|
|
29
|
-
"production",
|
|
30
|
-
createScaffoldVariables({
|
|
31
|
-
name: assertScaffoldProjectName(props.name),
|
|
32
|
-
skills: "../../../.agents/skills",
|
|
33
|
-
dependencies: "catalog",
|
|
34
|
-
}),
|
|
35
|
-
);
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { IAutoMovieScaffoldProps } from "./IAutoMovieScaffoldProps";
|
|
2
|
-
import { assertScaffoldProjectName } from "./assertScaffoldProjectName";
|
|
3
|
-
import { attachScaffoldSyncState } from "./attachScaffoldSyncState";
|
|
4
|
-
import { createScaffoldVariables } from "./createScaffoldVariables";
|
|
5
|
-
import { mergeScaffoldFiles } from "./mergeScaffoldFiles";
|
|
6
|
-
import { renderScaffoldInstructions } from "./renderScaffoldInstructions";
|
|
7
|
-
import { renderScaffoldLayer } from "./renderScaffoldLayer";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Render a pnpm workspace root that holds several productions, into an in-memory `{ posixPath: content }` map.
|
|
11
|
-
*
|
|
12
|
-
* The map joins the shared instruction surface from {@link renderScaffoldInstructions} with the `workspace` layer: `pnpm-workspace.yaml` listing `movies/shorts/*`, `movies/series/*` and `packages/*` with named `catalogs` of the build-time `AUTOMOVIE_TEMPLATE_VERSIONS` ranges, grouped by `AUTOMOVIE_TEMPLATE_CATALOGS` with one anchor per release group, a root `package.json` named by the admitted name with the `automovie` CLI as a development dependency, its README and `.gitignore`. The generated instruction digests are added for explicit later sync. No production is included; {@link renderWorkspaceProductionScaffold} renders each one. Nothing is written.
|
|
13
|
-
*
|
|
14
|
-
* @param props The workspace's name, admitted by {@link assertScaffoldProjectName}.
|
|
15
|
-
* @returns The rendered file map.
|
|
16
|
-
* @throws When the name is refused, when a layer or the shared-skill directory is missing, on a placeholder refusal, on a token error, or on a path collision within or between layers.
|
|
17
|
-
*
|
|
18
|
-
* @evidence contracts/development/implementation.md#principled-implementation The root catalog is rendered from the same version table that a single production's dependencies use, so a workspace production's `catalog:` specifiers resolve to the ranges this package was built with.
|
|
19
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The function chooses the layers and token values; name admission, layer rendering, joining and sync state each have one owner.
|
|
20
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The workspace layer is ordinary scaffold content rendered with the shared tokens; nothing is generated by string assembly here.
|
|
21
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the joined layers, what the workspace layer contains, the added state, what is excluded, and what throws.
|
|
22
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two layer renders, one join pass and one digest per instruction file.
|
|
23
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call reads the scaffold as installed now and is made once per CLI run.
|
|
24
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Reads close before returning, and the returned map is owned by the caller.
|
|
25
|
-
*/
|
|
26
|
-
export const renderWorkspaceScaffold: (
|
|
27
|
-
props: IAutoMovieScaffoldProps,
|
|
28
|
-
) => Record<string, string> = (
|
|
29
|
-
props: IAutoMovieScaffoldProps,
|
|
30
|
-
): Record<string, string> =>
|
|
31
|
-
attachScaffoldSyncState(
|
|
32
|
-
mergeScaffoldFiles(
|
|
33
|
-
renderScaffoldInstructions(),
|
|
34
|
-
renderScaffoldLayer(
|
|
35
|
-
"workspace",
|
|
36
|
-
createScaffoldVariables({
|
|
37
|
-
name: assertScaffoldProjectName(props.name),
|
|
38
|
-
skills: ".agents/skills",
|
|
39
|
-
dependencies: "release",
|
|
40
|
-
}),
|
|
41
|
-
),
|
|
42
|
-
),
|
|
43
|
-
);
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import * as fs from "node:fs";
|
|
2
|
-
import * as path from "node:path";
|
|
3
|
-
|
|
4
|
-
import { type IScaffoldFileSnapshot } from "./IScaffoldFileSnapshot";
|
|
5
|
-
import { type IScaffoldPhysicalDirectory } from "./IScaffoldPhysicalDirectory";
|
|
6
|
-
import { type ScaffoldFilePublicationOutcome } from "./ScaffoldFilePublicationOutcome";
|
|
7
|
-
import { assertScaffoldOwnership } from "./assertScaffoldOwnership";
|
|
8
|
-
import { captureScaffoldFile } from "./captureScaffoldFile";
|
|
9
|
-
import { publishNativeScaffoldFile } from "./publishNativeScaffoldFile";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Replace the directory entry of an existing scaffold file that other entries also name, such as a build cache's hard link.
|
|
13
|
-
*
|
|
14
|
-
* The new bytes go into a fresh single-link sibling `<name>.automovie-sync` through {@link publishNativeScaffoldFile}, which is then renamed over `existing.path`. The other names keep the old file and its old bytes, which is what the single-link rule of the in-place rewrite protects. Right before the rename, the pathname must still hold the inspected generation; right after it, the pathname must hold the staged file.
|
|
15
|
-
*
|
|
16
|
-
* `refused` means nothing changed. `partial` means the staged sibling exists but the target entry was not, or not provably, replaced; the sibling is left in place and named in the error, and nothing is retried or deleted.
|
|
17
|
-
*
|
|
18
|
-
* @param props.base Captured scaffold root; `parent` must lie inside it.
|
|
19
|
-
* @param props.bytes Exact file content.
|
|
20
|
-
* @param props.existing Inspected generation of the shared file.
|
|
21
|
-
* @param props.parent Captured parent directory of `existing.path`.
|
|
22
|
-
* @returns The frozen outcome.
|
|
23
|
-
*
|
|
24
|
-
* @evidence contracts/development/implementation.md#principled-implementation Replacing an entry by renaming a verified sibling over it changes only that name; every other hard link keeps its inode, so no other name observes the write.
|
|
25
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Native exclusive creation, generation checks and one rename compose the replacement; in-place rewriting stays with overwriteScaffoldFile for single-link files.
|
|
26
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The link-count safety is kept rather than weakened: a shared file is never truncated, a changed target refuses the rename, and failures are reported, never cleaned up or retried. A writer changing the target between the last check and the rename is the documented remaining race.
|
|
27
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the sibling name, both generation checks, what other names observe and what each outcome leaves on disk.
|
|
28
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One native create with write and readback, linear in the file size, plus a constant number of lstats and one rename.
|
|
29
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Every call writes one file and re-observes it, which is an effect that must not be shared.
|
|
30
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Handles belong to publishNativeScaffoldFile, which releases them before returning; this owner holds only scalar snapshots.
|
|
31
|
-
*/
|
|
32
|
-
export const replaceSharedScaffoldFile: (props: {
|
|
33
|
-
base: IScaffoldPhysicalDirectory;
|
|
34
|
-
bytes: Uint8Array;
|
|
35
|
-
existing: IScaffoldFileSnapshot;
|
|
36
|
-
parent: IScaffoldPhysicalDirectory;
|
|
37
|
-
}) => ScaffoldFilePublicationOutcome = (props: {
|
|
38
|
-
base: IScaffoldPhysicalDirectory;
|
|
39
|
-
bytes: Uint8Array;
|
|
40
|
-
existing: IScaffoldFileSnapshot;
|
|
41
|
-
parent: IScaffoldPhysicalDirectory;
|
|
42
|
-
}): ScaffoldFilePublicationOutcome => {
|
|
43
|
-
const target: string = props.existing.path;
|
|
44
|
-
const childName: string = `${path.basename(target)}.automovie-sync`;
|
|
45
|
-
const staged: ScaffoldFilePublicationOutcome = publishNativeScaffoldFile({
|
|
46
|
-
bytes: props.bytes,
|
|
47
|
-
childName,
|
|
48
|
-
expectedParentIdentity: props.parent.identity,
|
|
49
|
-
parentPath: props.parent.path,
|
|
50
|
-
});
|
|
51
|
-
if (staged.status !== "completed") return staged;
|
|
52
|
-
const staging: string = path.join(props.parent.path, childName);
|
|
53
|
-
try {
|
|
54
|
-
const fresh: IScaffoldFileSnapshot = captureScaffoldFile(staging);
|
|
55
|
-
if (fresh.shared)
|
|
56
|
-
throw new Error(`staged scaffold file gained another link: ${staging}`);
|
|
57
|
-
assertScaffoldOwnership(props.base, props.parent);
|
|
58
|
-
const current: IScaffoldFileSnapshot = captureScaffoldFile(target);
|
|
59
|
-
if (
|
|
60
|
-
current.identity !== props.existing.identity ||
|
|
61
|
-
current.written !== props.existing.written
|
|
62
|
-
)
|
|
63
|
-
throw new Error(`scaffold file changed since inspection: ${target}`);
|
|
64
|
-
fs.renameSync(staging, target);
|
|
65
|
-
const resident: IScaffoldFileSnapshot = captureScaffoldFile(target);
|
|
66
|
-
if (
|
|
67
|
-
resident.identity !== fresh.identity ||
|
|
68
|
-
resident.written !== fresh.written ||
|
|
69
|
-
resident.shared
|
|
70
|
-
)
|
|
71
|
-
throw new Error(`scaffold file changed during entry replacement: ${target}`);
|
|
72
|
-
assertScaffoldOwnership(props.base, props.parent);
|
|
73
|
-
} catch (error) {
|
|
74
|
-
return Object.freeze({
|
|
75
|
-
bytesWritten: props.bytes.byteLength,
|
|
76
|
-
error: new Error(
|
|
77
|
-
`shared scaffold file was not replaced; staged copy remains at ${staging}`,
|
|
78
|
-
{ cause: error },
|
|
79
|
-
),
|
|
80
|
-
parentIdentity: props.parent.identity,
|
|
81
|
-
status: "partial" as const,
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
return Object.freeze({
|
|
85
|
-
parentIdentity: props.parent.identity,
|
|
86
|
-
status: "completed" as const,
|
|
87
|
-
});
|
|
88
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type IAutoMovieCatalogVersionProps } from "./IAutoMovieCatalogVersionProps";
|
|
2
|
-
import { createAutoMovieCatalogVersionResolver } from "./createAutoMovieCatalogVersionResolver";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Read one dependency specifier from a pnpm workspace catalog.
|
|
6
|
-
*
|
|
7
|
-
* This is a single lookup through {@link createAutoMovieCatalogVersionResolver}, with the same direct-ownership rule and refusals; a caller with several lookups over one manifest should create the resolver once instead.
|
|
8
|
-
*
|
|
9
|
-
* @param props The manifest and the entry to read.
|
|
10
|
-
* @returns The specifier exactly as written, such as `^1.2.3`.
|
|
11
|
-
* @throws With a message naming the catalog and dependency when the manifest is invalid YAML or the entry is missing, misplaced, or not a non-blank string.
|
|
12
|
-
*
|
|
13
|
-
* @evidence contracts/development/implementation.md#principled-implementation The lookup inherits the structural YAML reading of the resolver, so a commented, quoted, anchored, or CRLF entry resolves to its interpreted value.
|
|
14
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The function is a one-line adapter from a props record to the resolver, so single and repeated lookups share one implementation.
|
|
15
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every refusal of the resolver propagates unchanged, with nothing caught or defaulted here.
|
|
16
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the relation to the resolver, when to use the resolver instead, the return form, and every failure.
|
|
17
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One manifest parse is followed by scans of the direct root, catalogs and selected-catalog keys, plus alias resolution when used. Total work depends on manifest size, and repeated lookups should share the resolver rather than repeat this parse.
|
|
18
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A single lookup has nothing to share; repeated lookups belong on one resolver.
|
|
19
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The parsed document becomes unreachable when the call returns, and no handle is opened.
|
|
20
|
-
*/
|
|
21
|
-
export const resolveAutoMovieCatalogVersion: (
|
|
22
|
-
props: IAutoMovieCatalogVersionProps,
|
|
23
|
-
) => string = (props: IAutoMovieCatalogVersionProps): string =>
|
|
24
|
-
createAutoMovieCatalogVersionResolver(props.workspace)(
|
|
25
|
-
props.catalog,
|
|
26
|
-
props.dependency,
|
|
27
|
-
);
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { IAutoMovieTemplateDependencyVersionsProps } from "./IAutoMovieTemplateDependencyVersionsProps";
|
|
2
|
-
import { createAutoMovieCatalogVersionResolver } from "./createAutoMovieCatalogVersionResolver";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Build the version table behind the scaffold's `{{version:<key>}}` tokens.
|
|
6
|
-
*
|
|
7
|
-
* Workspace package ranges are copied unchanged. Every external dependency is read from the pnpm catalog that owns it: `media` for the media and runtime libraries, `three`, `gltf` for the model exporter, `vite`, `utils` for `@types/node`, `samchon` for the compiler, lint, evidence and test tools, and `typescript`. For `@huggingface/transformers`, `kokoro-js`, and `onnxruntime-node`, whose runtime graphs must agree on one exact version, a leading `^` or `~` is removed; any other range form is kept as written.
|
|
8
|
-
*
|
|
9
|
-
* @param props The manifest text and the workspace package ranges.
|
|
10
|
-
* @returns The table keyed by token name, such as `engine` or `kokoroJs`.
|
|
11
|
-
* @throws When any catalog entry is missing or invalid, naming it.
|
|
12
|
-
*
|
|
13
|
-
* @evidence contracts/development/implementation.md#principled-implementation Removing only a leading caret or tilde turns an npm range anchored on one version into that exact version, which is the semver meaning of both markers; the premise is that those three catalog entries are written as `^x.y.z`, `~x.y.z`, or `x.y.z`, which the workspace manifest does.
|
|
14
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The function owns only the mapping from token names to catalog entries; YAML reading belongs to `createAutoMovieCatalogVersionResolver`, and file access to the build script.
|
|
15
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The exact-version rule applies to the three named runtime packages by their catalog names because their graphs need one version, and no value is hard-coded; every version comes from the inputs.
|
|
16
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states which catalog owns each group, which entries become exact and how, the keys of the result, and what throws.
|
|
17
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The manifest is parsed once; each of twenty-two lookups scans the direct keys of the root, catalogs mapping and requested catalog, including alias resolution where needed. The fixed lookup count keeps total work linear in manifest size, with one parsed document and thirty-three result strings.
|
|
18
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work All twenty-two lookups share one resolver and therefore one parsed document of `props.workspace`, the only input they depend on; nothing outlives the call, so no invalidation is needed.
|
|
19
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The resolver and its parsed document are released when the function returns; only the result table, thirty-three strings, is retained by the caller.
|
|
20
|
-
*/
|
|
21
|
-
export const resolveAutoMovieTemplateDependencyVersions: (
|
|
22
|
-
props: IAutoMovieTemplateDependencyVersionsProps,
|
|
23
|
-
) => Record<string, string> = (
|
|
24
|
-
props: IAutoMovieTemplateDependencyVersionsProps,
|
|
25
|
-
): Record<string, string> => {
|
|
26
|
-
const catalogVersion: (catalog: string, dependency: string) => string =
|
|
27
|
-
createAutoMovieCatalogVersionResolver(props.workspace);
|
|
28
|
-
const exactCatalogVersion: (catalog: string, dependency: string) => string = (
|
|
29
|
-
catalog: string,
|
|
30
|
-
dependency: string,
|
|
31
|
-
): string => catalogVersion(catalog, dependency).replace(/^[~^]/u, "");
|
|
32
|
-
return {
|
|
33
|
-
cli: props.packages.cli,
|
|
34
|
-
engine: props.packages.engine,
|
|
35
|
-
evidence: props.packages.evidence,
|
|
36
|
-
human: props.packages.human,
|
|
37
|
-
ingest: props.packages.ingest,
|
|
38
|
-
interface: props.packages.interface,
|
|
39
|
-
motions: props.packages.motions,
|
|
40
|
-
recovery: props.packages.recovery,
|
|
41
|
-
render: props.packages.render,
|
|
42
|
-
template: props.packages.template,
|
|
43
|
-
viewer: props.packages.viewer,
|
|
44
|
-
huggingFaceTransformers: exactCatalogVersion(
|
|
45
|
-
"media",
|
|
46
|
-
"@huggingface/transformers",
|
|
47
|
-
),
|
|
48
|
-
h264Mp4Encoder: catalogVersion("media", "h264-mp4-encoder"),
|
|
49
|
-
ffmpegStatic: catalogVersion("media", "ffmpeg-static"),
|
|
50
|
-
kokoroJs: exactCatalogVersion("media", "kokoro-js"),
|
|
51
|
-
libopusWasm: catalogVersion("media", "libopus-wasm"),
|
|
52
|
-
mp4box: catalogVersion("media", "mp4box"),
|
|
53
|
-
onnxruntimeNode: exactCatalogVersion("media", "onnxruntime-node"),
|
|
54
|
-
playwright: catalogVersion("media", "playwright"),
|
|
55
|
-
playwrightCore: catalogVersion("media", "playwright-core"),
|
|
56
|
-
pngjs: catalogVersion("media", "pngjs"),
|
|
57
|
-
pngjsTypes: catalogVersion("media", "@types/pngjs"),
|
|
58
|
-
three: catalogVersion("three", "three"),
|
|
59
|
-
gltfTransformCore: catalogVersion("gltf", "@gltf-transform/core"),
|
|
60
|
-
threeTypes: catalogVersion("three", "@types/three"),
|
|
61
|
-
vite: catalogVersion("vite", "vite"),
|
|
62
|
-
nodeTypes: catalogVersion("utils", "@types/node"),
|
|
63
|
-
nestiaE2e: catalogVersion("samchon", "@nestia/e2e"),
|
|
64
|
-
ttsc: catalogVersion("samchon", "ttsc"),
|
|
65
|
-
ttscLint: catalogVersion("samchon", "@ttsc/lint"),
|
|
66
|
-
evidenceCli: catalogVersion("samchon", "@wrtnlabs/evidence"),
|
|
67
|
-
evidenceLint: catalogVersion("samchon", "@ttsc/evidence"),
|
|
68
|
-
typescript: catalogVersion("typescript", "typescript"),
|
|
69
|
-
};
|
|
70
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { IScaffoldPosixConstants } from "./IScaffoldPosixConstants";
|
|
2
|
-
|
|
3
|
-
/** Generic Linux UAPI open flag: https://github.com/torvalds/linux/blob/master/include/uapi/asm-generic/fcntl.h. */
|
|
4
|
-
const LINUX_O_CLOEXEC: number = 1 << 19;
|
|
5
|
-
|
|
6
|
-
/** Darwin open flag: https://github.com/apple-oss-distributions/xnu/blob/main/bsd/sys/fcntl.h. */
|
|
7
|
-
const DARWIN_O_CLOEXEC: number = 0x01000000;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Resolve the running POSIX system's open flags before binding libc. Native constants take precedence; missing required flags refuse rather than becoming zero. Linux and Android use the generic Linux close-on-exec bit and Darwin uses its XNU bit when Node omits it. Other systems without that native bit refuse.
|
|
11
|
-
*
|
|
12
|
-
* @evidence contracts/development/implementation.md#principled-implementation Supplied native bits retain their ABI meaning; missing close-on-exec uses Linux UAPI's 1<<19 for Linux/Android or Apple XNU's 0x01000000 for Darwin, while an unknown ABI refuses. Both primary headers are linked beside their constants.
|
|
13
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Flag resolution is pure and separate from libc loading so platform admission finishes before a library or descriptor is acquired.
|
|
14
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The platform branch names supported native ABI differences, with no substituted filesystem or test-only path.
|
|
15
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states input precedence, unsupported-platform refusal and that all required native bits must exist.
|
|
16
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Seven constant-key reads and one platform choice take fixed time and return one seven-field record.
|
|
17
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This resolver performs fixed scalar work once during lazy libc initialization; it coordinates no repeated request.
|
|
18
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Pure flag resolution acquires no library, descriptor or asynchronous task and retains no input object.
|
|
19
|
-
*/
|
|
20
|
-
export function resolveScaffoldPosixConstants(
|
|
21
|
-
platform: NodeJS.Platform,
|
|
22
|
-
constants: Readonly<Partial<IScaffoldPosixConstants>>,
|
|
23
|
-
): IScaffoldPosixConstants {
|
|
24
|
-
const read: (name: keyof IScaffoldPosixConstants) => number = (
|
|
25
|
-
name: keyof IScaffoldPosixConstants,
|
|
26
|
-
): number => {
|
|
27
|
-
const value: number | undefined = constants[name];
|
|
28
|
-
if (value === undefined)
|
|
29
|
-
throw new Error(`supported POSIX runtime omitted ${name}`);
|
|
30
|
-
return value;
|
|
31
|
-
};
|
|
32
|
-
const closeOnExec: number | undefined =
|
|
33
|
-
constants.O_CLOEXEC ??
|
|
34
|
-
(platform === "darwin"
|
|
35
|
-
? DARWIN_O_CLOEXEC
|
|
36
|
-
: platform === "linux" || platform === "android"
|
|
37
|
-
? LINUX_O_CLOEXEC
|
|
38
|
-
: undefined);
|
|
39
|
-
if (closeOnExec === undefined)
|
|
40
|
-
throw new Error("supported POSIX runtime omitted O_CLOEXEC");
|
|
41
|
-
return {
|
|
42
|
-
O_CLOEXEC: closeOnExec,
|
|
43
|
-
O_CREAT: read("O_CREAT"),
|
|
44
|
-
O_DIRECTORY: read("O_DIRECTORY"),
|
|
45
|
-
O_EXCL: read("O_EXCL"),
|
|
46
|
-
O_NOFOLLOW: read("O_NOFOLLOW"),
|
|
47
|
-
O_RDONLY: read("O_RDONLY"),
|
|
48
|
-
O_RDWR: read("O_RDWR"),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as fs from "node:fs";
|
|
2
|
-
import * as path from "node:path";
|
|
3
|
-
|
|
4
|
-
import type { AutoMovieScaffoldLayer } from "./AutoMovieScaffoldLayer";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Absolute path of one bundled scaffold layer, `scaffold/<layer>`.
|
|
8
|
-
*
|
|
9
|
-
* The directory is resolved from this module's own location, one level up, so the same code finds it from `src` under `ttsx` and from the published `lib`, which the package ships next to `scaffold`.
|
|
10
|
-
*
|
|
11
|
-
* @param layer The layer to locate.
|
|
12
|
-
* @returns The absolute layer directory.
|
|
13
|
-
* @throws When nothing exists at that path, naming the path, which means the package was installed or built without that part of its `scaffold` folder.
|
|
14
|
-
*
|
|
15
|
-
* @evidence contracts/development/implementation.md#principled-implementation `__dirname` is the CommonJS location of the compiled module, and both `src` and `lib` sit directly under the package root next to `scaffold`, which `package.json` lists in `files`; the premise fails only for a bundler that relocates the module, which the package does not use.
|
|
16
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns where the assets are, so the renderers read a layer without knowing the package layout; the closed layer union is its only input.
|
|
17
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The path comes only from the module location and the layer name, with no environment override or test hook, and a missing directory throws instead of falling back to another location.
|
|
18
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states how the path is derived, why it holds for both `src` and `lib`, and what a missing directory means.
|
|
19
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One path resolution and one existence check per call, independent of the scaffold's size.
|
|
20
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The result is recomputed on each call because the existence check must observe the installed package, and each render calls it once per layer.
|
|
21
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function returns a string and opens no handle.
|
|
22
|
-
*/
|
|
23
|
-
export const scaffoldAssetDirectory: (
|
|
24
|
-
layer: AutoMovieScaffoldLayer,
|
|
25
|
-
) => string = (layer: AutoMovieScaffoldLayer): string => {
|
|
26
|
-
const directory: string = path.resolve(__dirname, "..", "scaffold", layer);
|
|
27
|
-
if (!fs.existsSync(directory))
|
|
28
|
-
throw new Error(`scaffold assets are missing: ${directory}`);
|
|
29
|
-
return directory;
|
|
30
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type * as fs from "node:fs";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Physical identity of a file or directory, formatted `<device>:<inode>` from a bigint stat.
|
|
5
|
-
*
|
|
6
|
-
* Captured directory identities and the identity a held native parent handle reports are compared as these strings. On POSIX both come from `fstat` via this function. On Windows, Node reports the volume serial number as `dev` and the file index as `ino`, which is the pair the native adapter reads from `GetFileInformationByHandle` and formats the same way.
|
|
7
|
-
*
|
|
8
|
-
* @param status Stat taken with `{ bigint: true }`.
|
|
9
|
-
* @returns The identity string.
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/implementation.md#principled-implementation The device and inode pair is the POSIX definition of file identity, and bigint stats keep both exact beyond 2^53; on Windows the premise is libuv's mapping of volume serial and file index to `dev` and `ino`, and a ReFS file whose 128-bit identifier does not fit the 64-bit index is the unresolved limitation.
|
|
12
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure physicalDirectoryIdentity and the POSIX native adapter share this format; the Windows binding assembles the same device and index pair from BY_HANDLE_FILE_INFORMATION for the coordinator's comparison.
|
|
13
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The function formats exactly the stat it receives, with no platform branch or substituted value.
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the format, which stat it needs, and the cross-platform equivalence the comparisons rely on.
|
|
15
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Formatting two bigints is constant time per stat.
|
|
16
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each stat is a separate observation of the file system, and identity checks exist to observe change, so caching a result would defeat them.
|
|
17
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure formatter that returns a string and keeps nothing.
|
|
18
|
-
*/
|
|
19
|
-
export const scaffoldPhysicalIdentity: (status: fs.BigIntStats) => string = (
|
|
20
|
-
status: fs.BigIntStats,
|
|
21
|
-
): string => `${status.dev}:${status.ino}`;
|