@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,167 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
equalProductionFrameRates,
|
|
3
|
-
resolveProductionFrameRate,
|
|
4
|
-
} from "@automovie/engine";
|
|
5
|
-
import type {
|
|
6
|
-
IAutoMovieProductionFrameRate,
|
|
7
|
-
IAutoMovieProductionVideoProbe,
|
|
8
|
-
} from "@automovie/interface";
|
|
9
|
-
import {
|
|
10
|
-
type IAutoMovieProductionVideoProfile,
|
|
11
|
-
assertProductionVideoProfile,
|
|
12
|
-
resolveProductionVideoProfile,
|
|
13
|
-
} from "@automovie/render";
|
|
14
|
-
import type { createFile } from "mp4box";
|
|
15
|
-
|
|
16
|
-
import type { IProductionRenditionClip } from "./IProductionRenditionClip";
|
|
17
|
-
import { appendLosslessVideoClip } from "./appendLosslessVideoClip";
|
|
18
|
-
import { openLosslessVideoTrack } from "./openLosslessVideoTrack";
|
|
19
|
-
import { parseProductionRenditionClip } from "./parseProductionRenditionClip";
|
|
20
|
-
import { probeProductionVideoMp4 } from "./probeProductionVideoMp4";
|
|
21
|
-
import { sameSampleDescription } from "./sameSampleDescription";
|
|
22
|
-
import { sampleDescription } from "./sampleDescription";
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Assemble one whole-film video from the per-chunk H.264 encodes of a chunked render without decoding or re-encoding any frame.
|
|
26
|
-
*
|
|
27
|
-
* Every chunk must parse as a complete splice clip (`parseProductionRenditionClip`), match `frameFormat`'s raster and rational clock, share the first chunk's media timescale, sample duration and decoder configuration, and pass the delivery video profile. The samples are copied in play order onto one track under the independent-decoding premise described below. A single chunk is returned as the same array, unchanged, when it covers `totalFrames`; a multi-chunk result is re-probed and must cover `totalFrames` at the declared raster and clock.
|
|
28
|
-
*
|
|
29
|
-
* Throws `Render chunk <i> ...` naming the first chunk that breaks the shared presentation, an `unsupported-video-profile.<field>` error from the profile check, a refusal for an empty chunk list or a frame total the chunks do not cover, and `Assembled chunk video duration exceeds the exact MP4 clock range.` when the total-frame duration fails the output opener's safe-integer check. An exception thrown by the `chunks` iterator propagates unchanged.
|
|
30
|
-
*
|
|
31
|
-
* No production module calls this function at present; only tests reach it since the production film assembly stopped using it.
|
|
32
|
-
*
|
|
33
|
-
* @evidence contracts/development/implementation.md#principled-implementation Every chunk declares a sync sample at its start and shares one sample entry, verified byte for byte by `sameSampleDescription`; copied payloads preserve the elementary stream under the premise that those sync declarations actually permit independent decoding. Container admission does not decode H.264 pictures or prove that premise. Clock equality uses rational frame rates and integer ticks rather than float fps.
|
|
34
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Parsing and per-clip validation are `parseProductionRenditionClip`, the container is `openLosslessVideoTrack`, and re-timing is `appendLosslessVideoClip`; this function owns only the chunk-sequence rules, the single-chunk shortcut and the final coverage proof. The gap is that no production consumer remains.
|
|
35
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A chunk that breaks the shared raster, clock or configuration is refused, never re-encoded or rescaled, and the single-chunk shortcut returns input that already passed every check the multi-chunk path applies to each chunk.
|
|
36
|
-
* @evidence contracts/development/common.md#meaningful-documentation The doc states what every chunk must share, how the samples are joined, the identity of the single-chunk result, the final verification, every refusal with its message prefix, and that the iterator's own exceptions propagate.
|
|
37
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Each of C chunks is parsed once and shares that parse with its probe and sample table. For chunk sample count S_i and media-box count M_i, residency adds O(M_i + S_i log(M_i + 1)), with description comparisons and box inspection on top. Appending copies the total coded bytes and subsample entries once; a multi-chunk result is serialized and independently parsed/probed again, including its output residency cost. The full assembly is not strictly linear in encoded bytes, and the expected profile is resolved once outside the loop.
|
|
38
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A call reads its chunk iterator once and shares no result across calls; a caller that assembles the same chunks twice receives byte-identical output but must cache it itself.
|
|
39
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The first clip remains referenced for comparison and singleton return, and each appended sample keeps an output payload copy plus a view of its source chunk. Parsed boxes and tables, serialized output and the output probe's copied bytes can coexist during verification. Bytes, samples, descriptions and boxes are uncapped here, and no exact peak ratio is established; invocation-local objects become collectable after completion or refusal, while the returned array belongs to the caller. No native handle or background task is opened.
|
|
40
|
-
*/
|
|
41
|
-
export const assembleProductionChunkVideoMp4: (props: {
|
|
42
|
-
chunks: Iterable<Uint8Array>;
|
|
43
|
-
frameFormat: {
|
|
44
|
-
fps: number;
|
|
45
|
-
frameRate?: IAutoMovieProductionFrameRate;
|
|
46
|
-
height: number;
|
|
47
|
-
width: number;
|
|
48
|
-
};
|
|
49
|
-
totalFrames: number;
|
|
50
|
-
}) => Uint8Array = (props: {
|
|
51
|
-
/** Encoded chunk MP4s in play order, read once. */
|
|
52
|
-
chunks: Iterable<Uint8Array>;
|
|
53
|
-
|
|
54
|
-
/** Exact raster and rational frame clock every chunk must already carry. */
|
|
55
|
-
frameFormat: {
|
|
56
|
-
/** Frames per second, used when `frameRate` is absent and in messages. */
|
|
57
|
-
fps: number;
|
|
58
|
-
|
|
59
|
-
/** Exact rational frame rate; takes precedence over `fps`. */
|
|
60
|
-
frameRate?: IAutoMovieProductionFrameRate;
|
|
61
|
-
|
|
62
|
-
/** Raster height in pixels. */
|
|
63
|
-
height: number;
|
|
64
|
-
|
|
65
|
-
/** Raster width in pixels. */
|
|
66
|
-
width: number;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
/** Exact total output frames the assembled chunks must cover. */
|
|
70
|
-
totalFrames: number;
|
|
71
|
-
}): Uint8Array => {
|
|
72
|
-
const frameRate: IAutoMovieProductionFrameRate = resolveProductionFrameRate(
|
|
73
|
-
props.frameFormat,
|
|
74
|
-
);
|
|
75
|
-
const profile: IAutoMovieProductionVideoProfile =
|
|
76
|
-
resolveProductionVideoProfile({
|
|
77
|
-
width: props.frameFormat.width,
|
|
78
|
-
height: props.frameFormat.height,
|
|
79
|
-
frameRate,
|
|
80
|
-
});
|
|
81
|
-
let reference: IProductionRenditionClip | undefined;
|
|
82
|
-
let referenceDescription: ReturnType<typeof sampleDescription> | undefined;
|
|
83
|
-
let opening: IProductionRenditionClip | undefined;
|
|
84
|
-
let assembly:
|
|
85
|
-
| { file: ReturnType<typeof createFile>; track: number }
|
|
86
|
-
| undefined;
|
|
87
|
-
let frame: number = 0;
|
|
88
|
-
let index: number = 0;
|
|
89
|
-
for (const bytes of props.chunks) {
|
|
90
|
-
const clip: IProductionRenditionClip = parseProductionRenditionClip(
|
|
91
|
-
bytes,
|
|
92
|
-
`Render chunk ${index}`,
|
|
93
|
-
);
|
|
94
|
-
const description: ReturnType<typeof sampleDescription> = sampleDescription(
|
|
95
|
-
clip.samples[0]!,
|
|
96
|
-
);
|
|
97
|
-
reference ??= clip;
|
|
98
|
-
referenceDescription ??= description;
|
|
99
|
-
if (
|
|
100
|
-
clip.probe.width !== props.frameFormat.width ||
|
|
101
|
-
clip.probe.height !== props.frameFormat.height ||
|
|
102
|
-
equalProductionFrameRates(clip.probe.frameRate, frameRate) === false ||
|
|
103
|
-
clip.track.timescale !== reference.track.timescale ||
|
|
104
|
-
clip.sampleDuration !== reference.sampleDuration ||
|
|
105
|
-
sameSampleDescription(referenceDescription, description) === false
|
|
106
|
-
)
|
|
107
|
-
throw new Error(
|
|
108
|
-
`Render chunk ${index} does not share the assembled raster, rational frame clock, and H.264 decoder configuration.`,
|
|
109
|
-
);
|
|
110
|
-
// The chunk is attributed by index above; only then does the generic
|
|
111
|
-
// delivery profile judge its container facts.
|
|
112
|
-
assertProductionVideoProfile({ expected: profile, actual: clip.probe });
|
|
113
|
-
++index;
|
|
114
|
-
if (opening === undefined) {
|
|
115
|
-
opening = clip;
|
|
116
|
-
continue;
|
|
117
|
-
}
|
|
118
|
-
if (assembly === undefined) {
|
|
119
|
-
assembly = openLosslessVideoTrack({
|
|
120
|
-
label: "Assembled chunk video",
|
|
121
|
-
name: "AutoMovie chunk-assembled feature",
|
|
122
|
-
timescale: reference.track.timescale,
|
|
123
|
-
sampleDuration: reference.sampleDuration,
|
|
124
|
-
frames: props.totalFrames,
|
|
125
|
-
description: referenceDescription,
|
|
126
|
-
width: reference.probe.width,
|
|
127
|
-
height: reference.probe.height,
|
|
128
|
-
language: reference.track.language,
|
|
129
|
-
});
|
|
130
|
-
frame = appendLosslessVideoClip({
|
|
131
|
-
...assembly,
|
|
132
|
-
clip: opening,
|
|
133
|
-
frame,
|
|
134
|
-
sampleDuration: reference.sampleDuration,
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
frame = appendLosslessVideoClip({
|
|
138
|
-
...assembly,
|
|
139
|
-
clip,
|
|
140
|
-
frame,
|
|
141
|
-
sampleDuration: reference.sampleDuration,
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
if (opening === undefined)
|
|
145
|
-
throw new Error(
|
|
146
|
-
"Chunked video assembly requires at least one encoded render chunk.",
|
|
147
|
-
);
|
|
148
|
-
if (assembly === undefined) {
|
|
149
|
-
if (opening.probe.frameCount !== props.totalFrames)
|
|
150
|
-
throw new Error(
|
|
151
|
-
`Chunked video assembly covers ${opening.probe.frameCount} frames; expected ${props.totalFrames}.`,
|
|
152
|
-
);
|
|
153
|
-
return opening.bytes;
|
|
154
|
-
}
|
|
155
|
-
const bytes: Uint8Array = new Uint8Array(assembly.file.getBuffer().buffer);
|
|
156
|
-
const probe: IAutoMovieProductionVideoProbe = probeProductionVideoMp4(bytes);
|
|
157
|
-
if (
|
|
158
|
-
probe.frameCount !== props.totalFrames ||
|
|
159
|
-
probe.width !== props.frameFormat.width ||
|
|
160
|
-
probe.height !== props.frameFormat.height ||
|
|
161
|
-
equalProductionFrameRates(probe.frameRate, frameRate) === false
|
|
162
|
-
)
|
|
163
|
-
throw new Error(
|
|
164
|
-
`Assembled chunk video parses as ${probe.frameCount} frames of ${probe.width}x${probe.height} at ${probe.fps} fps; expected ${props.totalFrames} frames of ${props.frameFormat.width}x${props.frameFormat.height} at ${props.frameFormat.fps} fps.`,
|
|
165
|
-
);
|
|
166
|
-
return bytes;
|
|
167
|
-
};
|
package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionClips.ts
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import type { IAutoMovieFilmTimeline } from "@automovie/interface";
|
|
2
|
-
import type { Sample, Track } from "mp4box";
|
|
3
|
-
|
|
4
|
-
import { neutralTrackPresentation } from "./neutralTrackPresentation";
|
|
5
|
-
import { parseMp4 } from "./parseMp4";
|
|
6
|
-
import { productionRenditionVideoPlan } from "./productionRenditionVideoPlan";
|
|
7
|
-
import { sameSampleDescription } from "./sameSampleDescription";
|
|
8
|
-
import { sameSampleFlags } from "./sameSampleFlags";
|
|
9
|
-
import { sampleDescription } from "./sampleDescription";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Prove that a feature's first video track is exactly the repaint clips of
|
|
13
|
-
* `timeline` spliced losslessly, without building the expected video.
|
|
14
|
-
*
|
|
15
|
-
* The clips are resolved through `productionRenditionVideoPlan`, the same plan
|
|
16
|
-
* `conformProductionRenditionVideoMp4` writes from, so every refusal of that
|
|
17
|
-
* plan applies here too. The feature track must then use the first clip's
|
|
18
|
-
* timescale for both clocks, the plan's media duration, the first clip's
|
|
19
|
-
* raster, an untransformed presentation starting at 0, and exactly
|
|
20
|
-
* `timeline.totalFrames` samples. Sample `k` of clip `c`, starting at output
|
|
21
|
-
* frame `start`, must have the plan's sample duration, decode time
|
|
22
|
-
* `(start + (dts - decodeStart) / clip duration) * duration`, presentation
|
|
23
|
-
* time `(start + (cts - presentationStart) / clip duration) * duration`, the
|
|
24
|
-
* source's flags, the plan's decoder configuration, and identical payload
|
|
25
|
-
* bytes.
|
|
26
|
-
*
|
|
27
|
-
* A container mismatch throws `Feature video presentation does not match the
|
|
28
|
-
* selected repaint timeline.` A sample mismatch throws `Feature video sample
|
|
29
|
-
* <i> differs from the selected repaint timeline:` followed by a JSON record of
|
|
30
|
-
* the expected and actual timing, flags, configuration match and payload
|
|
31
|
-
* sizes with the first differing byte.
|
|
32
|
-
*
|
|
33
|
-
* @evidence contracts/development/implementation.md#principled-implementation The proof compares the feature's own parsed sample table and payload bytes with the clips' at the positions the lossless splice rule puts them, so it holds for any writer that produced the feature, and it restates the timing rule rather than calling the writer so a writer defect cannot prove itself.
|
|
34
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The clip validation is the shared plan, flag equality is `sameSampleFlags` and configuration equality `sameSampleDescription`; this function owns only the walk over the feature's samples and the failure record.
|
|
35
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No tolerance is applied to any tick, flag or byte, and the failure record is diagnostic output only; it does not change which features pass.
|
|
36
|
-
* @evidence contracts/development/common.md#meaningful-documentation The doc states where the clips are resolved, every track-level requirement, the exact per-sample timing formulas and equalities, and both refusal messages with the content of the diagnostic record.
|
|
37
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The plan parses every segment occurrence, including repeated shots, with each clip's O(M + S log(M+1)) residency proof and description work. The feature is parsed once; sample comparison adds payload-byte comparison, subsample-table serialization and fixed timing checks. Configuration serialization is skipped while the actual description object remains the last checked object. Parsing and compact table populations prevent a strict bound in compared payload bytes alone.
|
|
38
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The proof runs once per delivery validation over caller-held bytes and has no result another request could reuse; the plan it reads is built per call because the proof must not trust a writer's earlier plan.
|
|
39
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The parsed feature, the parsed clips and their sample tables are held only until return, and the function retains nothing and opens no handle or task.
|
|
40
|
-
*/
|
|
41
|
-
export const assertProductionFeatureUsesRenditionClips: (props: {
|
|
42
|
-
feature: Uint8Array;
|
|
43
|
-
timeline: IAutoMovieFilmTimeline;
|
|
44
|
-
clips: ReadonlyMap<string, Uint8Array>;
|
|
45
|
-
}) => void = (props: {
|
|
46
|
-
/** Delivered feature MP4 whose first video track is checked. */
|
|
47
|
-
feature: Uint8Array;
|
|
48
|
-
|
|
49
|
-
/** Current cut-only timeline the repaint clips cover. */
|
|
50
|
-
timeline: IAutoMovieFilmTimeline;
|
|
51
|
-
|
|
52
|
-
/** Repaint clip bytes keyed by segment `shot`. */
|
|
53
|
-
clips: ReadonlyMap<string, Uint8Array>;
|
|
54
|
-
}): void => {
|
|
55
|
-
const plan: ReturnType<typeof productionRenditionVideoPlan> =
|
|
56
|
-
productionRenditionVideoPlan(props);
|
|
57
|
-
const actual: ReturnType<typeof parseMp4> = parseMp4(props.feature);
|
|
58
|
-
const track: Track | undefined = actual.movie.videoTracks[0];
|
|
59
|
-
const samples: Sample[] =
|
|
60
|
-
track === undefined ? [] : actual.file.getTrackSamplesInfo(track.id);
|
|
61
|
-
if (
|
|
62
|
-
track === undefined ||
|
|
63
|
-
track.timescale !== plan.first.track.timescale ||
|
|
64
|
-
track.duration !== plan.mediaDuration ||
|
|
65
|
-
track.movie_timescale !== plan.first.track.timescale ||
|
|
66
|
-
track.movie_duration !== plan.mediaDuration ||
|
|
67
|
-
track.video?.width !== plan.first.probe.width ||
|
|
68
|
-
track.video?.height !== plan.first.probe.height ||
|
|
69
|
-
track.track_width !== plan.first.probe.width ||
|
|
70
|
-
track.track_height !== plan.first.probe.height ||
|
|
71
|
-
samples.length !== props.timeline.totalFrames ||
|
|
72
|
-
neutralTrackPresentation(track, 0) === false
|
|
73
|
-
)
|
|
74
|
-
throw new Error(
|
|
75
|
-
"Feature video presentation does not match the selected repaint timeline.",
|
|
76
|
-
);
|
|
77
|
-
let checkedDescription: unknown = undefined;
|
|
78
|
-
let index: number = 0;
|
|
79
|
-
for (const clip of plan.parsed) {
|
|
80
|
-
const clipStart: number = index;
|
|
81
|
-
for (const source of clip.samples) {
|
|
82
|
-
// The track holds exactly `totalFrames` samples and the plan's clips
|
|
83
|
-
// cover exactly that many, so every index is present.
|
|
84
|
-
const actualSample: Sample = samples[index]!;
|
|
85
|
-
const dts: number =
|
|
86
|
-
(clipStart + (source.dts - clip.decodeStart) / clip.sampleDuration) *
|
|
87
|
-
plan.sampleDuration;
|
|
88
|
-
const cts: number =
|
|
89
|
-
(clipStart +
|
|
90
|
-
(source.cts - clip.presentationStart) / clip.sampleDuration) *
|
|
91
|
-
plan.sampleDuration;
|
|
92
|
-
const sourceBytes: Uint8Array = clip.bytes.subarray(
|
|
93
|
-
source.offset,
|
|
94
|
-
source.offset + source.size,
|
|
95
|
-
);
|
|
96
|
-
const actualBytes: Uint8Array = props.feature.subarray(
|
|
97
|
-
actualSample.offset,
|
|
98
|
-
actualSample.offset + actualSample.size,
|
|
99
|
-
);
|
|
100
|
-
const descriptionMatches: boolean =
|
|
101
|
-
actualSample.description === checkedDescription ||
|
|
102
|
-
sameSampleDescription(
|
|
103
|
-
sampleDescription(actualSample),
|
|
104
|
-
plan.description,
|
|
105
|
-
);
|
|
106
|
-
if (
|
|
107
|
-
actualSample.duration !== plan.sampleDuration ||
|
|
108
|
-
actualSample.dts !== dts ||
|
|
109
|
-
actualSample.cts !== cts ||
|
|
110
|
-
sameSampleFlags(actualSample, source) === false ||
|
|
111
|
-
descriptionMatches === false ||
|
|
112
|
-
Buffer.compare(actualBytes, sourceBytes) !== 0
|
|
113
|
-
)
|
|
114
|
-
throw new Error(
|
|
115
|
-
`Feature video sample ${index} differs from the selected repaint timeline:\n${JSON.stringify(
|
|
116
|
-
sampleMismatchRecord({
|
|
117
|
-
actual: actualSample,
|
|
118
|
-
source,
|
|
119
|
-
expected: { duration: plan.sampleDuration, dts, cts },
|
|
120
|
-
descriptionMatches,
|
|
121
|
-
actualBytes,
|
|
122
|
-
sourceBytes,
|
|
123
|
-
}),
|
|
124
|
-
null,
|
|
125
|
-
2,
|
|
126
|
-
)}`,
|
|
127
|
-
);
|
|
128
|
-
checkedDescription = actualSample.description;
|
|
129
|
-
++index;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
/** Bounded diagnostic record of one failed sample comparison. */
|
|
135
|
-
const sampleMismatchRecord: (props: {
|
|
136
|
-
actual: Sample;
|
|
137
|
-
source: Sample;
|
|
138
|
-
expected: { duration: number; dts: number; cts: number };
|
|
139
|
-
descriptionMatches: boolean;
|
|
140
|
-
actualBytes: Uint8Array;
|
|
141
|
-
sourceBytes: Uint8Array;
|
|
142
|
-
}) => Record<string, unknown> = (props: {
|
|
143
|
-
actual: Sample;
|
|
144
|
-
source: Sample;
|
|
145
|
-
expected: { duration: number; dts: number; cts: number };
|
|
146
|
-
descriptionMatches: boolean;
|
|
147
|
-
actualBytes: Uint8Array;
|
|
148
|
-
sourceBytes: Uint8Array;
|
|
149
|
-
}): Record<string, unknown> => ({
|
|
150
|
-
timing: {
|
|
151
|
-
actual: {
|
|
152
|
-
duration: props.actual.duration,
|
|
153
|
-
dts: props.actual.dts,
|
|
154
|
-
cts: props.actual.cts,
|
|
155
|
-
},
|
|
156
|
-
expected: props.expected,
|
|
157
|
-
},
|
|
158
|
-
flags: {
|
|
159
|
-
actual: sampleFlagRecord(props.actual),
|
|
160
|
-
expected: sampleFlagRecord(props.source),
|
|
161
|
-
match: sameSampleFlags(props.actual, props.source),
|
|
162
|
-
},
|
|
163
|
-
sampleDescriptionMatches: props.descriptionMatches,
|
|
164
|
-
payload: {
|
|
165
|
-
actualBytes: props.actualBytes.length,
|
|
166
|
-
expectedBytes: props.sourceBytes.length,
|
|
167
|
-
firstDifferingActualByte: props.actualBytes.findIndex(
|
|
168
|
-
(value: number, byte: number): boolean =>
|
|
169
|
-
value !== props.sourceBytes[byte],
|
|
170
|
-
),
|
|
171
|
-
},
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
/** Parser-visible dependency and redundancy flags of one sample. */
|
|
175
|
-
const sampleFlagRecord: (sample: Sample) => Record<string, unknown> = (
|
|
176
|
-
sample: Sample,
|
|
177
|
-
): Record<string, unknown> => ({
|
|
178
|
-
isSync: sample.is_sync,
|
|
179
|
-
isLeading: sample.is_leading,
|
|
180
|
-
dependsOn: sample.depends_on,
|
|
181
|
-
isDependedOn: sample.is_depended_on,
|
|
182
|
-
hasRedundancy: sample.has_redundancy,
|
|
183
|
-
degradationPriority: sample.degradation_priority,
|
|
184
|
-
});
|
package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionVideo.ts
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import type { Sample, Track } from "mp4box";
|
|
2
|
-
|
|
3
|
-
import { parseMp4 } from "./parseMp4";
|
|
4
|
-
import { sameSampleDescription } from "./sameSampleDescription";
|
|
5
|
-
import { sameSampleFlags } from "./sameSampleFlags";
|
|
6
|
-
import { sampleDescription } from "./sampleDescription";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Prove that a feature's first video track carries exactly the samples of a
|
|
10
|
-
* rendition video's first video track.
|
|
11
|
-
*
|
|
12
|
-
* Both tracks must agree on media and movie timescale and duration, display
|
|
13
|
-
* matrix, edit list, coded raster and track display size, and must hold the
|
|
14
|
-
* same non-zero number of samples whose first decoder configurations match.
|
|
15
|
-
* Each sample pair must agree on duration,
|
|
16
|
-
* decode and presentation time, dependency and redundancy flags, decoder
|
|
17
|
-
* configuration, and payload bytes. Other tracks, such as the feature's
|
|
18
|
-
* audio, are ignored.
|
|
19
|
-
*
|
|
20
|
-
* Throws `Rendition delivery proof requires one feature video track.` when
|
|
21
|
-
* either file has no video track, `Feature video track does not match the
|
|
22
|
-
* selected rendition track.` for a track-level difference, and `Feature video
|
|
23
|
-
* sample <i> differs from the selected rendition.` for the first differing
|
|
24
|
-
* sample.
|
|
25
|
-
*
|
|
26
|
-
* No production module calls this function at present; only tests reach it.
|
|
27
|
-
*
|
|
28
|
-
* @evidence contracts/development/implementation.md#principled-implementation Equality is decided on the parser's sample tables and the exact payload byte ranges, so two containers that store the same coded pictures at the same times pass even when their box layout differs, and nothing is decoded.
|
|
29
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Flag and decoder-configuration equality reuse `sameSampleFlags` and `sameSampleDescription`, and the two small track and timing comparisons are local because no other module compares whole tracks. The gap is that no production consumer remains.
|
|
30
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No tick, flag or byte tolerance is applied, and neither input is treated specially by name or size.
|
|
31
|
-
* @evidence contracts/development/common.md#meaningful-documentation The doc lists every track-level and per-sample equality, which tracks are compared and which ignored, and each refusal message.
|
|
32
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Both files are parsed once, with box and expanded sample-table populations driving delegated parsing. For S sample pairs, comparisons visit payload bytes and serialize their subsample tables; changed description objects add child-box serialization. Track matrix and edit-list comparisons also scale with their contents, so compared payload bytes alone do not bound the complete operation.
|
|
33
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A proof compares two caller-held byte arrays once and offers no result another call could share.
|
|
34
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Both parsed files and their sample tables are released on return, and the function opens no handle or task.
|
|
35
|
-
*/
|
|
36
|
-
export const assertProductionFeatureUsesRenditionVideo: (props: {
|
|
37
|
-
feature: Uint8Array;
|
|
38
|
-
renditionVideo: Uint8Array;
|
|
39
|
-
}) => void = (props: {
|
|
40
|
-
/** Feature MP4 whose first video track is checked. */
|
|
41
|
-
feature: Uint8Array;
|
|
42
|
-
|
|
43
|
-
/** Rendition MP4 whose first video track is the expectation. */
|
|
44
|
-
renditionVideo: Uint8Array;
|
|
45
|
-
}): void => {
|
|
46
|
-
const actual: ReturnType<typeof parseMp4> = parseMp4(props.feature);
|
|
47
|
-
const expected: ReturnType<typeof parseMp4> = parseMp4(props.renditionVideo);
|
|
48
|
-
const actualTrack: Track | undefined = actual.movie.videoTracks[0];
|
|
49
|
-
const expectedTrack: Track | undefined = expected.movie.videoTracks[0];
|
|
50
|
-
if (actualTrack === undefined || expectedTrack === undefined)
|
|
51
|
-
throw new Error(
|
|
52
|
-
"Rendition delivery proof requires one feature video track.",
|
|
53
|
-
);
|
|
54
|
-
const actualSamples: Sample[] = actual.file.getTrackSamplesInfo(
|
|
55
|
-
actualTrack.id,
|
|
56
|
-
);
|
|
57
|
-
const expectedSamples: Sample[] = expected.file.getTrackSamplesInfo(
|
|
58
|
-
expectedTrack.id,
|
|
59
|
-
);
|
|
60
|
-
if (
|
|
61
|
-
actualTrack.timescale !== expectedTrack.timescale ||
|
|
62
|
-
actualTrack.duration !== expectedTrack.duration ||
|
|
63
|
-
actualTrack.movie_timescale !== expectedTrack.movie_timescale ||
|
|
64
|
-
actualTrack.movie_duration !== expectedTrack.movie_duration ||
|
|
65
|
-
sameTrackPresentation(actualTrack, expectedTrack) === false ||
|
|
66
|
-
actualTrack.video?.width !== expectedTrack.video?.width ||
|
|
67
|
-
actualTrack.video?.height !== expectedTrack.video?.height ||
|
|
68
|
-
actualTrack.track_width !== expectedTrack.track_width ||
|
|
69
|
-
actualTrack.track_height !== expectedTrack.track_height ||
|
|
70
|
-
actualSamples.length !== expectedSamples.length ||
|
|
71
|
-
actualSamples.length === 0 ||
|
|
72
|
-
sameSampleDescription(
|
|
73
|
-
sampleDescription(actualSamples[0]!),
|
|
74
|
-
sampleDescription(expectedSamples[0]!),
|
|
75
|
-
) === false
|
|
76
|
-
)
|
|
77
|
-
throw new Error(
|
|
78
|
-
"Feature video track does not match the selected rendition track.",
|
|
79
|
-
);
|
|
80
|
-
let checkedLeft: unknown = actualSamples[0]!.description;
|
|
81
|
-
let checkedRight: unknown = expectedSamples[0]!.description;
|
|
82
|
-
for (let index: number = 0; index < actualSamples.length; ++index) {
|
|
83
|
-
const left: Sample = actualSamples[index]!;
|
|
84
|
-
const right: Sample = expectedSamples[index]!;
|
|
85
|
-
if (
|
|
86
|
-
sameSampleTiming(left, right) === false ||
|
|
87
|
-
((left.description !== checkedLeft ||
|
|
88
|
-
right.description !== checkedRight) &&
|
|
89
|
-
sameSampleDescription(
|
|
90
|
-
sampleDescription(left),
|
|
91
|
-
sampleDescription(right),
|
|
92
|
-
) === false) ||
|
|
93
|
-
Buffer.compare(
|
|
94
|
-
props.feature.subarray(left.offset, left.offset + left.size),
|
|
95
|
-
props.renditionVideo.subarray(right.offset, right.offset + right.size),
|
|
96
|
-
) !== 0
|
|
97
|
-
)
|
|
98
|
-
throw new Error(
|
|
99
|
-
`Feature video sample ${index} differs from the selected rendition.`,
|
|
100
|
-
);
|
|
101
|
-
checkedLeft = left.description;
|
|
102
|
-
checkedRight = right.description;
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
/** Whether two tracks share the display matrix and the edit list. */
|
|
107
|
-
const sameTrackPresentation: (left: Track, right: Track) => boolean = (
|
|
108
|
-
left: Track,
|
|
109
|
-
right: Track,
|
|
110
|
-
): boolean => {
|
|
111
|
-
const rightMatrix: number[] = Array.from(right.matrix);
|
|
112
|
-
return (
|
|
113
|
-
Array.from(left.matrix).every(
|
|
114
|
-
(value: number, index: number): boolean => value === rightMatrix[index],
|
|
115
|
-
) && JSON.stringify(left.edits ?? []) === JSON.stringify(right.edits ?? [])
|
|
116
|
-
);
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
/** Whether two samples share duration, both clock times and every flag. */
|
|
120
|
-
const sameSampleTiming: (left: Sample, right: Sample) => boolean = (
|
|
121
|
-
left: Sample,
|
|
122
|
-
right: Sample,
|
|
123
|
-
): boolean =>
|
|
124
|
-
left.duration === right.duration &&
|
|
125
|
-
left.cts === right.cts &&
|
|
126
|
-
left.dts === right.dts &&
|
|
127
|
-
sameSampleFlags(left, right);
|
package/scaffold/production/src/executable/render/node/assertProductionRenditionClipDelivery.ts
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { resolveProductionFrameRate } from "@automovie/engine";
|
|
2
|
-
import type { IAutoMovieProductionFrameRate } from "@automovie/interface";
|
|
3
|
-
import {
|
|
4
|
-
assertProductionVideoProfile,
|
|
5
|
-
resolveProductionVideoProfile,
|
|
6
|
-
} from "@automovie/render";
|
|
7
|
-
|
|
8
|
-
import type { IProductionRenditionClip } from "./IProductionRenditionClip";
|
|
9
|
-
import { parseProductionRenditionClip } from "./parseProductionRenditionClip";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Refuse repaint clip bytes that cannot be spliced into the cut losslessly or
|
|
13
|
-
* that differ from the shot's declared raster, clock, length or runtime.
|
|
14
|
-
*
|
|
15
|
-
* The clip must parse as a lossless splice clip, have exactly `width` by
|
|
16
|
-
* `height` pixels and `frameCount` samples, and have a movie duration equal to
|
|
17
|
-
* `frameCount` frames at the rational frame rate resolved from `frameRate`, or
|
|
18
|
-
* from `fps` when absent. `runtimeSeconds` must equal `frameCount *
|
|
19
|
-
* denominator / numerator` as one correctly rounded division, so a shot
|
|
20
|
-
* duration that is not a whole number of frames is refused. Finally the clip
|
|
21
|
-
* must pass the delivery video profile for that raster and rate.
|
|
22
|
-
*
|
|
23
|
-
* Throws the clip parser's refusal labelled `Repaint clip "<shot>"`, then
|
|
24
|
-
* `Repaint clip "<shot>" does not match its exact raster, rational frame
|
|
25
|
-
* clock, frame count, and runtime contract.`, then any
|
|
26
|
-
* `unsupported-video-profile.<field>` error.
|
|
27
|
-
*
|
|
28
|
-
* @evidence contracts/development/implementation.md#principled-implementation Movie runtime equality uses BigInt cross products of integer clock and frame-rate terms. Declared runtime instead must equal the binary64 frameCount*denominator/numerator expression, whose multiplication and division can round; equality proves consistency with that expression rather than exact mathematical representability of an arbitrary decimal duration.
|
|
29
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Splice admissibility is `parseProductionRenditionClip`, the container profile is `assertProductionVideoProfile`, and this function adds only the shot's own contract, judged before the generic profile so a drift is attributed to the named shot.
|
|
30
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Nothing is rounded, rescaled or tolerated; a clip that misses any field is refused, and no shot or adapter is special-cased.
|
|
31
|
-
* @evidence contracts/development/common.md#meaningful-documentation The doc states each requirement, how the frame rate is resolved, the exact runtime comparison and its consequence for fractional-frame shots, and the refusals in the order they are raised.
|
|
32
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The clip parser performs one parse plus its O(M + S log(M+1)) residency proof for S samples and M media boxes, sample-entry checks and composition-slot validation. This assertion adds fixed runtime/raster comparisons, rate reduction and profile checks over the probe's brand/edit populations; the complete operation is not strictly linear in clip bytes.
|
|
33
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call judges one clip for one admission or revalidation and returns nothing to share; the production callers probe the same bytes separately because they need the probe record, which this assertion does not return.
|
|
34
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The parsed clip and its sample table are released on return, and the function opens no handle or task.
|
|
35
|
-
*/
|
|
36
|
-
export const assertProductionRenditionClipDelivery: (props: {
|
|
37
|
-
bytes: Uint8Array;
|
|
38
|
-
shot: string;
|
|
39
|
-
width: number;
|
|
40
|
-
height: number;
|
|
41
|
-
fps: number;
|
|
42
|
-
frameRate?: IAutoMovieProductionFrameRate;
|
|
43
|
-
frameCount: number;
|
|
44
|
-
runtimeSeconds: number;
|
|
45
|
-
}) => void = (props: {
|
|
46
|
-
/** Repaint clip MP4 bytes as the adapter delivered them. */
|
|
47
|
-
bytes: Uint8Array;
|
|
48
|
-
|
|
49
|
-
/** Shot id, used only to name the clip in refusals. */
|
|
50
|
-
shot: string;
|
|
51
|
-
|
|
52
|
-
/** Declared raster width in pixels. */
|
|
53
|
-
width: number;
|
|
54
|
-
|
|
55
|
-
/** Declared raster height in pixels. */
|
|
56
|
-
height: number;
|
|
57
|
-
|
|
58
|
-
/** Declared frames per second, used when `frameRate` is absent. */
|
|
59
|
-
fps: number;
|
|
60
|
-
|
|
61
|
-
/** Exact rational frame rate; takes precedence over `fps`. */
|
|
62
|
-
frameRate?: IAutoMovieProductionFrameRate;
|
|
63
|
-
|
|
64
|
-
/** Declared number of frames in the shot. */
|
|
65
|
-
frameCount: number;
|
|
66
|
-
|
|
67
|
-
/** Declared shot runtime in seconds. */
|
|
68
|
-
runtimeSeconds: number;
|
|
69
|
-
}): void => {
|
|
70
|
-
const clip: IProductionRenditionClip = parseProductionRenditionClip(
|
|
71
|
-
props.bytes,
|
|
72
|
-
`Repaint clip "${props.shot}"`,
|
|
73
|
-
);
|
|
74
|
-
const frameRate: IAutoMovieProductionFrameRate =
|
|
75
|
-
resolveProductionFrameRate(props);
|
|
76
|
-
// The shot's own contract is judged first and by name, so a raster, clock,
|
|
77
|
-
// count, or runtime drift is attributed to the clip before the generic
|
|
78
|
-
// delivery profile speaks.
|
|
79
|
-
if (
|
|
80
|
-
clip.probe.width !== props.width ||
|
|
81
|
-
clip.probe.height !== props.height ||
|
|
82
|
-
clip.probe.frameCount !== props.frameCount ||
|
|
83
|
-
props.runtimeSeconds !==
|
|
84
|
-
(props.frameCount * frameRate.denominator) / frameRate.numerator ||
|
|
85
|
-
BigInt(clip.probe.presentation.movieDuration) *
|
|
86
|
-
BigInt(frameRate.numerator) !==
|
|
87
|
-
BigInt(props.frameCount) *
|
|
88
|
-
BigInt(frameRate.denominator) *
|
|
89
|
-
BigInt(clip.probe.presentation.movieTimescale)
|
|
90
|
-
)
|
|
91
|
-
throw new Error(
|
|
92
|
-
`Repaint clip "${props.shot}" does not match its exact raster, rational frame clock, frame count, and runtime contract.`,
|
|
93
|
-
);
|
|
94
|
-
assertProductionVideoProfile({
|
|
95
|
-
expected: resolveProductionVideoProfile({
|
|
96
|
-
width: props.width,
|
|
97
|
-
height: props.height,
|
|
98
|
-
frameRate,
|
|
99
|
-
}),
|
|
100
|
-
actual: clip.probe,
|
|
101
|
-
});
|
|
102
|
-
};
|
package/scaffold/production/src/executable/render/node/cache/IAutoMovieDirectoryArtifactStore.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { IAutoMovieArtifactStore } from "@automovie/engine";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* An engine artifact store kept in one local directory, as returned by
|
|
5
|
-
* `createAutoMovieDirectoryArtifactStore`, with the listing and garbage
|
|
6
|
-
* collection a run needs.
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/design.md#principled-representation Extends the engine port with the stored-key set a planner diffs against and a collection step bounded by age and bytes, the two eviction limits Bazel's disk cache and Nuke's cache use; keys are the engine's `sha256:` strings.
|
|
9
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface Render owns Node file storage; the viewer frame cache lists keys before planning and collects after a successful run, and productions reuse the same store for their own stages.
|
|
10
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts No stage or artifact kind is named; the engine port stays the read/write surface.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation States what each added member reads or deletes, its units and the meaning of absent limits.
|
|
12
|
-
*/
|
|
13
|
-
export interface IAutoMovieDirectoryArtifactStore extends IAutoMovieArtifactStore {
|
|
14
|
-
/** The directory this store owns. */
|
|
15
|
-
directory: string;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Keys with a complete entry on disk now; content is verified only when read.
|
|
19
|
-
*
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Keys with a complete entry on disk now; content is verified only when read.
|
|
21
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; the contract it fixes is: Keys with a complete entry on disk now; content is verified only when read.
|
|
22
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it declares one operation and adds no layer.
|
|
23
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; nothing here can special-case a value.
|
|
24
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; the cost an implementation may incur is not constrained by this signature.
|
|
25
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it coordinates no work itself.
|
|
26
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it owns no state, handle or task.
|
|
27
|
-
*/
|
|
28
|
-
keys(): Promise<Set<string>>;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Delete entries outside `keep`, and abandoned partial writes.
|
|
32
|
-
*
|
|
33
|
-
* With neither limit, every entry outside `keep` is deleted, the per-run
|
|
34
|
-
* manifest rule: what the finished run did not reference is garbage. With
|
|
35
|
-
* `maxAgeMs`, only entries unread for longer are deleted; with `maxBytes`,
|
|
36
|
-
* the least recently read entries outside `keep` are deleted until the
|
|
37
|
-
* stored bytes fit. Kept entries are never deleted.
|
|
38
|
-
*
|
|
39
|
-
* @returns Number of deleted entries and the bytes that remain.
|
|
40
|
-
*
|
|
41
|
-
* @evidence contracts/development/common.md#meaningful-documentation Documents the member contract in its own summary: Delete entries outside `keep`, and abandoned partial writes.
|
|
42
|
-
* @evidenceExclude contracts/development/implementation.md#principled-implementation Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; the contract it fixes is: Delete entries outside `keep`, and abandoned partial writes.
|
|
43
|
-
* @evidenceExclude contracts/development/implementation.md#clear-and-simple-structure Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it declares one operation and adds no layer.
|
|
44
|
-
* @evidenceExclude contracts/development/implementation.md#prohibited-implementation-shortcuts Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; nothing here can special-case a value.
|
|
45
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; the cost an implementation may incur is not constrained by this signature.
|
|
46
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it coordinates no work itself.
|
|
47
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Signature only: this declaration has no body, so it carries no method of its own and each implementation answers for its own algorithm, structure and resources; it owns no state, handle or task.
|
|
48
|
-
*/
|
|
49
|
-
collect(options: {
|
|
50
|
-
/** Keys the caller still references. */
|
|
51
|
-
keep?: ReadonlySet<string>;
|
|
52
|
-
|
|
53
|
-
/** Milliseconds since an entry was last written or read. */
|
|
54
|
-
maxAgeMs?: number;
|
|
55
|
-
|
|
56
|
-
/** Upper bound on the bytes of all remaining entries. */
|
|
57
|
-
maxBytes?: number;
|
|
58
|
-
}): Promise<{ removed: number; bytes: number }>;
|
|
59
|
-
}
|