@automovie/template 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -18
- package/generated/pnpm-workspace.json +54 -0
- package/{lib → generated}/skills/3d-modeling/conditioning.md +24 -27
- package/generated/skills/3d-modeling/crafting/SKILL.md +16 -0
- package/generated/skills/3d-modeling/crafting/construction.md +70 -0
- package/generated/skills/3d-modeling/crafting/lofting.md +73 -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 +27 -0
- package/generated/skills/3d-modeling/diffusion/prompts.md +9 -0
- package/generated/skills/3d-modeling/diffusion/request.md +16 -0
- package/generated/skills/3d-modeling/diffusion/shape-hints.md +31 -0
- package/generated/skills/3d-modeling/inspection.md +55 -0
- package/generated/skills/3d-modeling/modularization.md +25 -0
- package/{lib → generated}/skills/3d-modeling/rigging.md +21 -27
- package/{lib → generated}/skills/3d-modeling/sources.md +6 -6
- package/{lib → generated}/skills/contracts/development/design.md +2 -3
- package/{lib → generated}/skills/contracts/development/implementation.md +4 -4
- package/{lib → generated}/skills/contracts/development/testing.md +1 -1
- package/generated/skills/development/repair.md +13 -0
- package/{lib → generated}/skills/documentation/SKILL.md +2 -8
- package/generated/skills/documentation/writing.md +63 -0
- package/{lib/skills/motion → generated/skills/motion/laws}/authoring.md +13 -9
- package/{lib/skills/motion → generated/skills/motion/laws}/contacts.md +3 -1
- package/{lib/skills/motion/laws.md → generated/skills/motion/laws/declaration.md} +8 -8
- package/generated/skills/motion/laws/transitions.md +37 -0
- package/{lib/skills/motion → generated/skills/motion/laws}/variation.md +5 -5
- package/{lib/skills/motion → generated/skills/motion/laws}/verification.md +7 -13
- package/generated/skills/prompting/SKILL.md +82 -0
- package/{lib → generated}/skills/visual-debugging/capture.md +13 -11
- package/{lib → generated}/skills/visual-debugging/comparison.md +7 -9
- package/{lib → generated}/skills/visual-debugging/correction-rounds.md +13 -13
- package/{lib → generated}/skills/visual-debugging/passes.md +9 -9
- 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 +145 -0
- package/lib/createAutoMovieScaffold.js.map +1 -0
- package/lib/index.d.ts +1 -45
- package/lib/index.js +1 -45
- package/lib/index.js.map +1 -1
- package/lib/listAutoMovieScaffoldFiles.d.ts +2 -2
- package/lib/listAutoMovieScaffoldFiles.js +2 -2
- package/package.json +9 -12
- package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +14 -11
- package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +7 -9
- package/scaffold/instructions/.agents/skills/3d-modeling/diffusion/SKILL.md +20 -0
- package/scaffold/instructions/.agents/skills/audio/SKILL.md +10 -21
- package/scaffold/instructions/.agents/skills/audio/acquisition.md +24 -12
- package/scaffold/instructions/.agents/skills/audio/film-sound.md +25 -0
- package/scaffold/instructions/.agents/skills/audio/generated-sound.md +15 -0
- package/scaffold/instructions/.agents/skills/audio/sound-effects.md +11 -17
- package/scaffold/instructions/.agents/skills/audio/soundtrack.md +5 -0
- package/scaffold/instructions/.agents/skills/contracts/SKILL.md +10 -16
- package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +5 -7
- package/scaffold/instructions/.agents/skills/contracts/development/composition.md +12 -8
- package/scaffold/instructions/.agents/skills/contracts/development/entities.md +7 -6
- package/scaffold/instructions/.agents/skills/contracts/development/statements/behaviors.md +20 -20
- package/scaffold/instructions/.agents/skills/contracts/development/statements/composition.md +18 -16
- package/scaffold/instructions/.agents/skills/contracts/development/statements/entities.md +13 -12
- package/scaffold/instructions/.agents/skills/contracts/story/SKILL.md +13 -15
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/brief.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/common.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/narratives.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/screenplay.md +1 -1
- 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 +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/common.md +6 -6
- 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 +2 -2
- 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 +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/screenplay.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/scripts.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/settings.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/treatments.md +4 -4
- 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 +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/research.md +4 -4
- 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 +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/brief.md +4 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/common.md +7 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/narratives.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/screenplay.md +3 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/scripts.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/settings.md +5 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/treatments.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/common.md +37 -44
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/common.md +7 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/realized.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/scripts.md +5 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/realized.md +12 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/brief.md +12 -12
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/common.md +16 -16
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/index.md +7 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/narratives.md +14 -14
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/review.md +16 -20
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/screenplay.md +7 -10
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/scripts.md +5 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/settings.md +29 -22
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/treatments.md +13 -15
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/brief.md +9 -17
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/common.md +4 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/index.md +8 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/narratives.md +29 -25
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/realized.md +11 -10
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/research.md +18 -18
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/review.md +13 -25
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/screenplay.md +41 -45
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/scripts.md +16 -16
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/settings.md +8 -24
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/treatments.md +12 -17
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/screenplay.md +7 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/scripts.md +4 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/treatments.md +3 -4
- 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 +5 -7
- package/scaffold/instructions/.agents/skills/development/entities.md +20 -20
- package/scaffold/instructions/.agents/skills/development/reuse.md +19 -18
- package/scaffold/instructions/.agents/skills/development/source-layout.md +32 -24
- package/scaffold/instructions/.agents/skills/development/testing.md +13 -10
- package/scaffold/instructions/.agents/skills/direct-film/SKILL.md +51 -0
- package/scaffold/instructions/.agents/skills/evidence/SKILL.md +1 -1
- package/scaffold/instructions/.agents/skills/evidence/adoption.md +4 -4
- package/scaffold/instructions/.agents/skills/evidence/answering.md +2 -4
- package/scaffold/instructions/.agents/skills/evidence/configuration.md +8 -8
- package/scaffold/instructions/.agents/skills/image/SKILL.md +16 -58
- package/scaffold/instructions/.agents/skills/image/canon-references.md +27 -0
- package/scaffold/instructions/.agents/skills/image/conditioning.md +27 -0
- package/scaffold/instructions/.agents/skills/image/consistency.md +23 -0
- package/scaffold/instructions/.agents/skills/image/editing.md +15 -0
- package/scaffold/instructions/.agents/skills/image/finishing.md +11 -0
- package/scaffold/instructions/.agents/skills/image/models.md +18 -0
- package/scaffold/instructions/.agents/skills/image/prompting.md +25 -0
- package/scaffold/instructions/.agents/skills/image/turnaround-views.md +13 -0
- package/scaffold/instructions/.agents/skills/motion/SKILL.md +31 -47
- package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +24 -4
- package/scaffold/instructions/.agents/skills/motion/compose/composition.md +58 -0
- package/scaffold/instructions/.agents/skills/motion/compose/refusals.md +15 -0
- package/scaffold/instructions/.agents/skills/motion/control-channels.md +20 -8
- package/scaffold/instructions/.agents/skills/motion/diffusion/SKILL.md +24 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/clips.md +17 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/hints.md +37 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/models.md +24 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/tracing.md +53 -0
- package/scaffold/instructions/.agents/skills/motion/frame-evaluation.md +8 -12
- 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 +35 -0
- package/scaffold/instructions/.agents/skills/motion/laws/method-references.md +21 -0
- package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +16 -16
- package/scaffold/instructions/.agents/skills/motion/retargeting.md +8 -10
- package/scaffold/instructions/.agents/skills/motion/segment-review.md +4 -6
- package/scaffold/instructions/.agents/skills/motion/staging.md +21 -13
- package/scaffold/instructions/.agents/skills/production/SKILL.md +19 -19
- package/scaffold/instructions/.agents/skills/production/assembly.md +14 -12
- package/scaffold/instructions/.agents/skills/production/captions.md +15 -0
- package/scaffold/instructions/.agents/skills/production/media-records.md +13 -12
- package/scaffold/instructions/.agents/skills/production/project-context.md +33 -12
- package/scaffold/instructions/.agents/skills/production/reorganization.md +13 -0
- package/scaffold/instructions/.agents/skills/production/stage-caches.md +11 -11
- package/scaffold/instructions/.agents/skills/production/sustained-runs.md +9 -9
- package/scaffold/instructions/.agents/skills/review/SKILL.md +3 -5
- package/scaffold/instructions/.agents/skills/review/delivery-review.md +25 -29
- package/scaffold/instructions/.agents/skills/review/estimation.md +10 -10
- package/scaffold/instructions/.agents/skills/review/independent-reading.md +10 -18
- package/scaffold/instructions/.agents/skills/review/narrative-rounds.md +10 -36
- package/scaffold/instructions/.agents/skills/review/source-review.md +6 -18
- package/scaffold/instructions/.agents/skills/story/SKILL.md +11 -11
- package/scaffold/instructions/.agents/skills/story/answers.md +27 -0
- package/scaffold/instructions/.agents/skills/story/correction/inspection.md +8 -12
- package/scaffold/instructions/.agents/skills/story/correction/repair.md +8 -12
- package/scaffold/instructions/.agents/skills/story/document-layout.md +9 -12
- package/scaffold/instructions/.agents/skills/story/layers/SKILL.md +10 -9
- package/scaffold/instructions/.agents/skills/story/layers/brief.md +7 -19
- package/scaffold/instructions/.agents/skills/story/layers/notation.md +25 -16
- package/scaffold/instructions/.agents/skills/story/layers/screenplay.md +23 -7
- package/scaffold/instructions/.agents/skills/story/layers/scripts.md +4 -4
- package/scaffold/instructions/.agents/skills/story/layers/settings.md +10 -16
- 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 +4 -4
- package/scaffold/instructions/.agents/skills/story/planning/direction.md +4 -4
- package/scaffold/instructions/.agents/skills/story/planning/discovery.md +8 -7
- package/scaffold/instructions/.agents/skills/story/planning/requirements.md +11 -11
- package/scaffold/instructions/.agents/skills/story/planning/research.md +24 -11
- package/scaffold/instructions/.agents/skills/story/workflow/SKILL.md +14 -0
- package/scaffold/instructions/.agents/skills/story/workflow/long.md +38 -0
- package/scaffold/instructions/.agents/skills/story/workflow/routes.md +40 -0
- package/scaffold/instructions/.agents/skills/story/workflow/short.md +33 -0
- package/scaffold/instructions/.agents/skills/video/SKILL.md +12 -21
- 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 +14 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/models.md +26 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/prompts.md +45 -0
- package/scaffold/instructions/.agents/skills/video/finishing.md +44 -0
- package/scaffold/instructions/.agents/skills/video/generation.md +24 -13
- package/scaffold/instructions/.agents/skills/video/requests.md +46 -0
- package/scaffold/instructions/.agents/skills/visual-debugging/SKILL.md +5 -6
- package/scaffold/instructions/AGENTS.md +30 -56
- package/scaffold/production/PROJECT.md +1 -1
- package/scaffold/production/README.md +50 -96
- 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 +16 -5
- package/scaffold/production/src/composition/films/index.ts +3 -2
- package/scaffold/production/src/composition/films/starter.ts +2 -2
- 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 +59 -0
- package/scaffold/production/vite.config.ts +4 -2
- package/scaffold/workspace/README.md +5 -7
- package/scaffold/workspace/package.json +1 -1
- package/src/IAutoMovieScaffoldProps.ts +15 -6
- package/src/assertScaffoldProjectName.ts +1 -1
- package/src/createAutoMovieScaffold.ts +152 -0
- package/src/index.ts +1 -46
- package/src/listAutoMovieScaffoldFiles.ts +2 -2
- 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/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/development/repair.md +0 -13
- package/lib/skills/documentation/writing.md +0 -51
- package/lib/skills/motion/layers.md +0 -7
- package/lib/skills/motion/transitions.md +0 -27
- package/lib/skills/prompting/SKILL.md +0 -80
- 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/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 -487
- 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/node/raster/AutoMovieRasterLighting.ts +0 -221
- package/scaffold/production/src/executable/viewer/node/raster/AutoMovieRasterSheet.ts +0 -175
- package/scaffold/production/src/executable/viewer/node/raster/AutoMovieRasterTarget.ts +0 -282
- package/scaffold/production/src/executable/viewer/node/raster/IAutoMovieSceneRaster.ts +0 -62
- package/scaffold/production/src/executable/viewer/node/raster/IRasterizeAutoMovieSceneProps.ts +0 -34
- package/scaffold/production/src/executable/viewer/node/raster/encodeAutoMovieRasterPng.ts +0 -77
- package/scaffold/production/src/executable/viewer/node/raster/index.ts +0 -8
- package/scaffold/production/src/executable/viewer/node/raster/rasterizeAutoMovieScene.ts +0 -594
- package/scaffold/production/src/executable/viewer/node/raster/stampAutoMovieRasterLabel.ts +0 -120
- 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/{lib → generated}/skills/contracts/development/common.md +0 -0
- /package/{lib → generated}/skills/visual-debugging/rendering-cost.md +0 -0
- /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,61 +0,0 @@
|
|
|
1
|
-
# Workflow
|
|
2
|
-
|
|
3
|
-
Choose the commissioned route from the request, project context, adopted instructions and current bodies.
|
|
4
|
-
|
|
5
|
-
## Creative ownership
|
|
6
|
-
|
|
7
|
-
| Layer | Owns | Hands onward |
|
|
8
|
-
| --- | --- | --- |
|
|
9
|
-
| [Settings](layers/settings.md) | Facts about the world, cast, crowds, props, sets, cinematography and sound, with baseline states, relationships and knowledge boundaries | Specific decisions with stable addresses and one owner |
|
|
10
|
-
| [Brief](layers/brief.md), short route | A short's fixed conditions and the world, people, places, objects, tone and look its films share | Decisions with stable addresses the screenplays cite |
|
|
11
|
-
| [Treatments](layers/treatments.md) | Events, causes, choices, consequences, setup and payoff, and information release | A progression that needs no invented decisive event |
|
|
12
|
-
| [Scripts](layers/scripts.md) | Partition and fully executed scenes: speech, action, reactions, performance, stage, light, sound and view | Playable scenes for the final screenplay |
|
|
13
|
-
| [Final screenplay](layers/screenplay.md) | The audience's image, sound, attention, duration, juxtaposition and transitions | Complete production text the scenes realize |
|
|
14
|
-
|
|
15
|
-
## Route and parents
|
|
16
|
-
|
|
17
|
-
Commissioned video follows one traceable chain: research, settings or a short's brief, screenplay, entities and the laws the installed motion vocabulary lacks, with their tests and accepted [catalog cases](../motion/catalog-cases.md), scene composition, then the film.
|
|
18
|
-
|
|
19
|
-
Each link cites the addresses it realizes from the links above it, so no code exists without a cited basis and no requirement stays unrealized; a later link can only realize what an earlier one decided, and motion written before the screenplay settles its action is fitted to guesses.
|
|
20
|
-
|
|
21
|
-
Long work runs settings → treatments → scripts → screenplay construction, then screenplay naturalness; only the final screenplay has a separate expression pass, which only an explicit user waiver omits. Its settings exist because every later layer realizes and cites their decisions and cannot cite what was never written.
|
|
22
|
-
|
|
23
|
-
A short runs brief → screenplay construction, then screenplay naturalness. Its [brief](layers/brief.md) is canon like settings, with its own folders, contracts, evidence and review, and holds the fixed conditions and the decisions the films share; the screenplay decides everything else and repairs the brief upstream when writing exposes a gap.
|
|
24
|
-
|
|
25
|
-
A short has no settings, treatment, script or outline files. Wherever a skill or contract cites settings facts, a short cites its brief.
|
|
26
|
-
|
|
27
|
-
Choose the long route when the work's causes, setups and payoffs span many scenes or releases, such as a feature, an episode or a series, because they need treatments to design events and scripts to partition them before the screenplay. Choose the short route when each film is a few minutes at most and its events fit one screenplay, alone or as several shorts sharing a world.
|
|
28
|
-
|
|
29
|
-
Record the choice in [project context](../production/project-context.md); in an AutoMovie workspace the production's folder fixes it: `movies/shorts/<name>` runs the short route and `movies/series/<name>` the long route.
|
|
30
|
-
|
|
31
|
-
Asset-only work has no narrative passes. Choose form and scale through [direction](planning/direction.md); complete work is the default.
|
|
32
|
-
|
|
33
|
-
## Construction
|
|
34
|
-
|
|
35
|
-
| Submitted layer | Required parent |
|
|
36
|
-
| --- | --- |
|
|
37
|
-
| Settings | Adopted instructions, discovered requirements and the [research](planning/research.md) the facts draw on |
|
|
38
|
-
| Brief | Adopted instructions, discovered requirements and the research its decisions draw on |
|
|
39
|
-
| Treatments | Completed settings |
|
|
40
|
-
| Scripts | Completed treatments |
|
|
41
|
-
| Screenplay, long work | Completed treatments and scripts, including scripts expression |
|
|
42
|
-
| Screenplay, short | Completed brief and the research it cites |
|
|
43
|
-
|
|
44
|
-
Inherit through actual parents, repairing a missing handoff rather than bypassing it, and run [discovery](planning/discovery.md) before bulk settings or brief and again at each of its [checkpoints](planning/discovery.md#checkpoints).
|
|
45
|
-
|
|
46
|
-
1. Finish the whole body while its pass is disabled.
|
|
47
|
-
2. Complete [inspection and cause repair](correction/repair.md#cause-rounds), enable the stage through [evidence configuration](../evidence/configuration.md), and write [answers](evidence/answer-writing.md).
|
|
48
|
-
3. Submit the body, boundaries and population to independent [review](../review/SKILL.md).
|
|
49
|
-
4. Repair findings at their owners until the pass closes.
|
|
50
|
-
|
|
51
|
-
Review runs through creative closure and the evidence audit, and [narrative rounds](../review/narrative-rounds.md) says when a pass closes.
|
|
52
|
-
|
|
53
|
-
## Completion
|
|
54
|
-
|
|
55
|
-
Run the README's evidence command and read its whole report; a passing graph shows the recorded relationships, and review judges the creative result.
|
|
56
|
-
|
|
57
|
-
Whole-work completion needs the selected passes, current closed review, passing unfiltered validation, the compiler and source checks and required tests, and [delivery review](../review/delivery-review.md) of any commissioned media.
|
|
58
|
-
|
|
59
|
-
A manuscript with its closed review may be delivered with its revision and named remaining diagnostics, but that is not fully validated completion. A creative defect, missing parent, pending transfer, unfinished review or unverified media blocks its completion, and until review finishes the result is a draft.
|
|
60
|
-
|
|
61
|
-
Changes to completed layers follow [closed passes](correction/repair.md#closed-passes).
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Video diffusion models
|
|
2
|
-
|
|
3
|
-
The models below are representative examples, not a complete or required list; any model the user prefers or a newer release can serve. Their values change between versions, so the linked documentation, read when planning, owns them; the table only shows how differently models take a motion hint.
|
|
4
|
-
|
|
5
|
-
| Model | Takes the hint as | Output | References | Prompt | Sound | Documentation |
|
|
6
|
-
| --- | --- | --- | --- | --- | --- | --- |
|
|
7
|
-
| Runway Aleph 2.0 | Video to edit or restyle, 2 to 30 s at up to 30 fps | Input length, up to 1080p | Up to 5 timed keyframe images | Up to 1,000 characters | None documented | [Models](https://docs.dev.runwayml.com/guides/models.md), [prompting](https://help.runwayml.com/hc/en-us/articles/52150503729171-Aleph-2-0-Prompting-Guide) |
|
|
8
|
-
| Kling 4.0 Omni | Video to edit, plus up to 5 reference videos totaling 3 to 30 s | 3 to 30 s, 720p or 1080p, 24 fps | Up to 15 assets per request | Up to 26,000 characters, no negative field or seed | Depends on the mode | [API](https://kling.ai/document-api/api/video/4-0/video-omni), [guide](https://kling.ai/quickstart/kling-4-model-user-guide) |
|
|
9
|
-
| Kling Motion Control | One figure's body motion from a continuous take, 3 to 30 s | Length of the motion video | One character image | Up to 2,500 characters | Not documented | [Guide](https://kling.ai/quickstart/motion-control-user-guide) |
|
|
10
|
-
| Seedance 2.5 | Video to edit or extend, or up to 10 reference videos totaling 30 s | 4 to 30 s, 24 fps | Images and videos; references with real human faces are rejected | Not documented | Generated, mono | [Model](https://docs.byteplus.com/en/docs/ModelArk/seedance-2-5), [prompting](https://docs.byteplus.com/en/docs/ModelArk/seedance-2-0-prompt-guide) |
|
|
11
|
-
| MiniMax-H3 | Up to 3 reference videos totaling 15 s | 4 to 15 s, 768P or 2K, 24 fps | Images and videos | Up to 7,000 characters | Generated, stereo | [Guide](https://platform.minimax.io/docs/guides/video-generation), [prompting](https://huggingface.co/MiniMaxAI/MiniMax-H3/raw/main/docs/VIDEO_PROMPT_WRITING_GUIDE_ref_en.md) |
|
|
12
|
-
| Gemini Omni Flash | Video to edit, up to 15 s; not offered in the EEA, Switzerland or the UK | 3 to 15 s, 24 fps | Up to 6 images, at most 3 per character for 2 characters | No negative field | Generated | [Omni](https://aistudio.google.com/docs/omni) |
|
|
13
|
-
| Veo 3.1 | Still frames only: a first frame, or first and last frames | 4, 6 or 8 s, 24 fps | Up to 3 images of one subject | Negative prompt and seed | Generated | [Reference](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/model-reference/veo-video-generation), [prompting](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/video/video-gen-prompt-guide) |
|
|
14
|
-
| Luma Ray 3.2 | Video to edit, up to 18 s, at one of nine strengths from adhere to reimagine | 5 or 10 s generated, 24 fps | Start or end frame | Up to 6,000 characters, no negative field | None | [Editing](https://docs.agents.lumalabs.ai/guides/videos/editing) |
|
|
15
|
-
| LTX-2.5, open weights | The RGB hint through the Layout-To-Render adapter, or one depth, edge or pose pass through Union Control | Frame count 8n+1, 24 fps, sides divisible by 32 | A first frame carries the look | One or two sentences for Layout-To-Render | Generated | [Layout-To-Render](https://docs.ltx.io/open-source-model/vfx-post-production/layout-to-render.md), [IC-LoRA](https://docs.ltx.io/open-source-model/usage-guides/ic-lo-ra.md), [prompting](https://docs.ltx.io/api-documentation/implementation-guides/prompting-guide.md) |
|
|
16
|
-
| Wan VACE and Wan Fun Control, open weights | Depth, pose, edge, scribble, layout or mask passes, combinable | 81 frames at 16 fps, frame count 4n+1, sides divisible by 16 | Reference images | Up to 512 text-encoder tokens | None | [VACE](https://github.com/ali-vilab/VACE), [Wan2.2](https://github.com/Wan-Video/Wan2.2) |
|
|
17
|
-
|
|
18
|
-
## Match how the model takes the hint
|
|
19
|
-
|
|
20
|
-
How closely a model keeps the hint follows from how it takes it:
|
|
21
|
-
|
|
22
|
-
| Model kind | What it keeps of the hint |
|
|
23
|
-
| --- | --- |
|
|
24
|
-
| Open weights with control channels | The hint's own pose, depth or layout channels, exactly |
|
|
25
|
-
| Hosted, edits or restyles a video | Motion and camera, most directly among hosted models |
|
|
26
|
-
| Hosted, reads a reference video | Motion and camera as guidance; it may move figures |
|
|
27
|
-
| Hosted, takes still frames | Only the first and last frames |
|
|
28
|
-
|
|
29
|
-
Hosted models take the hint as RGB video at most and derive any structure from it themselves. Choose an open model with control channels when exact positions, contacts and camera outweigh its setup cost.
|
|
30
|
-
|
|
31
|
-
Render the hint at the model's frame rate, frame grid and size, because a model snaps other lengths to its grid and drops or shortens frames.
|
|
32
|
-
|
|
33
|
-
Read each model's terms before adopting it: territory limits, rejected reference content such as real faces, revenue thresholds and labeling duties for open weights, and price per second.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Video prompts
|
|
2
|
-
|
|
3
|
-
A video prompt tells a model what the motion hint cannot show: who each figure is, what the place and light look like, and what the shot sounds like. The hint, its control channels and the references already fix positions, timing and camera, so prose that restates or contradicts them competes with the stronger input.
|
|
4
|
-
|
|
5
|
-
Follow the selected model's own prompting guide, linked in [diffusion models](diffusion.md); the rules here are what those guides share.
|
|
6
|
-
|
|
7
|
-
## Content
|
|
8
|
-
|
|
9
|
-
### Plain prose
|
|
10
|
-
|
|
11
|
-
Describe the finished shot in plain prose, in this order: camera and framing, each figure, the single action, the setting, light and palette, style, then sound. Natural sentences steer better than keyword lists, and pasted tag-style prompts from another model lose meaning.
|
|
12
|
-
|
|
13
|
-
### One move, one action
|
|
14
|
-
|
|
15
|
-
Give each shot one camera move and one subject action, written as countable beats ("takes three steps and stops at the rail"). Several moves or actions in one request blur, morph or drop. Split the shot instead, or use the model's own timestamp or multi-shot syntax when it has one.
|
|
16
|
-
|
|
17
|
-
### One description per subject
|
|
18
|
-
|
|
19
|
-
Name each figure as the person or thing it becomes, by its reference token or element name when the model binds references ("the woman from Image 1, in a navy wool coat"). Reuse the identical description, palette words and light logic in every shot of the same subject, because a reworded description is a different character to the model.
|
|
20
|
-
|
|
21
|
-
### What to show
|
|
22
|
-
|
|
23
|
-
Describe what to show, not what to avoid, because a negated word still primes its concept. Where the model has a negative field, list plain nouns there ("mannequin, clay, plastic, untextured render") without "no" or "don't".
|
|
24
|
-
|
|
25
|
-
### Settings stay out of prose
|
|
26
|
-
|
|
27
|
-
Keep duration, size, frame rate and seed in the request's settings. Prose such as "make it longer" changes nothing.
|
|
28
|
-
|
|
29
|
-
## Polygon men and controls
|
|
30
|
-
|
|
31
|
-
The hint's figures are gray and coarse. Strength is the setting for how far a model may depart from its input video: at low strength a model keeps their look and returns mannequins, robots or clay; at high strength it frees the look but loses the motion. Choose the input so motion and appearance arrive through different channels.
|
|
32
|
-
|
|
33
|
-
### Structural control
|
|
34
|
-
|
|
35
|
-
With a pose, depth, edge or layout control, describe appearance, material, light and style only. The control carries the motion, and words about motion or structure fight it.
|
|
36
|
-
|
|
37
|
-
### Raw hint video
|
|
38
|
-
|
|
39
|
-
State the video's role in one sentence ("the input video supplies only camera, positions, timing and occlusion") and map each polygon man to its reference. Never describe the gray look positively: words such as "3D", "render", "clay", "gray" or "model" in the positive prompt pull the result toward the polygon man.
|
|
40
|
-
|
|
41
|
-
### First frame or keyframe
|
|
42
|
-
|
|
43
|
-
When the model accepts one, give appearance there: an image made from the hint's own first frame under [image](../image/SKILL.md), so the generated shot starts in the hint's pose and camera.
|
|
44
|
-
|
|
45
|
-
## Sound
|
|
46
|
-
|
|
47
|
-
Write the shot's sound, decided under [audio](../audio/SKILL.md), in the model's syntax: usually each line in quotes after a named speaker whose name matches the visual description, then separate effect and ambience lines. When the model makes no sound, leave sound out of the prompt; audio owns that case.
|
|
48
|
-
|
|
49
|
-
## Check before submitting
|
|
50
|
-
|
|
51
|
-
Compare the prompt with the hint's start, middle and end frames: every visible figure is named once, no sentence contradicts the hint's positions, order or camera, and the prompt stays within the model's length limit. Regenerate with a stronger control or a shorter shot rather than a longer prompt when motion or camera drifts.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createEvidenceConfig } from "@automovie/evidence";
|
|
2
|
-
import { resolve } from "node:path";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* The default project checks source and tests without selecting a narrative.
|
|
6
|
-
*
|
|
7
|
-
* `skills` names the shared `.agents/skills` tree whose bundled contracts the answers cite: this project's own, or its workspace root's.
|
|
8
|
-
*/
|
|
9
|
-
export default createEvidenceConfig({
|
|
10
|
-
location: import.meta.dirname,
|
|
11
|
-
skills: resolve(import.meta.dirname, "{{skills}}"),
|
|
12
|
-
});
|
|
@@ -1,487 +0,0 @@
|
|
|
1
|
-
import { planViewerFrameTimes } from "@automovie/render";
|
|
2
|
-
import ffmpeg from "ffmpeg-static";
|
|
3
|
-
import { spawnSync } from "node:child_process";
|
|
4
|
-
import { mkdir, readdir, rm, writeFile } from "node:fs/promises";
|
|
5
|
-
import path from "node:path";
|
|
6
|
-
import { pathToFileURL } from "node:url";
|
|
7
|
-
import type * as THREE from "three";
|
|
8
|
-
|
|
9
|
-
import type { IFilm } from "../IFilm";
|
|
10
|
-
import type { IFilmProduction } from "../IFilmProduction";
|
|
11
|
-
import { films } from "../composition/films";
|
|
12
|
-
import { selectFilm } from "../selectFilm";
|
|
13
|
-
import { planCaptureStills } from "./planCaptureStills";
|
|
14
|
-
import { AutoMovieRasterSheet } from "./viewer/node/raster/AutoMovieRasterSheet";
|
|
15
|
-
import { type IAutoMovieSceneRaster } from "./viewer/node/raster/IAutoMovieSceneRaster";
|
|
16
|
-
import { encodeAutoMovieRasterPng } from "./viewer/node/raster/encodeAutoMovieRasterPng";
|
|
17
|
-
import { rasterizeAutoMovieScene } from "./viewer/node/raster/rasterizeAutoMovieScene";
|
|
18
|
-
import { stampAutoMovieRasterLabel } from "./viewer/node/raster/stampAutoMovieRasterLabel";
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Draw film frames straight from Node, with no Viewer server, browser or
|
|
22
|
-
* GPU, for reading poses, contacts, staging and framing frame by frame.
|
|
23
|
-
*
|
|
24
|
-
* `npm run capture -- --film <name>` mounts the film once through its own
|
|
25
|
-
* `create()` and `seek()`, draws each requested second with the installed
|
|
26
|
-
* CPU rasterizer, stamps the second in the corner, and writes
|
|
27
|
-
* `t<seconds>.png` frames, contact sheets `sheet-<from>-<to>.png` with JSON
|
|
28
|
-
* cell indexes, and `manifest.json` into
|
|
29
|
-
* `media/automovie/<film>/frames/capture/<from>-<to>[-<view>]/` or
|
|
30
|
-
* `--out <dir>`, so a catalog case or a 10-second review segment always lands
|
|
31
|
-
* at the same path.
|
|
32
|
-
*
|
|
33
|
-
* Requests: `--from <s>` (default 0) and `--to <s>` (default ten seconds
|
|
34
|
-
* later, at most the film's end) bound a half-open window that
|
|
35
|
-
* {@link planCaptureStills} samples on the film's frame grid at `--rate <n>`
|
|
36
|
-
* per second (default 5, at most 10, so 50 frames per ten seconds), adding 10
|
|
37
|
-
* per second within half a second of each `--events <s,s,…>` second;
|
|
38
|
-
* `--every <frames>` samples the film's own frame grid instead, inclusive of
|
|
39
|
-
* both ends; `--at <s,s,…>` draws exact seconds. `--width`/`--height` set the
|
|
40
|
-
* raster (default the film's delivery raster), `--supersample <1-4>`
|
|
41
|
-
* antialiases, `--view <name>` draws through one of the film's named
|
|
42
|
-
* `IFilmProduction.views` and `--view x,y,z:tx,ty,tz` through a static
|
|
43
|
-
* inspection camera in world metres, `--per-sheet <n>` and `--columns <n>`
|
|
44
|
-
* lay out sheets (default 50 cells in ten columns, one 10-second segment at
|
|
45
|
-
* 5 per second), `--no-label` and `--no-sheet` drop the stamp and the
|
|
46
|
-
* sheets, and `--list` prints the registered films. `--module <file.ts>`
|
|
47
|
-
* (with `--export <name>` when the module has several exports) captures a
|
|
48
|
-
* film that is not registered, such as a motion rehearsal, whole by default,
|
|
49
|
-
* into `media/automovie/modules/<module>/`; several comma-separated modules
|
|
50
|
-
* share one run. `--video` draws every frame of the film's grid in
|
|
51
|
-
* `[from, to)` (default the whole film) and encodes them at the film's rate
|
|
52
|
-
* with the installed FFmpeg into `media/automovie/<film>/videos/capture.mp4`.
|
|
53
|
-
* Run it with `ttsx --no-plugins --noCheck` so no
|
|
54
|
-
* type check or compiler plugin runs before drawing; the type-check watch owns
|
|
55
|
-
* compile errors.
|
|
56
|
-
*
|
|
57
|
-
* Frames are CPU diagnostics: flat-shaded surfaces under the scene's lights,
|
|
58
|
-
* without textures, shadows or post-processing. Delivered pixels come from the
|
|
59
|
-
* Viewer through `npm run render`.
|
|
60
|
-
*
|
|
61
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment gives every option with its unit and default, the outputs and their names, the intended runner flags, and what the frames do not show.
|
|
62
|
-
* @evidence contracts/development/implementation.md#principled-implementation The film is mounted through the same create and seek the Viewer calls, so a drawn second shows the state the Viewer would place; grid requests reuse the installed frame planner, and sheets are reduced in memory from the drawn frames by the installed sheet builder, captioned after reduction so every cell's second stays legible.
|
|
63
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The command parses options, plans seconds, then mounts, draws, writes and summarizes; drawing, encoding, planning and sheet layout belong to installed packages.
|
|
64
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unknown options, missing values, empty or out-of-film windows and ambiguous films throw instead of falling back to a guess.
|
|
65
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The film is created once for all frames; work is linear in the number of requested frames.
|
|
66
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work One mount, one camera and one output directory serve every frame of a run.
|
|
67
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Each frame's pixels are released after writing; the production is disposed on every outcome; only earlier capture files of the same directory are replaced.
|
|
68
|
-
*/
|
|
69
|
-
export async function capture(): Promise<void> {
|
|
70
|
-
const options: Map<string, string> = new Map();
|
|
71
|
-
const argv: string[] = process.argv.slice(2);
|
|
72
|
-
for (let index: number = 0; index < argv.length; index++) {
|
|
73
|
-
const [key, inline] = argv[index]!.split(/=(.*)/s) as [string, string?];
|
|
74
|
-
if (FLAGS.includes(key)) {
|
|
75
|
-
options.set(key, "1");
|
|
76
|
-
continue;
|
|
77
|
-
}
|
|
78
|
-
if (!VALUED.includes(key)) throw new Error(`Unknown option ${key}`);
|
|
79
|
-
const value: string | undefined = inline ?? argv[++index];
|
|
80
|
-
if (value === undefined || value === "")
|
|
81
|
-
throw new Error(`${key} needs a value`);
|
|
82
|
-
options.set(key, value);
|
|
83
|
-
}
|
|
84
|
-
if (options.has("--list")) {
|
|
85
|
-
for (const [name, film] of Object.entries(films))
|
|
86
|
-
console.log(
|
|
87
|
-
`${name}\t${film.durationSeconds} s\t${film.fps} fps\t${film.width ?? 1280}x${film.height ?? 720}`,
|
|
88
|
-
);
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
const number: (key: string, fallback?: number) => number | undefined = (
|
|
92
|
-
key: string,
|
|
93
|
-
fallback?: number,
|
|
94
|
-
): number | undefined => {
|
|
95
|
-
if (!options.has(key)) return fallback;
|
|
96
|
-
const value: number = Number(options.get(key));
|
|
97
|
-
if (!Number.isFinite(value)) throw new Error(`${key} must be a number`);
|
|
98
|
-
return value;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
// Plan the seconds before mounting, so a bad request costs nothing.
|
|
102
|
-
if (options.has("--module") && options.has("--film"))
|
|
103
|
-
throw new Error("Give either --film or --module, not both");
|
|
104
|
-
// Several comma-separated modules share one process, one compile and one Human calibration memo.
|
|
105
|
-
const modules: (string | undefined)[] = options.has("--module")
|
|
106
|
-
? options.get("--module")!.split(",")
|
|
107
|
-
: [undefined];
|
|
108
|
-
if (modules.length > 1 && options.has("--out"))
|
|
109
|
-
throw new Error(
|
|
110
|
-
"--out names one film's folder; omit it with several modules",
|
|
111
|
-
);
|
|
112
|
-
for (const moduleFile of modules) {
|
|
113
|
-
const selected: { name: string; film: IFilm } =
|
|
114
|
-
moduleFile !== undefined
|
|
115
|
-
? await loadModuleFilm(moduleFile, options.get("--export"))
|
|
116
|
-
: selectFilm(films, options.get("--film") ?? null);
|
|
117
|
-
const film: IFilm = selected.film;
|
|
118
|
-
const from: number = number("--from", 0)!;
|
|
119
|
-
const video: boolean = options.has("--video");
|
|
120
|
-
const to: number = number(
|
|
121
|
-
"--to",
|
|
122
|
-
moduleFile !== undefined || video
|
|
123
|
-
? film.durationSeconds
|
|
124
|
-
: Math.min(from + 10, film.durationSeconds),
|
|
125
|
-
)!;
|
|
126
|
-
const view: string | undefined = options.get("--view");
|
|
127
|
-
|
|
128
|
-
// A video draws every frame of the film's grid in [from, to) and encodes them at the film's rate.
|
|
129
|
-
const first: number = Math.ceil(from * film.fps - 1e-9);
|
|
130
|
-
const times: number[] = video
|
|
131
|
-
? Array.from(
|
|
132
|
-
{ length: Math.max(0, Math.ceil(to * film.fps - 1e-9) - first) },
|
|
133
|
-
(_: unknown, k: number): number => (first + k) / film.fps,
|
|
134
|
-
)
|
|
135
|
-
: options.has("--at")
|
|
136
|
-
? planViewerFrameTimes({
|
|
137
|
-
fps: film.fps,
|
|
138
|
-
durationSeconds: film.durationSeconds,
|
|
139
|
-
at: options.get("--at")!.split(",").map(Number),
|
|
140
|
-
})
|
|
141
|
-
: options.has("--every")
|
|
142
|
-
? planViewerFrameTimes({
|
|
143
|
-
fps: film.fps,
|
|
144
|
-
durationSeconds: film.durationSeconds,
|
|
145
|
-
from,
|
|
146
|
-
to,
|
|
147
|
-
every: number("--every"),
|
|
148
|
-
})
|
|
149
|
-
: planCaptureStills({
|
|
150
|
-
fps: film.fps,
|
|
151
|
-
durationSeconds: film.durationSeconds,
|
|
152
|
-
start: from,
|
|
153
|
-
end: to,
|
|
154
|
-
rate: number("--rate", 5),
|
|
155
|
-
events: options.has("--events")
|
|
156
|
-
? options.get("--events")!.split(",").map(Number)
|
|
157
|
-
: [],
|
|
158
|
-
});
|
|
159
|
-
const width: number = number("--width", film.width ?? 1280)!;
|
|
160
|
-
const height: number = number("--height", film.height ?? 720)!;
|
|
161
|
-
const supersample: number = number("--supersample", 1)!;
|
|
162
|
-
const perSheet: number = number("--per-sheet", 50)!;
|
|
163
|
-
const columns: number = number("--columns", 10)!;
|
|
164
|
-
const label: (seconds: number) => string = (seconds: number): string =>
|
|
165
|
-
seconds.toFixed(3).padStart(7, "0");
|
|
166
|
-
const directory: string =
|
|
167
|
-
options.get("--out") ??
|
|
168
|
-
path.join(
|
|
169
|
-
"media",
|
|
170
|
-
"automovie",
|
|
171
|
-
selected.name,
|
|
172
|
-
"frames",
|
|
173
|
-
video ? "video" : "capture",
|
|
174
|
-
video
|
|
175
|
-
? ""
|
|
176
|
-
: `${label(times[0]!)}-${label(times.at(-1)!)}` +
|
|
177
|
-
(view === undefined
|
|
178
|
-
? ""
|
|
179
|
-
: `-${/^[a-z0-9-]+$/u.test(view) ? view : "inspection"}`),
|
|
180
|
-
);
|
|
181
|
-
await mkdir(directory, { recursive: true });
|
|
182
|
-
|
|
183
|
-
// Replace only this command's earlier outputs in the directory.
|
|
184
|
-
for (const entry of await readdir(directory))
|
|
185
|
-
if (
|
|
186
|
-
/^(t\d+\.\d+\.png|f\d{5}\.png|sheet-.*\.png(\.json)?|manifest\.json)$/.test(
|
|
187
|
-
entry,
|
|
188
|
-
)
|
|
189
|
-
)
|
|
190
|
-
await rm(path.join(directory, entry));
|
|
191
|
-
|
|
192
|
-
const started: number = performance.now();
|
|
193
|
-
const production: IFilmProduction = await film.create(
|
|
194
|
-
(message: string): void => console.error(`[${selected.name}] ${message}`),
|
|
195
|
-
);
|
|
196
|
-
const mounted: number = performance.now();
|
|
197
|
-
try {
|
|
198
|
-
const preset: NonNullable<IFilmProduction["views"]>[string] | undefined =
|
|
199
|
-
view !== undefined &&
|
|
200
|
-
production.views !== undefined &&
|
|
201
|
-
Object.hasOwn(production.views, view)
|
|
202
|
-
? production.views[view]
|
|
203
|
-
: undefined;
|
|
204
|
-
const camera: THREE.Camera = preset
|
|
205
|
-
? production.camera.clone()
|
|
206
|
-
: inspectionCamera(production.camera, view);
|
|
207
|
-
const frames: { file: string; seconds: number }[] = [];
|
|
208
|
-
const skipped: Record<string, number> = {};
|
|
209
|
-
const sheets: string[] = [];
|
|
210
|
-
let triangles: number = 0;
|
|
211
|
-
|
|
212
|
-
// Sheets fill as frames are drawn: cells scaled so the longer side is 320 pixels.
|
|
213
|
-
const scale: number = 320 / Math.max(width, height);
|
|
214
|
-
const cellWidth: number = Math.max(1, Math.round(width * scale));
|
|
215
|
-
const cellHeight: number = Math.max(1, Math.round(height * scale));
|
|
216
|
-
let sheet: AutoMovieRasterSheet | undefined;
|
|
217
|
-
let group: { file: string; seconds: number }[] = [];
|
|
218
|
-
const flush: () => Promise<void> = async (): Promise<void> => {
|
|
219
|
-
if (sheet === undefined || group.length === 0) return;
|
|
220
|
-
const file: string = path.join(
|
|
221
|
-
directory,
|
|
222
|
-
`sheet-${label(group[0]!.seconds)}-${label(group.at(-1)!.seconds)}.png`,
|
|
223
|
-
);
|
|
224
|
-
await writeFile(file, encodeAutoMovieRasterPng(sheet.finish()));
|
|
225
|
-
await writeFile(
|
|
226
|
-
`${file}.json`,
|
|
227
|
-
JSON.stringify(
|
|
228
|
-
{
|
|
229
|
-
columns,
|
|
230
|
-
cellWidth,
|
|
231
|
-
cellHeight,
|
|
232
|
-
cells: group.map(
|
|
233
|
-
(
|
|
234
|
-
f: { file: string; seconds: number },
|
|
235
|
-
index: number,
|
|
236
|
-
): {
|
|
237
|
-
row: number;
|
|
238
|
-
column: number;
|
|
239
|
-
seconds: number;
|
|
240
|
-
file: string;
|
|
241
|
-
} => ({
|
|
242
|
-
row: Math.floor(index / columns),
|
|
243
|
-
column: index % columns,
|
|
244
|
-
seconds: f.seconds,
|
|
245
|
-
file: path.basename(f.file),
|
|
246
|
-
}),
|
|
247
|
-
),
|
|
248
|
-
},
|
|
249
|
-
null,
|
|
250
|
-
2,
|
|
251
|
-
),
|
|
252
|
-
"utf8",
|
|
253
|
-
);
|
|
254
|
-
sheets.push(file);
|
|
255
|
-
sheet = undefined;
|
|
256
|
-
group = [];
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
for (const seconds of times) {
|
|
260
|
-
production.seek(seconds);
|
|
261
|
-
if (preset) {
|
|
262
|
-
const pose: ReturnType<NonNullable<typeof preset>> = preset(seconds);
|
|
263
|
-
camera.position.set(...pose.position);
|
|
264
|
-
camera.lookAt(...pose.target);
|
|
265
|
-
camera.updateMatrixWorld();
|
|
266
|
-
}
|
|
267
|
-
fitAspect(camera, width, height);
|
|
268
|
-
const raster: IAutoMovieSceneRaster = rasterizeAutoMovieScene({
|
|
269
|
-
scene: production.scene,
|
|
270
|
-
camera,
|
|
271
|
-
width,
|
|
272
|
-
height,
|
|
273
|
-
supersample,
|
|
274
|
-
});
|
|
275
|
-
if (!options.has("--no-label") && !video)
|
|
276
|
-
stampAutoMovieRasterLabel(
|
|
277
|
-
raster,
|
|
278
|
-
`${seconds.toFixed(2)}s`,
|
|
279
|
-
Math.max(2, Math.round(Math.min(width, height) / 240)),
|
|
280
|
-
);
|
|
281
|
-
const file: string = path.join(
|
|
282
|
-
directory,
|
|
283
|
-
video
|
|
284
|
-
? `f${String(frames.length).padStart(5, "0")}.png`
|
|
285
|
-
: `t${label(seconds)}.png`,
|
|
286
|
-
);
|
|
287
|
-
await writeFile(file, encodeAutoMovieRasterPng(raster));
|
|
288
|
-
frames.push({ file, seconds });
|
|
289
|
-
triangles = Math.max(triangles, raster.statistics.triangles);
|
|
290
|
-
for (const [type, count] of Object.entries(raster.statistics.skipped))
|
|
291
|
-
skipped[type] = Math.max(skipped[type] ?? 0, count);
|
|
292
|
-
if (!options.has("--no-sheet") && !video) {
|
|
293
|
-
sheet ??= new AutoMovieRasterSheet(
|
|
294
|
-
perSheet,
|
|
295
|
-
columns,
|
|
296
|
-
cellWidth,
|
|
297
|
-
cellHeight,
|
|
298
|
-
);
|
|
299
|
-
sheet.add(raster, `${seconds.toFixed(2)}s`);
|
|
300
|
-
group.push({ file, seconds });
|
|
301
|
-
if (group.length === perSheet) await flush();
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
await flush();
|
|
305
|
-
const drawn: number = performance.now();
|
|
306
|
-
|
|
307
|
-
const manifest: object = {
|
|
308
|
-
film: selected.name,
|
|
309
|
-
durationSeconds: film.durationSeconds,
|
|
310
|
-
fps: film.fps,
|
|
311
|
-
raster: { width, height, supersample },
|
|
312
|
-
camera: options.get("--view") ?? "film",
|
|
313
|
-
times,
|
|
314
|
-
frames: frames.map((f: { file: string; seconds: number }): string =>
|
|
315
|
-
path.basename(f.file),
|
|
316
|
-
),
|
|
317
|
-
sheets: sheets.map((s: string): string => path.basename(s)),
|
|
318
|
-
maximumTriangles: triangles,
|
|
319
|
-
skipped,
|
|
320
|
-
milliseconds: {
|
|
321
|
-
create: Math.round(mounted - started),
|
|
322
|
-
frames: Math.round(drawn - mounted),
|
|
323
|
-
perFrame: Math.round((drawn - mounted) / times.length),
|
|
324
|
-
},
|
|
325
|
-
};
|
|
326
|
-
await writeFile(
|
|
327
|
-
path.join(directory, "manifest.json"),
|
|
328
|
-
JSON.stringify(manifest, null, 2),
|
|
329
|
-
"utf8",
|
|
330
|
-
);
|
|
331
|
-
console.log(
|
|
332
|
-
`capture ${selected.name}: ${times.length} frames in ${directory}`,
|
|
333
|
-
);
|
|
334
|
-
console.log(
|
|
335
|
-
`create ${((mounted - started) / 1000).toFixed(1)} s, draw ${((drawn - mounted) / 1000).toFixed(1)} s` +
|
|
336
|
-
(Object.keys(skipped).length === 0
|
|
337
|
-
? ""
|
|
338
|
-
: `, not drawn: ${JSON.stringify(skipped)}`),
|
|
339
|
-
);
|
|
340
|
-
for (const sheet of sheets) console.log(sheet);
|
|
341
|
-
|
|
342
|
-
// Encode the drawn frames at the film's own rate into one H.264 file.
|
|
343
|
-
if (video) {
|
|
344
|
-
const output: string = path.join(
|
|
345
|
-
"media",
|
|
346
|
-
"automovie",
|
|
347
|
-
selected.name,
|
|
348
|
-
"videos",
|
|
349
|
-
"capture.mp4",
|
|
350
|
-
);
|
|
351
|
-
await mkdir(path.dirname(output), { recursive: true });
|
|
352
|
-
const encoder: string = process.env.FFMPEG_PATH ?? ffmpeg ?? "";
|
|
353
|
-
if (encoder === "")
|
|
354
|
-
throw new Error("Set FFMPEG_PATH; ffmpeg-static found no binary");
|
|
355
|
-
const result: ReturnType<typeof spawnSync> = spawnSync(
|
|
356
|
-
encoder,
|
|
357
|
-
[
|
|
358
|
-
"-y",
|
|
359
|
-
"-framerate",
|
|
360
|
-
String(film.fps),
|
|
361
|
-
"-i",
|
|
362
|
-
path.join(directory, "f%05d.png"),
|
|
363
|
-
"-c:v",
|
|
364
|
-
"libx264",
|
|
365
|
-
"-pix_fmt",
|
|
366
|
-
"yuv420p",
|
|
367
|
-
"-crf",
|
|
368
|
-
"18",
|
|
369
|
-
output,
|
|
370
|
-
],
|
|
371
|
-
{ stdio: "inherit" },
|
|
372
|
-
);
|
|
373
|
-
if (result.status !== 0)
|
|
374
|
-
throw new Error(`ffmpeg exited with ${result.status}`);
|
|
375
|
-
console.log(output);
|
|
376
|
-
}
|
|
377
|
-
} finally {
|
|
378
|
-
production.dispose();
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
/** Options that take no value. */
|
|
384
|
-
const FLAGS: readonly string[] = [
|
|
385
|
-
"--list",
|
|
386
|
-
"--no-label",
|
|
387
|
-
"--no-sheet",
|
|
388
|
-
"--video",
|
|
389
|
-
];
|
|
390
|
-
|
|
391
|
-
/** Options that take a value. */
|
|
392
|
-
const VALUED: readonly string[] = [
|
|
393
|
-
"--film",
|
|
394
|
-
"--module",
|
|
395
|
-
"--export",
|
|
396
|
-
"--from",
|
|
397
|
-
"--to",
|
|
398
|
-
"--rate",
|
|
399
|
-
"--events",
|
|
400
|
-
"--every",
|
|
401
|
-
"--at",
|
|
402
|
-
"--width",
|
|
403
|
-
"--height",
|
|
404
|
-
"--supersample",
|
|
405
|
-
"--view",
|
|
406
|
-
"--out",
|
|
407
|
-
"--per-sheet",
|
|
408
|
-
"--columns",
|
|
409
|
-
];
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* The film a rehearsal module exports: the export named by `--export`, or
|
|
413
|
-
* the module's only export, called first when it is a factory. Its output
|
|
414
|
-
* goes under `media/automovie/modules/<module>[-<export>]/`.
|
|
415
|
-
*/
|
|
416
|
-
async function loadModuleFilm(
|
|
417
|
-
file: string,
|
|
418
|
-
name: string | undefined,
|
|
419
|
-
): Promise<{ name: string; film: IFilm }> {
|
|
420
|
-
const exports: Record<string, unknown> = await import(
|
|
421
|
-
pathToFileURL(path.resolve(file)).href
|
|
422
|
-
);
|
|
423
|
-
const names: string[] = Object.keys(exports);
|
|
424
|
-
const chosen: string | undefined =
|
|
425
|
-
name ?? (names.length === 1 ? names[0] : undefined);
|
|
426
|
-
if (chosen === undefined || !Object.hasOwn(exports, chosen))
|
|
427
|
-
throw new Error(
|
|
428
|
-
`Select the film export of ${file} with --export <name>: ${names.join(", ")}`,
|
|
429
|
-
);
|
|
430
|
-
const value: unknown = exports[chosen];
|
|
431
|
-
const film: unknown = typeof value === "function" ? value() : value;
|
|
432
|
-
const candidate: Partial<IFilm> | null =
|
|
433
|
-
typeof film === "object" ? (film as Partial<IFilm> | null) : null;
|
|
434
|
-
if (
|
|
435
|
-
candidate === null ||
|
|
436
|
-
typeof candidate.durationSeconds !== "number" ||
|
|
437
|
-
typeof candidate.fps !== "number" ||
|
|
438
|
-
typeof candidate.create !== "function"
|
|
439
|
-
)
|
|
440
|
-
throw new Error(`${file}#${chosen} is not an IFilm or a factory of one`);
|
|
441
|
-
const base: string = path.basename(file).replace(/\.[cm]?[jt]s$/u, "");
|
|
442
|
-
return {
|
|
443
|
-
name: path.join("modules", name === undefined ? base : `${base}-${chosen}`),
|
|
444
|
-
film: candidate as IFilm,
|
|
445
|
-
};
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
/** Match a perspective camera's aspect to the raster, as the Viewer does for its canvas. */
|
|
449
|
-
function fitAspect(camera: THREE.Camera, width: number, height: number): void {
|
|
450
|
-
const perspective: THREE.PerspectiveCamera =
|
|
451
|
-
camera as THREE.PerspectiveCamera;
|
|
452
|
-
if (
|
|
453
|
-
perspective.isPerspectiveCamera === true &&
|
|
454
|
-
perspective.aspect !== width / height
|
|
455
|
-
) {
|
|
456
|
-
perspective.aspect = width / height;
|
|
457
|
-
perspective.updateProjectionMatrix();
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
/** The film camera, or a static inspection camera `x,y,z:tx,ty,tz` in world metres. */
|
|
462
|
-
function inspectionCamera(
|
|
463
|
-
camera: THREE.PerspectiveCamera,
|
|
464
|
-
view: string | undefined,
|
|
465
|
-
): THREE.Camera {
|
|
466
|
-
if (view === undefined) return camera;
|
|
467
|
-
const points: number[][] = view
|
|
468
|
-
.split(":")
|
|
469
|
-
.map((part: string): number[] => part.split(",").map(Number));
|
|
470
|
-
if (
|
|
471
|
-
points.length !== 2 ||
|
|
472
|
-
points.some(
|
|
473
|
-
(p: number[]): boolean => p.length !== 3 || !p.every(Number.isFinite),
|
|
474
|
-
)
|
|
475
|
-
)
|
|
476
|
-
throw new Error("--view must be x,y,z:tx,ty,tz in metres");
|
|
477
|
-
const inspection: THREE.PerspectiveCamera = camera.clone();
|
|
478
|
-
inspection.position.set(points[0]![0]!, points[0]![1]!, points[0]![2]!);
|
|
479
|
-
inspection.lookAt(points[1]![0]!, points[1]![1]!, points[1]![2]!);
|
|
480
|
-
inspection.updateMatrixWorld();
|
|
481
|
-
return inspection;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
void capture().catch((error: unknown): void => {
|
|
485
|
-
console.error(error);
|
|
486
|
-
process.exitCode = 1;
|
|
487
|
-
});
|