@automovie/template 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -18
- package/generated/pnpm-workspace.json +54 -0
- package/{lib → generated}/skills/3d-modeling/conditioning.md +24 -27
- package/generated/skills/3d-modeling/crafting/SKILL.md +16 -0
- package/generated/skills/3d-modeling/crafting/construction.md +70 -0
- package/generated/skills/3d-modeling/crafting/lofting.md +73 -0
- package/generated/skills/3d-modeling/crafting/recovery.md +25 -0
- package/generated/skills/3d-modeling/diffusion/image-hints.md +30 -0
- package/generated/skills/3d-modeling/diffusion/models.md +27 -0
- package/generated/skills/3d-modeling/diffusion/prompts.md +9 -0
- package/generated/skills/3d-modeling/diffusion/request.md +16 -0
- package/generated/skills/3d-modeling/diffusion/shape-hints.md +31 -0
- package/generated/skills/3d-modeling/inspection.md +55 -0
- package/generated/skills/3d-modeling/modularization.md +25 -0
- package/{lib → generated}/skills/3d-modeling/rigging.md +21 -27
- package/{lib → generated}/skills/3d-modeling/sources.md +6 -6
- package/{lib → generated}/skills/contracts/development/design.md +2 -3
- package/{lib → generated}/skills/contracts/development/implementation.md +4 -4
- package/{lib → generated}/skills/contracts/development/testing.md +1 -1
- package/generated/skills/development/repair.md +13 -0
- package/{lib → generated}/skills/documentation/SKILL.md +2 -8
- package/generated/skills/documentation/writing.md +63 -0
- package/{lib/skills/motion → generated/skills/motion/laws}/authoring.md +13 -9
- package/{lib/skills/motion → generated/skills/motion/laws}/contacts.md +3 -1
- package/{lib/skills/motion/laws.md → generated/skills/motion/laws/declaration.md} +8 -8
- package/generated/skills/motion/laws/transitions.md +37 -0
- package/{lib/skills/motion → generated/skills/motion/laws}/variation.md +5 -5
- package/{lib/skills/motion → generated/skills/motion/laws}/verification.md +7 -13
- package/generated/skills/prompting/SKILL.md +82 -0
- package/{lib → generated}/skills/visual-debugging/capture.md +13 -11
- package/{lib → generated}/skills/visual-debugging/comparison.md +7 -9
- package/{lib → generated}/skills/visual-debugging/correction-rounds.md +13 -13
- package/{lib → generated}/skills/visual-debugging/passes.md +9 -9
- package/lib/IAutoMovieScaffoldProps.d.ts +14 -6
- package/lib/assertScaffoldProjectName.d.ts +1 -1
- package/lib/assertScaffoldProjectName.js +1 -1
- package/lib/createAutoMovieScaffold.d.ts +27 -0
- package/lib/createAutoMovieScaffold.js +145 -0
- package/lib/createAutoMovieScaffold.js.map +1 -0
- package/lib/index.d.ts +1 -45
- package/lib/index.js +1 -45
- package/lib/index.js.map +1 -1
- package/lib/listAutoMovieScaffoldFiles.d.ts +2 -2
- package/lib/listAutoMovieScaffoldFiles.js +2 -2
- package/package.json +9 -12
- package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +14 -11
- package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +7 -9
- package/scaffold/instructions/.agents/skills/3d-modeling/diffusion/SKILL.md +20 -0
- package/scaffold/instructions/.agents/skills/audio/SKILL.md +10 -21
- package/scaffold/instructions/.agents/skills/audio/acquisition.md +24 -12
- package/scaffold/instructions/.agents/skills/audio/film-sound.md +25 -0
- package/scaffold/instructions/.agents/skills/audio/generated-sound.md +15 -0
- package/scaffold/instructions/.agents/skills/audio/sound-effects.md +11 -17
- package/scaffold/instructions/.agents/skills/audio/soundtrack.md +5 -0
- package/scaffold/instructions/.agents/skills/contracts/SKILL.md +10 -16
- package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +5 -7
- package/scaffold/instructions/.agents/skills/contracts/development/composition.md +12 -8
- package/scaffold/instructions/.agents/skills/contracts/development/entities.md +7 -6
- package/scaffold/instructions/.agents/skills/contracts/development/statements/behaviors.md +20 -20
- package/scaffold/instructions/.agents/skills/contracts/development/statements/composition.md +18 -16
- package/scaffold/instructions/.agents/skills/contracts/development/statements/entities.md +13 -12
- package/scaffold/instructions/.agents/skills/contracts/story/SKILL.md +13 -15
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/brief.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/common.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/narratives.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/screenplay.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/scripts.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/settings.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/treatments.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/common.md +6 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/common.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/realized.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/scripts.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/realized.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/brief.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/common.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/index.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/narratives.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/review.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/screenplay.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/scripts.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/settings.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/treatments.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/brief.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/common.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/index.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/narratives.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/realized.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/research.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/review.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/screenplay.md +5 -9
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/scripts.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/settings.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/treatments.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/brief.md +4 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/common.md +7 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/narratives.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/screenplay.md +3 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/scripts.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/settings.md +5 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/treatments.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/common.md +37 -44
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/common.md +7 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/realized.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/scripts.md +5 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/realized.md +12 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/brief.md +12 -12
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/common.md +16 -16
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/index.md +7 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/narratives.md +14 -14
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/review.md +16 -20
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/screenplay.md +7 -10
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/scripts.md +5 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/settings.md +29 -22
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/treatments.md +13 -15
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/brief.md +9 -17
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/common.md +4 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/index.md +8 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/narratives.md +29 -25
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/realized.md +11 -10
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/research.md +18 -18
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/review.md +13 -25
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/screenplay.md +41 -45
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/scripts.md +16 -16
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/settings.md +8 -24
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/treatments.md +12 -17
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/screenplay.md +7 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/scripts.md +4 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/treatments.md +3 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/screenplay.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/treatments.md +3 -3
- package/scaffold/instructions/.agents/skills/development/SKILL.md +5 -7
- package/scaffold/instructions/.agents/skills/development/entities.md +20 -20
- package/scaffold/instructions/.agents/skills/development/reuse.md +19 -18
- package/scaffold/instructions/.agents/skills/development/source-layout.md +32 -24
- package/scaffold/instructions/.agents/skills/development/testing.md +13 -10
- package/scaffold/instructions/.agents/skills/direct-film/SKILL.md +51 -0
- package/scaffold/instructions/.agents/skills/evidence/SKILL.md +1 -1
- package/scaffold/instructions/.agents/skills/evidence/adoption.md +4 -4
- package/scaffold/instructions/.agents/skills/evidence/answering.md +2 -4
- package/scaffold/instructions/.agents/skills/evidence/configuration.md +8 -8
- package/scaffold/instructions/.agents/skills/image/SKILL.md +16 -58
- package/scaffold/instructions/.agents/skills/image/canon-references.md +27 -0
- package/scaffold/instructions/.agents/skills/image/conditioning.md +27 -0
- package/scaffold/instructions/.agents/skills/image/consistency.md +23 -0
- package/scaffold/instructions/.agents/skills/image/editing.md +15 -0
- package/scaffold/instructions/.agents/skills/image/finishing.md +11 -0
- package/scaffold/instructions/.agents/skills/image/models.md +18 -0
- package/scaffold/instructions/.agents/skills/image/prompting.md +25 -0
- package/scaffold/instructions/.agents/skills/image/turnaround-views.md +13 -0
- package/scaffold/instructions/.agents/skills/motion/SKILL.md +31 -47
- package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +24 -4
- package/scaffold/instructions/.agents/skills/motion/compose/composition.md +58 -0
- package/scaffold/instructions/.agents/skills/motion/compose/refusals.md +15 -0
- package/scaffold/instructions/.agents/skills/motion/control-channels.md +20 -8
- package/scaffold/instructions/.agents/skills/motion/diffusion/SKILL.md +24 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/clips.md +17 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/hints.md +37 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/models.md +24 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/tracing.md +53 -0
- package/scaffold/instructions/.agents/skills/motion/frame-evaluation.md +8 -12
- package/scaffold/instructions/.agents/skills/motion/laws/$verification.md +0 -0
- package/scaffold/instructions/.agents/skills/motion/laws/SKILL.md +19 -0
- package/scaffold/instructions/.agents/skills/motion/laws/extension.md +35 -0
- package/scaffold/instructions/.agents/skills/motion/laws/method-references.md +21 -0
- package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +16 -16
- package/scaffold/instructions/.agents/skills/motion/retargeting.md +8 -10
- package/scaffold/instructions/.agents/skills/motion/segment-review.md +4 -6
- package/scaffold/instructions/.agents/skills/motion/staging.md +21 -13
- package/scaffold/instructions/.agents/skills/production/SKILL.md +19 -19
- package/scaffold/instructions/.agents/skills/production/assembly.md +14 -12
- package/scaffold/instructions/.agents/skills/production/captions.md +15 -0
- package/scaffold/instructions/.agents/skills/production/media-records.md +13 -12
- package/scaffold/instructions/.agents/skills/production/project-context.md +33 -12
- package/scaffold/instructions/.agents/skills/production/reorganization.md +13 -0
- package/scaffold/instructions/.agents/skills/production/stage-caches.md +11 -11
- package/scaffold/instructions/.agents/skills/production/sustained-runs.md +9 -9
- package/scaffold/instructions/.agents/skills/review/SKILL.md +3 -5
- package/scaffold/instructions/.agents/skills/review/delivery-review.md +25 -29
- package/scaffold/instructions/.agents/skills/review/estimation.md +10 -10
- package/scaffold/instructions/.agents/skills/review/independent-reading.md +10 -18
- package/scaffold/instructions/.agents/skills/review/narrative-rounds.md +10 -36
- package/scaffold/instructions/.agents/skills/review/source-review.md +6 -18
- package/scaffold/instructions/.agents/skills/story/SKILL.md +11 -11
- package/scaffold/instructions/.agents/skills/story/answers.md +27 -0
- package/scaffold/instructions/.agents/skills/story/correction/inspection.md +8 -12
- package/scaffold/instructions/.agents/skills/story/correction/repair.md +8 -12
- package/scaffold/instructions/.agents/skills/story/document-layout.md +9 -12
- package/scaffold/instructions/.agents/skills/story/layers/SKILL.md +10 -9
- package/scaffold/instructions/.agents/skills/story/layers/brief.md +7 -19
- package/scaffold/instructions/.agents/skills/story/layers/notation.md +25 -16
- package/scaffold/instructions/.agents/skills/story/layers/screenplay.md +23 -7
- package/scaffold/instructions/.agents/skills/story/layers/scripts.md +4 -4
- package/scaffold/instructions/.agents/skills/story/layers/settings.md +10 -16
- package/scaffold/instructions/.agents/skills/story/layers/shots.md +27 -0
- package/scaffold/instructions/.agents/skills/story/layers/treatments.md +4 -4
- package/scaffold/instructions/.agents/skills/story/planning/SKILL.md +4 -4
- package/scaffold/instructions/.agents/skills/story/planning/direction.md +4 -4
- package/scaffold/instructions/.agents/skills/story/planning/discovery.md +8 -7
- package/scaffold/instructions/.agents/skills/story/planning/requirements.md +11 -11
- package/scaffold/instructions/.agents/skills/story/planning/research.md +24 -11
- package/scaffold/instructions/.agents/skills/story/workflow/SKILL.md +14 -0
- package/scaffold/instructions/.agents/skills/story/workflow/long.md +38 -0
- package/scaffold/instructions/.agents/skills/story/workflow/routes.md +40 -0
- package/scaffold/instructions/.agents/skills/story/workflow/short.md +33 -0
- package/scaffold/instructions/.agents/skills/video/SKILL.md +12 -21
- package/scaffold/instructions/.agents/skills/video/diffusion/SKILL.md +21 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/continuity.md +21 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/hints.md +14 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/models.md +26 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/prompts.md +45 -0
- package/scaffold/instructions/.agents/skills/video/finishing.md +44 -0
- package/scaffold/instructions/.agents/skills/video/generation.md +24 -13
- package/scaffold/instructions/.agents/skills/video/requests.md +46 -0
- package/scaffold/instructions/.agents/skills/visual-debugging/SKILL.md +5 -6
- package/scaffold/instructions/AGENTS.md +30 -56
- package/scaffold/production/PROJECT.md +1 -1
- package/scaffold/production/README.md +50 -96
- package/scaffold/production/_gitignore +1 -2
- package/scaffold/production/index.html +4 -8
- package/scaffold/production/lint.config.ts +1 -1
- package/scaffold/production/package.json +31 -31
- package/scaffold/production/src/IFilm.ts +3 -3
- package/scaffold/production/src/IFilmProduction.ts +16 -5
- package/scaffold/production/src/composition/films/index.ts +3 -2
- package/scaffold/production/src/composition/films/starter.ts +2 -2
- package/scaffold/production/src/main.ts +9 -195
- package/scaffold/production/src/markFilmProduction.ts +43 -0
- package/scaffold/production/src/selectFilm.ts +3 -5
- package/scaffold/production/src/subjects.ts +59 -0
- package/scaffold/production/vite.config.ts +4 -2
- package/scaffold/workspace/README.md +5 -7
- package/scaffold/workspace/package.json +1 -1
- package/src/IAutoMovieScaffoldProps.ts +15 -6
- package/src/assertScaffoldProjectName.ts +1 -1
- package/src/createAutoMovieScaffold.ts +152 -0
- package/src/index.ts +1 -46
- package/src/listAutoMovieScaffoldFiles.ts +2 -2
- package/build/resolveTemplateVersions.ts +0 -92
- package/build/syncScaffoldInstructions.ts +0 -28
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.d.ts +0 -14
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js +0 -52
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js.map +0 -1
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.d.ts +0 -2
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js +0 -42
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js.map +0 -1
- package/lib/AutoMovieScaffoldLayer.d.ts +0 -15
- package/lib/AutoMovieScaffoldLayer.js +0 -3
- package/lib/AutoMovieScaffoldLayer.js.map +0 -1
- package/lib/FILE_ATTRIBUTE_DIRECTORY.d.ts +0 -2
- package/lib/FILE_ATTRIBUTE_DIRECTORY.js +0 -6
- package/lib/FILE_ATTRIBUTE_DIRECTORY.js.map +0 -1
- package/lib/IAutoMovieCatalogVersionProps.d.ts +0 -16
- package/lib/IAutoMovieCatalogVersionProps.js +0 -3
- package/lib/IAutoMovieCatalogVersionProps.js.map +0 -1
- package/lib/IAutoMovieScaffoldSourceEntry.d.ts +0 -18
- package/lib/IAutoMovieScaffoldSourceEntry.js +0 -3
- package/lib/IAutoMovieScaffoldSourceEntry.js.map +0 -1
- package/lib/IAutoMovieTemplateDependencyVersionsProps.d.ts +0 -17
- package/lib/IAutoMovieTemplateDependencyVersionsProps.js +0 -3
- package/lib/IAutoMovieTemplateDependencyVersionsProps.js.map +0 -1
- package/lib/IAutoMovieWorkspacePackageVersions.d.ts +0 -34
- package/lib/IAutoMovieWorkspacePackageVersions.js +0 -3
- package/lib/IAutoMovieWorkspacePackageVersions.js.map +0 -1
- package/lib/IBoundChild.d.ts +0 -71
- package/lib/IBoundChild.js +0 -3
- package/lib/IBoundChild.js.map +0 -1
- package/lib/IBoundChildStatus.d.ts +0 -20
- package/lib/IBoundChildStatus.js +0 -3
- package/lib/IBoundChildStatus.js.map +0 -1
- package/lib/IBoundParent.d.ts +0 -61
- package/lib/IBoundParent.js +0 -3
- package/lib/IBoundParent.js.map +0 -1
- package/lib/IBoundParentStatus.d.ts +0 -14
- package/lib/IBoundParentStatus.js +0 -3
- package/lib/IBoundParentStatus.js.map +0 -1
- package/lib/ICreateResult.d.ts +0 -27
- package/lib/ICreateResult.js +0 -3
- package/lib/ICreateResult.js.map +0 -1
- package/lib/IScaffoldCompletedFilePublicationOutcome.d.ts +0 -16
- package/lib/IScaffoldCompletedFilePublicationOutcome.js +0 -3
- package/lib/IScaffoldCompletedFilePublicationOutcome.js.map +0 -1
- package/lib/IScaffoldCompletedPublication.d.ts +0 -15
- package/lib/IScaffoldCompletedPublication.js +0 -3
- package/lib/IScaffoldCompletedPublication.js.map +0 -1
- package/lib/IScaffoldFileSnapshot.d.ts +0 -24
- package/lib/IScaffoldFileSnapshot.js +0 -3
- package/lib/IScaffoldFileSnapshot.js.map +0 -1
- package/lib/IScaffoldParentPublicationRequest.d.ts +0 -26
- package/lib/IScaffoldParentPublicationRequest.js +0 -3
- package/lib/IScaffoldParentPublicationRequest.js.map +0 -1
- package/lib/IScaffoldPartialFilePublicationOutcome.d.ts +0 -22
- package/lib/IScaffoldPartialFilePublicationOutcome.js +0 -3
- package/lib/IScaffoldPartialFilePublicationOutcome.js.map +0 -1
- package/lib/IScaffoldPhysicalDirectory.d.ts +0 -20
- package/lib/IScaffoldPhysicalDirectory.js +0 -3
- package/lib/IScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/IScaffoldPosixConstants.d.ts +0 -24
- package/lib/IScaffoldPosixConstants.js +0 -3
- package/lib/IScaffoldPosixConstants.js.map +0 -1
- package/lib/IScaffoldPublicationEntry.d.ts +0 -20
- package/lib/IScaffoldPublicationEntry.js +0 -3
- package/lib/IScaffoldPublicationEntry.js.map +0 -1
- package/lib/IScaffoldPublicationFailure.d.ts +0 -18
- package/lib/IScaffoldPublicationFailure.js +0 -3
- package/lib/IScaffoldPublicationFailure.js.map +0 -1
- package/lib/IScaffoldPublicationOptions.d.ts +0 -17
- package/lib/IScaffoldPublicationOptions.js +0 -3
- package/lib/IScaffoldPublicationOptions.js.map +0 -1
- package/lib/IScaffoldPublicationReceipt.d.ts +0 -25
- package/lib/IScaffoldPublicationReceipt.js +0 -3
- package/lib/IScaffoldPublicationReceipt.js.map +0 -1
- package/lib/IScaffoldRefusedFilePublicationOutcome.d.ts +0 -18
- package/lib/IScaffoldRefusedFilePublicationOutcome.js +0 -3
- package/lib/IScaffoldRefusedFilePublicationOutcome.js.map +0 -1
- package/lib/IScaffoldSyncPlan.d.ts +0 -25
- package/lib/IScaffoldSyncPlan.js +0 -3
- package/lib/IScaffoldSyncPlan.js.map +0 -1
- package/lib/IScaffoldSyncProps.d.ts +0 -16
- package/lib/IScaffoldSyncProps.js +0 -3
- package/lib/IScaffoldSyncProps.js.map +0 -1
- package/lib/IWindowsFileInformation.d.ts +0 -20
- package/lib/IWindowsFileInformation.js +0 -3
- package/lib/IWindowsFileInformation.js.map +0 -1
- package/lib/IWindowsLibrary.d.ts +0 -127
- package/lib/IWindowsLibrary.js +0 -3
- package/lib/IWindowsLibrary.js.map +0 -1
- package/lib/SCAFFOLD_SYNC_STATE_FILE.d.ts +0 -4
- package/lib/SCAFFOLD_SYNC_STATE_FILE.js +0 -8
- package/lib/SCAFFOLD_SYNC_STATE_FILE.js.map +0 -1
- package/lib/ScaffoldFilePublicationOutcome.d.ts +0 -14
- package/lib/ScaffoldFilePublicationOutcome.js +0 -3
- package/lib/ScaffoldFilePublicationOutcome.js.map +0 -1
- package/lib/ScaffoldParentChangedError.d.ts +0 -11
- package/lib/ScaffoldParentChangedError.js +0 -19
- package/lib/ScaffoldParentChangedError.js.map +0 -1
- package/lib/ScaffoldPublicationError.d.ts +0 -17
- package/lib/ScaffoldPublicationError.js +0 -46
- package/lib/ScaffoldPublicationError.js.map +0 -1
- package/lib/assertOrdinaryFile.d.ts +0 -13
- package/lib/assertOrdinaryFile.js +0 -20
- package/lib/assertOrdinaryFile.js.map +0 -1
- package/lib/assertOrdinarySingleLinkFile.d.ts +0 -13
- package/lib/assertOrdinarySingleLinkFile.js +0 -22
- package/lib/assertOrdinarySingleLinkFile.js.map +0 -1
- package/lib/assertScaffoldOwnership.d.ts +0 -13
- package/lib/assertScaffoldOwnership.js +0 -24
- package/lib/assertScaffoldOwnership.js.map +0 -1
- package/lib/assertScaffoldPhysicalDirectory.d.ts +0 -16
- package/lib/assertScaffoldPhysicalDirectory.js +0 -26
- package/lib/assertScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/attachScaffoldSyncState.d.ts +0 -18
- package/lib/attachScaffoldSyncState.js +0 -30
- package/lib/attachScaffoldSyncState.js.map +0 -1
- package/lib/captureEmptyScaffoldPhysicalDirectory.d.ts +0 -13
- package/lib/captureEmptyScaffoldPhysicalDirectory.js +0 -69
- package/lib/captureEmptyScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/captureScaffoldFile.d.ts +0 -13
- package/lib/captureScaffoldFile.js +0 -67
- package/lib/captureScaffoldFile.js.map +0 -1
- package/lib/captureScaffoldPhysicalDirectory.d.ts +0 -13
- package/lib/captureScaffoldPhysicalDirectory.js +0 -63
- package/lib/captureScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/combineScaffoldFailures.d.ts +0 -19
- package/lib/combineScaffoldFailures.js +0 -32
- package/lib/combineScaffoldFailures.js.map +0 -1
- package/lib/createAutoMovieCatalogVersionResolver.d.ts +0 -17
- package/lib/createAutoMovieCatalogVersionResolver.js +0 -64
- package/lib/createAutoMovieCatalogVersionResolver.js.map +0 -1
- package/lib/createScaffoldSyncState.d.ts +0 -12
- package/lib/createScaffoldSyncState.js +0 -26
- package/lib/createScaffoldSyncState.js.map +0 -1
- package/lib/createScaffoldVariables.d.ts +0 -25
- package/lib/createScaffoldVariables.js +0 -41
- package/lib/createScaffoldVariables.js.map +0 -1
- package/lib/ensureScaffoldBaseDirectory.d.ts +0 -19
- package/lib/ensureScaffoldBaseDirectory.js +0 -89
- package/lib/ensureScaffoldBaseDirectory.js.map +0 -1
- package/lib/ensureScaffoldFileDirectory.d.ts +0 -25
- package/lib/ensureScaffoldFileDirectory.js +0 -103
- package/lib/ensureScaffoldFileDirectory.js.map +0 -1
- package/lib/inside.d.ts +0 -12
- package/lib/inside.js +0 -57
- package/lib/inside.js.map +0 -1
- package/lib/isScaffoldInstruction.d.ts +0 -12
- package/lib/isScaffoldInstruction.js +0 -29
- package/lib/isScaffoldInstruction.js.map +0 -1
- package/lib/loadWindowsLibrary.d.ts +0 -13
- package/lib/loadWindowsLibrary.js +0 -180
- package/lib/loadWindowsLibrary.js.map +0 -1
- package/lib/mergeScaffoldFiles.d.ts +0 -18
- package/lib/mergeScaffoldFiles.js +0 -37
- package/lib/mergeScaffoldFiles.js.map +0 -1
- package/lib/missingPath.d.ts +0 -12
- package/lib/missingPath.js +0 -18
- package/lib/missingPath.js.map +0 -1
- package/lib/nativeError.d.ts +0 -12
- package/lib/nativeError.js +0 -17
- package/lib/nativeError.js.map +0 -1
- package/lib/openPosixParent.d.ts +0 -13
- package/lib/openPosixParent.js +0 -135
- package/lib/openPosixParent.js.map +0 -1
- package/lib/openWindowsParent.d.ts +0 -13
- package/lib/openWindowsParent.js +0 -224
- package/lib/openWindowsParent.js.map +0 -1
- package/lib/overwriteScaffoldFile.d.ts +0 -22
- package/lib/overwriteScaffoldFile.js +0 -214
- package/lib/overwriteScaffoldFile.js.map +0 -1
- package/lib/physicalDirectoryIdentity.d.ts +0 -15
- package/lib/physicalDirectoryIdentity.js +0 -65
- package/lib/physicalDirectoryIdentity.js.map +0 -1
- package/lib/physicalVersion.d.ts +0 -13
- package/lib/physicalVersion.js +0 -18
- package/lib/physicalVersion.js.map +0 -1
- package/lib/planScaffoldPublication.d.ts +0 -22
- package/lib/planScaffoldPublication.js +0 -100
- package/lib/planScaffoldPublication.js.map +0 -1
- package/lib/planScaffoldSync.d.ts +0 -14
- package/lib/planScaffoldSync.js +0 -102
- package/lib/planScaffoldSync.js.map +0 -1
- package/lib/publishFiles.d.ts +0 -23
- package/lib/publishFiles.js +0 -124
- package/lib/publishFiles.js.map +0 -1
- package/lib/publishNativeScaffoldFile.d.ts +0 -21
- package/lib/publishNativeScaffoldFile.js +0 -211
- package/lib/publishNativeScaffoldFile.js.map +0 -1
- package/lib/publishScaffoldCandidate.d.ts +0 -24
- package/lib/publishScaffoldCandidate.js +0 -70
- package/lib/publishScaffoldCandidate.js.map +0 -1
- package/lib/readAutoMovieScaffoldSources.d.ts +0 -20
- package/lib/readAutoMovieScaffoldSources.js +0 -103
- package/lib/readAutoMovieScaffoldSources.js.map +0 -1
- package/lib/readScaffoldSyncFile.d.ts +0 -16
- package/lib/readScaffoldSyncFile.js +0 -64
- package/lib/readScaffoldSyncFile.js.map +0 -1
- package/lib/renderScaffold.d.ts +0 -19
- package/lib/renderScaffold.js +0 -33
- package/lib/renderScaffold.js.map +0 -1
- package/lib/renderScaffoldEntries.d.ts +0 -20
- package/lib/renderScaffoldEntries.js +0 -106
- package/lib/renderScaffoldEntries.js.map +0 -1
- package/lib/renderScaffoldInstructions.d.ts +0 -17
- package/lib/renderScaffoldInstructions.js +0 -23
- package/lib/renderScaffoldInstructions.js.map +0 -1
- package/lib/renderScaffoldLayer.d.ts +0 -20
- package/lib/renderScaffoldLayer.js +0 -28
- package/lib/renderScaffoldLayer.js.map +0 -1
- package/lib/renderTemplate.d.ts +0 -19
- package/lib/renderTemplate.js +0 -56
- package/lib/renderTemplate.js.map +0 -1
- package/lib/renderWorkspaceProductionScaffold.d.ts +0 -19
- package/lib/renderWorkspaceProductionScaffold.js +0 -30
- package/lib/renderWorkspaceProductionScaffold.js.map +0 -1
- package/lib/renderWorkspaceScaffold.d.ts +0 -19
- package/lib/renderWorkspaceScaffold.js +0 -33
- package/lib/renderWorkspaceScaffold.js.map +0 -1
- package/lib/replaceSharedScaffoldFile.d.ts +0 -30
- package/lib/replaceSharedScaffoldFile.js +0 -106
- package/lib/replaceSharedScaffoldFile.js.map +0 -1
- package/lib/resolveAutoMovieCatalogVersion.d.ts +0 -19
- package/lib/resolveAutoMovieCatalogVersion.js +0 -24
- package/lib/resolveAutoMovieCatalogVersion.js.map +0 -1
- package/lib/resolveAutoMovieTemplateDependencyVersions.d.ts +0 -19
- package/lib/resolveAutoMovieTemplateDependencyVersions.js +0 -62
- package/lib/resolveAutoMovieTemplateDependencyVersions.js.map +0 -1
- package/lib/resolveScaffoldPosixConstants.d.ts +0 -13
- package/lib/resolveScaffoldPosixConstants.js +0 -44
- package/lib/resolveScaffoldPosixConstants.js.map +0 -1
- package/lib/scaffoldAssetDirectory.d.ts +0 -19
- package/lib/scaffoldAssetDirectory.js +0 -63
- package/lib/scaffoldAssetDirectory.js.map +0 -1
- package/lib/scaffoldPhysicalIdentity.d.ts +0 -18
- package/lib/scaffoldPhysicalIdentity.js +0 -22
- package/lib/scaffoldPhysicalIdentity.js.map +0 -1
- package/lib/scaffoldSharedSkillDirectory.d.ts +0 -17
- package/lib/scaffoldSharedSkillDirectory.js +0 -62
- package/lib/scaffoldSharedSkillDirectory.js.map +0 -1
- package/lib/skills/3d-modeling/crafting.md +0 -82
- package/lib/skills/3d-modeling/diffusion.md +0 -34
- package/lib/skills/3d-modeling/inspection.md +0 -54
- package/lib/skills/3d-modeling/lofting.md +0 -43
- package/lib/skills/3d-modeling/modularization.md +0 -31
- package/lib/skills/3d-modeling/recovery.md +0 -29
- package/lib/skills/development/repair.md +0 -13
- package/lib/skills/documentation/writing.md +0 -51
- package/lib/skills/motion/layers.md +0 -7
- package/lib/skills/motion/transitions.md +0 -27
- package/lib/skills/prompting/SKILL.md +0 -80
- package/lib/syncScaffold.d.ts +0 -19
- package/lib/syncScaffold.js +0 -28
- package/lib/syncScaffold.js.map +0 -1
- package/lib/writeFiles.d.ts +0 -20
- package/lib/writeFiles.js +0 -33
- package/lib/writeFiles.js.map +0 -1
- package/lib/writeScaffoldFile.d.ts +0 -35
- package/lib/writeScaffoldFile.js +0 -107
- package/lib/writeScaffoldFile.js.map +0 -1
- package/lib/writtenVersion.d.ts +0 -13
- package/lib/writtenVersion.js +0 -18
- package/lib/writtenVersion.js.map +0 -1
- package/scaffold/instructions/.agents/skills/audio/local-speech.md +0 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/screenplay.md +0 -9
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/screenplay.md +0 -13
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/screenplay.md +0 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/screenplay.md +0 -25
- package/scaffold/instructions/.agents/skills/motion/method-references.md +0 -23
- package/scaffold/instructions/.agents/skills/production/sync-and-reorganization.md +0 -21
- package/scaffold/instructions/.agents/skills/story/correction/SKILL.md +0 -13
- package/scaffold/instructions/.agents/skills/story/evidence/SKILL.md +0 -13
- package/scaffold/instructions/.agents/skills/story/evidence/answer-placement.md +0 -13
- package/scaffold/instructions/.agents/skills/story/evidence/answer-writing.md +0 -23
- package/scaffold/instructions/.agents/skills/story/naturalness/SKILL.md +0 -13
- package/scaffold/instructions/.agents/skills/story/naturalness/rewriting.md +0 -17
- package/scaffold/instructions/.agents/skills/story/naturalness/transfer.md +0 -11
- package/scaffold/instructions/.agents/skills/story/workflow.md +0 -61
- package/scaffold/instructions/.agents/skills/video/diffusion.md +0 -33
- package/scaffold/instructions/.agents/skills/video/prompts.md +0 -51
- package/scaffold/production/evidence.config.ts +0 -12
- package/scaffold/production/src/executable/capture.ts +0 -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/{lib → generated}/skills/contracts/development/common.md +0 -0
- /package/{lib → generated}/skills/visual-debugging/rendering-cost.md +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$crafting.md → $crafting} +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$diffusion.md → diffusion/$image-hints.md} +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$lofting.md → diffusion/$models.md} +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$recovery.md → diffusion/$prompts.md} +0 -0
- /package/scaffold/instructions/.agents/skills/{motion/$authoring.md → 3d-modeling/diffusion/$request.md} +0 -0
- /package/scaffold/instructions/.agents/skills/{motion/$contacts.md → 3d-modeling/diffusion/$shape-hints.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$laws.md → laws/$authoring.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$layers.md → laws/$contacts.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$transitions.md → laws/$declaration.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$variation.md → laws/$transitions.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$verification.md → laws/$variation.md} +0 -0
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
AutoMovieProductionPngColor,
|
|
3
|
-
IAutoMovieProductionPngPicture,
|
|
4
|
-
} from "@automovie/interface";
|
|
5
|
-
import { crc32 } from "node:zlib";
|
|
6
|
-
|
|
7
|
-
import { residentPngJs } from "./residentPngJs";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Decode one PNG datastream and report its IHDR, colour, alpha, colour-space, pixel-aspect and orientation facts.
|
|
11
|
-
*
|
|
12
|
-
* The datastream must start with the PNG signature, consist of whole chunks with four-letter ASCII types and valid CRCs over each type and payload, and end exactly at one IEND chunk. The resident `pngjs` decoder must then accept the IHDR and image data. The colour space is `srgb` for an `sRGB` chunk, `icc` for an `iCCP` chunk, `srgb` for a `gAMA` of 45455 whose `cHRM`, if present, carries the sRGB chromaticities, `gamma` for any other `gAMA`, and `unidentified` otherwise. The `cICP` and `mDCV` chunks of the third PNG edition are not read. An `eXIf` chunk reports `metadata-present` orientation without being parsed; ICC admission checks the profile-name and compression-method header, without decompressing or validating the profile body.
|
|
13
|
-
*
|
|
14
|
-
* Each refusal is an `Error` naming the defect: a missing signature, a truncated chunk header or payload, a non-letter chunk type, a CRC mismatch, a missing or non-terminal IEND, the decoder's own refusal, a repeated `sRGB`, `gAMA`, `cHRM`, `iCCP`, `pHYs` or `eXIf` chunk, a malformed `sRGB`, `gAMA`, `cHRM`, `iCCP` or `pHYs` payload, an `sRGB` with a `gAMA` other than 45455, and an `sRGB` together with an `iCCP`.
|
|
15
|
-
*
|
|
16
|
-
* @evidence contracts/development/implementation.md#principled-implementation The PNG specification defines CRC over the four-byte type and payload, excluding length and stored CRC; the bounded chunk walk checks that range with Node's public crc32 before any metadata is trusted, including ancillary types the resident decoder skips. The decoder owns IHDR and image-data admission, while 45455 is the gAMA value associated with sRGB.
|
|
17
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The function reports observed facts and leaves acceptance to `assertProductionPngPicture`, while chunk framing, the colour-space rule, the pixel aspect and the ICC profile name are small private steps of this one reading.
|
|
18
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No fixture, file size or chunk order bypasses CRC admission. Repeated selected metadata, conflicting sRGB/gAMA and sRGB/iCCP declarations refuse; sRGB takes precedence over cHRM without checking their consistency, and unread third-edition chunks remain a stated limitation.
|
|
19
|
-
* @evidence contracts/development/common.md#meaningful-documentation The doc states the framing and decoding conditions, how each colour-space value is chosen, which chunks are not read, what orientation means, and every refusal.
|
|
20
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms For B encoded bytes, C chunks and P output pixels, framing and CRC touch O(B+C) bytes and records, six selected-metadata scans add O(C), and decoding inflates and processes scanline data before producing an RGBA buffer of 4P bytes. Decoder work and residency include compressed input, inflated scanlines and pixel buffers; this function imposes no byte, chunk or pixel cap and claims no measured peak ratio.
|
|
21
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call probes the bytes it was handed and caches nothing; a picture is probed once per deliverable.
|
|
22
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The chunk list retains views of caller-owned bytes during the call, and decoder pixel and scanline buffers coexist transiently. They become eligible for collection after return; the result holds only scalar metadata and no file handle or task is opened.
|
|
23
|
-
*/
|
|
24
|
-
export const probeProductionPngPicture: (
|
|
25
|
-
bytes: Uint8Array,
|
|
26
|
-
) => IAutoMovieProductionPngPicture = (
|
|
27
|
-
bytes: Uint8Array,
|
|
28
|
-
): IAutoMovieProductionPngPicture => {
|
|
29
|
-
const chunks: IPngChunk[] = parsePngChunks(bytes);
|
|
30
|
-
residentPngJs().PNG.sync.read(
|
|
31
|
-
Buffer.from(bytes.buffer, bytes.byteOffset, bytes.byteLength),
|
|
32
|
-
);
|
|
33
|
-
// The decoder refused a datastream whose first chunk is not the 13-byte
|
|
34
|
-
// IHDR, an interlace method other than none or Adam7, and a colour type
|
|
35
|
-
// outside the five the format defines, so these reads are in range.
|
|
36
|
-
const header: Uint8Array = chunks[0]!.data;
|
|
37
|
-
const colorType: number = header[9]!;
|
|
38
|
-
const srgb: IPngChunk | undefined = uniquePngChunk(chunks, "sRGB");
|
|
39
|
-
const gamma: IPngChunk | undefined = uniquePngChunk(chunks, "gAMA");
|
|
40
|
-
const chromaticity: IPngChunk | undefined = uniquePngChunk(chunks, "cHRM");
|
|
41
|
-
const icc: IPngChunk | undefined = uniquePngChunk(chunks, "iCCP");
|
|
42
|
-
const physical: IPngChunk | undefined = uniquePngChunk(chunks, "pHYs");
|
|
43
|
-
const exif: IPngChunk | undefined = uniquePngChunk(chunks, "eXIf");
|
|
44
|
-
if (srgb !== undefined && srgb.data.length !== 1)
|
|
45
|
-
throw new Error("PNG sRGB chunk must contain one rendering-intent byte.");
|
|
46
|
-
if (srgb !== undefined && srgb.data[0]! > 3)
|
|
47
|
-
throw new Error(
|
|
48
|
-
"PNG sRGB rendering intent must be between zero and three.",
|
|
49
|
-
);
|
|
50
|
-
if (gamma !== undefined && gamma.data.length !== 4)
|
|
51
|
-
throw new Error("PNG gAMA chunk must contain one unsigned gamma integer.");
|
|
52
|
-
if (chromaticity !== undefined && chromaticity.data.length !== 32)
|
|
53
|
-
throw new Error("PNG cHRM chunk must contain eight chromaticity integers.");
|
|
54
|
-
const gammaValue: number | null =
|
|
55
|
-
gamma === undefined ? null : readUint32(gamma.data, 0);
|
|
56
|
-
if (srgb !== undefined && gammaValue !== null && gammaValue !== SRGB_GAMMA)
|
|
57
|
-
throw new Error(
|
|
58
|
-
`PNG sRGB and gAMA chunks conflict: sRGB requires gAMA ${SRGB_GAMMA}, not ${gammaValue}.`,
|
|
59
|
-
);
|
|
60
|
-
if (srgb !== undefined && icc !== undefined)
|
|
61
|
-
throw new Error(
|
|
62
|
-
"PNG sRGB and iCCP color declarations are mutually exclusive.",
|
|
63
|
-
);
|
|
64
|
-
if (icc !== undefined) assertPngProfileName(icc.data);
|
|
65
|
-
return {
|
|
66
|
-
width: readUint32(header, 0),
|
|
67
|
-
height: readUint32(header, 4),
|
|
68
|
-
bitDepth: header[8]!,
|
|
69
|
-
color: PNG_COLOR_MODELS[colorType]!,
|
|
70
|
-
alpha: colorType === 4 || colorType === 6 ? "straight" : "none",
|
|
71
|
-
interlace: header[12] === 0 ? "none" : "adam7",
|
|
72
|
-
colorSpace:
|
|
73
|
-
srgb !== undefined
|
|
74
|
-
? "srgb"
|
|
75
|
-
: icc !== undefined
|
|
76
|
-
? "icc"
|
|
77
|
-
: gammaValue === null
|
|
78
|
-
? "unidentified"
|
|
79
|
-
: gammaValue === SRGB_GAMMA &&
|
|
80
|
-
(chromaticity === undefined ||
|
|
81
|
-
SRGB_CHROMATICITIES.every(
|
|
82
|
-
(value: number, index: number): boolean =>
|
|
83
|
-
readUint32(chromaticity.data, index * 4) === value,
|
|
84
|
-
))
|
|
85
|
-
? "srgb"
|
|
86
|
-
: "gamma",
|
|
87
|
-
pixelAspect: pngPixelAspect(physical?.data),
|
|
88
|
-
orientation: exif === undefined ? "upright" : "metadata-present",
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
interface IPngChunk {
|
|
93
|
-
type: string;
|
|
94
|
-
data: Uint8Array;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/** The `gAMA` value, gamma times 100000, that the PNG specification pairs with sRGB. */
|
|
98
|
-
const SRGB_GAMMA: number = 45_455;
|
|
99
|
-
|
|
100
|
-
/** The `cHRM` white point and red, green and blue primaries of sRGB, times 100000. */
|
|
101
|
-
const SRGB_CHROMATICITIES: readonly number[] = [
|
|
102
|
-
31_270, 32_900, 64_000, 33_000, 30_000, 60_000, 15_000, 6_000,
|
|
103
|
-
];
|
|
104
|
-
|
|
105
|
-
/** The five IHDR color types the format defines; the decoder admits no other. */
|
|
106
|
-
const PNG_COLOR_MODELS: Readonly<Record<number, AutoMovieProductionPngColor>> =
|
|
107
|
-
{
|
|
108
|
-
0: "gray",
|
|
109
|
-
2: "rgb",
|
|
110
|
-
3: "palette",
|
|
111
|
-
4: "gray-alpha",
|
|
112
|
-
6: "rgba",
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
/** Split a PNG datastream into chunks whose payloads view `bytes`, refusing every framing defect by name. */
|
|
116
|
-
const parsePngChunks: (bytes: Uint8Array) => IPngChunk[] = (
|
|
117
|
-
bytes: Uint8Array,
|
|
118
|
-
): IPngChunk[] => {
|
|
119
|
-
const signature: readonly number[] = [
|
|
120
|
-
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a,
|
|
121
|
-
];
|
|
122
|
-
if (
|
|
123
|
-
bytes.length < signature.length ||
|
|
124
|
-
signature.some(
|
|
125
|
-
(value: number, index: number): boolean => bytes[index] !== value,
|
|
126
|
-
)
|
|
127
|
-
)
|
|
128
|
-
throw new Error("PNG datastream lacks the required signature.");
|
|
129
|
-
const chunks: IPngChunk[] = [];
|
|
130
|
-
let cursor: number = 8;
|
|
131
|
-
while (cursor < bytes.length) {
|
|
132
|
-
if (cursor + 12 > bytes.length)
|
|
133
|
-
throw new Error("PNG datastream ends inside a chunk header.");
|
|
134
|
-
const length: number = readUint32(bytes, cursor);
|
|
135
|
-
const end: number = cursor + 12 + length;
|
|
136
|
-
if (end > bytes.length)
|
|
137
|
-
throw new Error("PNG datastream ends inside a declared chunk payload.");
|
|
138
|
-
const type: string = String.fromCharCode(
|
|
139
|
-
...bytes.subarray(cursor + 4, cursor + 8),
|
|
140
|
-
);
|
|
141
|
-
if (/^[A-Za-z]{4}$/.test(type) === false)
|
|
142
|
-
throw new Error(`PNG chunk type "${type}" is not four ASCII letters.`);
|
|
143
|
-
if (
|
|
144
|
-
crc32(bytes.subarray(cursor + 4, cursor + 8 + length)) !==
|
|
145
|
-
readUint32(bytes, cursor + 8 + length)
|
|
146
|
-
)
|
|
147
|
-
throw new Error(
|
|
148
|
-
`PNG ${type} chunk CRC does not match its type and payload.`,
|
|
149
|
-
);
|
|
150
|
-
chunks.push({
|
|
151
|
-
type,
|
|
152
|
-
data: bytes.subarray(cursor + 8, cursor + 8 + length),
|
|
153
|
-
});
|
|
154
|
-
cursor = end;
|
|
155
|
-
if (type === "IEND") break;
|
|
156
|
-
}
|
|
157
|
-
if (chunks.at(-1)?.type !== "IEND" || cursor !== bytes.length)
|
|
158
|
-
throw new Error("PNG datastream does not end at one terminal IEND chunk.");
|
|
159
|
-
return chunks;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
/** The one chunk of `type`, or undefined; a repeated chunk is refused. */
|
|
163
|
-
const uniquePngChunk: (
|
|
164
|
-
chunks: readonly IPngChunk[],
|
|
165
|
-
type: string,
|
|
166
|
-
) => IPngChunk | undefined = (
|
|
167
|
-
chunks: readonly IPngChunk[],
|
|
168
|
-
type: string,
|
|
169
|
-
): IPngChunk | undefined => {
|
|
170
|
-
const selected: IPngChunk[] = chunks.filter(
|
|
171
|
-
(chunk: IPngChunk): boolean => chunk.type === type,
|
|
172
|
-
);
|
|
173
|
-
if (selected.length > 1)
|
|
174
|
-
throw new Error(
|
|
175
|
-
`PNG datastream contains ${selected.length} ${type} chunks.`,
|
|
176
|
-
);
|
|
177
|
-
return selected[0];
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
/** The `pHYs` pixel aspect, or square when the chunk is absent. */
|
|
181
|
-
const pngPixelAspect: (
|
|
182
|
-
data: Uint8Array | undefined,
|
|
183
|
-
) => IAutoMovieProductionPngPicture["pixelAspect"] = (
|
|
184
|
-
data: Uint8Array | undefined,
|
|
185
|
-
): IAutoMovieProductionPngPicture["pixelAspect"] => {
|
|
186
|
-
if (data === undefined) return { kind: "square" };
|
|
187
|
-
if (data.length !== 9)
|
|
188
|
-
throw new Error("PNG pHYs chunk must contain nine bytes.");
|
|
189
|
-
const x: number = readUint32(data, 0);
|
|
190
|
-
const y: number = readUint32(data, 4);
|
|
191
|
-
if (x === 0 || y === 0)
|
|
192
|
-
throw new Error("PNG pHYs density terms must both be positive.");
|
|
193
|
-
const unit: number = data[8]!;
|
|
194
|
-
if (unit !== 0 && unit !== 1)
|
|
195
|
-
throw new Error("PNG pHYs unit specifier must be zero or one.");
|
|
196
|
-
return { kind: "explicit", x, y, unit };
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
/** Refuse an `iCCP` payload without a 1-79 byte profile name and compression method 0. */
|
|
200
|
-
const assertPngProfileName: (data: Uint8Array) => void = (
|
|
201
|
-
data: Uint8Array,
|
|
202
|
-
): void => {
|
|
203
|
-
const separator: number = data.indexOf(0);
|
|
204
|
-
if (
|
|
205
|
-
separator <= 0 ||
|
|
206
|
-
separator > 79 ||
|
|
207
|
-
separator + 2 > data.length ||
|
|
208
|
-
data[separator + 1] !== 0
|
|
209
|
-
)
|
|
210
|
-
throw new Error(
|
|
211
|
-
"PNG iCCP chunk has an invalid profile name or compression method.",
|
|
212
|
-
);
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
/** The big-endian unsigned 32-bit integer at `offset` of `bytes`. */
|
|
216
|
-
const readUint32: (bytes: Uint8Array, offset: number) => number = (
|
|
217
|
-
bytes: Uint8Array,
|
|
218
|
-
offset: number,
|
|
219
|
-
): number =>
|
|
220
|
-
new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength).getUint32(
|
|
221
|
-
offset,
|
|
222
|
-
false,
|
|
223
|
-
);
|
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
IAutoMovieProductionAudioProbe,
|
|
3
|
-
IAutoMovieProductionDeliverable,
|
|
4
|
-
IAutoMovieProductionMediaProbe,
|
|
5
|
-
IAutoMovieProductionOpusDescription,
|
|
6
|
-
IAutoMovieProductionPngPicture,
|
|
7
|
-
IAutoMovieProductionVideoProbe,
|
|
8
|
-
IAutoMovieProductionWebVttCue,
|
|
9
|
-
} from "@automovie/interface";
|
|
10
|
-
import {
|
|
11
|
-
assertProductionOpusProfile,
|
|
12
|
-
productionOpusDescription,
|
|
13
|
-
} from "@automovie/render";
|
|
14
|
-
import type { Entry, Movie, Sample, Track, createFile } from "mp4box";
|
|
15
|
-
import { TextDecoder } from "node:util";
|
|
16
|
-
|
|
17
|
-
import { exactProductionClockProduct } from "./exactProductionClockProduct";
|
|
18
|
-
import { parseProductionMp4Output } from "./parseProductionMp4Output";
|
|
19
|
-
import { probeParsedProductionVideoMp4 } from "./probeParsedProductionVideoMp4";
|
|
20
|
-
import { probeProductionPngPicture } from "./probeProductionPngPicture";
|
|
21
|
-
import { probeVideoTrack } from "./probeVideoTrack";
|
|
22
|
-
import { sampleDescription } from "./sampleDescription";
|
|
23
|
-
import { verifySampleStorage } from "./verifySampleStorage";
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Parse one renderer-encoded deliverable's bytes by its declared kind and media type and report what they contain, instead of trusting manifest claims.
|
|
27
|
-
*
|
|
28
|
-
* A preview, and a guide pass or audio mix declared `image/png`, must be a PNG and reports `png` with the picture facts. Captions must be `text/vtt`, valid UTF-8 with a WebVTT header, and report `webvtt` with every timed cue in file order, skipping NOTE, STYLE and REGION blocks; `text` is the decoded text as delivered.
|
|
29
|
-
*
|
|
30
|
-
* A feature or another guide pass must be `video/mp4`: a guide pass reports `video` from a file whose only track is H.264, and a feature reports `feature` from exactly one H.264 track and one Opus track of exactly equal runtime whose audio passes the Opus delivery profile. Any other audio mix must be `audio/mp4` with exactly one track, an Opus track that passes the profile, and reports `audio`. The semantic-mask and sound-evidence sidecars are JSON and are probed by the production package.
|
|
31
|
-
*
|
|
32
|
-
* Every refusal is an `Error` naming the kind, the media type, the track counts, the WebVTT defect with its cue number, or the probe or profile field that failed; an audio profile refusal is prefixed with `Feature MP4` or `Audio-mix MP4`.
|
|
33
|
-
*
|
|
34
|
-
* @evidence contracts/development/implementation.md#principled-implementation Each format is read by its own grammar: PNG through the chunk walk and decoder, WebVTT through a strict UTF-8 decode, the header line, blank-line-separated blocks and the `HH:MM:SS.mmm --> HH:MM:SS.mmm` cue timing, and MP4 through the strict ISO gate and the parser's track tables; equal feature runtimes are proven by exact cross products of duration and timescale, and an audio runtime is the movie duration over the movie timescale, which the Opus profile also requires.
|
|
35
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This function owns the dispatch from deliverable kind to format and the WebVTT reading, while PNG facts, the video track reading, the strict parse, sample residency and the Opus profile are the shared helpers every other media path uses.
|
|
36
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No kind is admitted under another media type, a cue is never reordered or repaired, the audio profile's message is only prefixed, and no file is special-cased.
|
|
37
|
-
* @evidence contracts/development/common.md#meaningful-documentation The doc states what each kind and media type must contain and reports, how WebVTT blocks are read, what `text` holds, where the JSON sidecars are probed, and the form of every refusal.
|
|
38
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms A PNG costs the chunk inspection and decode answered on `probeProductionPngPicture`; captions require O(L + C) work over L text characters and C cues. An MP4 is parsed once and shared by its track readings, which add O(M + S log(M + 1)) residency work per admitted track with S samples and M file-wide media boxes, plus box inspection and copying the returned lists. The MP4 arm therefore does not have a strict linear-time bound in its input bytes.
|
|
39
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each deliverable is probed once from the bytes the caller read, and the result is the caller's to keep.
|
|
40
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Parsed MP4 bytes and tables, decoded PNG pixels or decoded caption text coexist with their format-specific work until invocation-local references become collectable. Caption results retain their text and cue strings; media records copy track and description facts whose input-dependent lists are uncapped here. No file handle or task is opened, and return does not assert immediate garbage collection.
|
|
41
|
-
*/
|
|
42
|
-
export const probeProductionRenderedMedia: (props: {
|
|
43
|
-
kind: IAutoMovieProductionDeliverable["kind"];
|
|
44
|
-
mediaType: string;
|
|
45
|
-
bytes: Uint8Array;
|
|
46
|
-
}) => Exclude<
|
|
47
|
-
IAutoMovieProductionMediaProbe,
|
|
48
|
-
{
|
|
49
|
-
kind: "semantic-mask" | "sound-evidence";
|
|
50
|
-
}
|
|
51
|
-
> = (props: {
|
|
52
|
-
/** Deliverable kind the bytes were published as. */
|
|
53
|
-
kind: IAutoMovieProductionDeliverable["kind"];
|
|
54
|
-
|
|
55
|
-
/** Declared media type of the bytes. */
|
|
56
|
-
mediaType: string;
|
|
57
|
-
|
|
58
|
-
/** Complete deliverable bytes. */
|
|
59
|
-
bytes: Uint8Array;
|
|
60
|
-
}): Exclude<
|
|
61
|
-
IAutoMovieProductionMediaProbe,
|
|
62
|
-
{ kind: "semantic-mask" | "sound-evidence" }
|
|
63
|
-
> => {
|
|
64
|
-
if (
|
|
65
|
-
props.kind === "preview" ||
|
|
66
|
-
((props.kind === "guide-pass" || props.kind === "audio-mix") &&
|
|
67
|
-
props.mediaType === "image/png")
|
|
68
|
-
) {
|
|
69
|
-
if (props.mediaType !== "image/png")
|
|
70
|
-
throw new Error(
|
|
71
|
-
`${props.kind} output declares "${props.mediaType}", but this image requires image/png bytes.`,
|
|
72
|
-
);
|
|
73
|
-
const picture: IAutoMovieProductionPngPicture = probeProductionPngPicture(
|
|
74
|
-
props.bytes,
|
|
75
|
-
);
|
|
76
|
-
return {
|
|
77
|
-
kind: "png",
|
|
78
|
-
width: picture.width,
|
|
79
|
-
height: picture.height,
|
|
80
|
-
picture,
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
if (props.kind === "captions") {
|
|
84
|
-
if (props.mediaType !== "text/vtt")
|
|
85
|
-
throw new Error(
|
|
86
|
-
`Caption output declares "${props.mediaType}", but caption deliverables require text/vtt bytes.`,
|
|
87
|
-
);
|
|
88
|
-
return probeWebVtt(props.bytes);
|
|
89
|
-
}
|
|
90
|
-
const parsed: { file: ReturnType<typeof createFile>; movie: Movie } =
|
|
91
|
-
parseProductionMp4Output(props.bytes);
|
|
92
|
-
const movie: Movie = parsed.movie;
|
|
93
|
-
if (props.kind === "feature" || props.kind === "guide-pass") {
|
|
94
|
-
if (props.mediaType !== "video/mp4")
|
|
95
|
-
throw new Error(
|
|
96
|
-
`${props.kind} output declares "${props.mediaType}", but encoded video deliverables require video/mp4 bytes.`,
|
|
97
|
-
);
|
|
98
|
-
if (props.kind === "guide-pass")
|
|
99
|
-
return probeParsedProductionVideoMp4(props.bytes, parsed);
|
|
100
|
-
if (movie.videoTracks.length !== 1)
|
|
101
|
-
throw new Error(
|
|
102
|
-
`MP4 contains ${movie.videoTracks.length} video tracks; exactly one is required.`,
|
|
103
|
-
);
|
|
104
|
-
if (movie.tracks.length !== 2)
|
|
105
|
-
throw new Error(
|
|
106
|
-
`feature MP4 contains ${movie.tracks.length} total tracks; exactly 2 are required.`,
|
|
107
|
-
);
|
|
108
|
-
if (movie.audioTracks.length !== 1)
|
|
109
|
-
throw new Error(
|
|
110
|
-
`Feature MP4 contains ${movie.audioTracks.length} audio tracks; exactly one is required.`,
|
|
111
|
-
);
|
|
112
|
-
const video: IAutoMovieProductionVideoProbe = probeVideoTrack(
|
|
113
|
-
props.bytes,
|
|
114
|
-
parsed.file,
|
|
115
|
-
movie.videoTracks[0]!,
|
|
116
|
-
);
|
|
117
|
-
const audio: IAutoMovieProductionAudioProbe = probeAudioTrack(
|
|
118
|
-
props.bytes,
|
|
119
|
-
parsed.file,
|
|
120
|
-
movie.audioTracks[0]!,
|
|
121
|
-
);
|
|
122
|
-
if (
|
|
123
|
-
exactProductionClockProduct(
|
|
124
|
-
video.presentation.movieDuration,
|
|
125
|
-
audio.timebase.movieTimescale,
|
|
126
|
-
) !==
|
|
127
|
-
exactProductionClockProduct(
|
|
128
|
-
audio.timebase.movieDuration,
|
|
129
|
-
video.presentation.movieTimescale,
|
|
130
|
-
)
|
|
131
|
-
)
|
|
132
|
-
throw new Error(
|
|
133
|
-
"Feature MP4 video and audio tracks do not have exactly equal runtimes.",
|
|
134
|
-
);
|
|
135
|
-
assertProductionAudioProfile(audio, "Feature MP4");
|
|
136
|
-
return { kind: "feature", video, audio };
|
|
137
|
-
}
|
|
138
|
-
if (props.mediaType !== "audio/mp4")
|
|
139
|
-
throw new Error(
|
|
140
|
-
`Audio-mix output declares "${props.mediaType}", but the current deterministic probe requires audio/mp4 bytes.`,
|
|
141
|
-
);
|
|
142
|
-
if (movie.videoTracks.length !== 0)
|
|
143
|
-
throw new Error(
|
|
144
|
-
`Audio-mix MP4 contains ${movie.videoTracks.length} video tracks; none are allowed.`,
|
|
145
|
-
);
|
|
146
|
-
if (movie.audioTracks.length !== 1)
|
|
147
|
-
throw new Error(
|
|
148
|
-
`MP4 contains ${movie.audioTracks.length} audio tracks; exactly one is required.`,
|
|
149
|
-
);
|
|
150
|
-
if (movie.tracks.length !== 1)
|
|
151
|
-
throw new Error(
|
|
152
|
-
`Audio-mix MP4 contains ${movie.tracks.length} total tracks; exactly one is required.`,
|
|
153
|
-
);
|
|
154
|
-
const audio: IAutoMovieProductionAudioProbe = probeAudioTrack(
|
|
155
|
-
props.bytes,
|
|
156
|
-
parsed.file,
|
|
157
|
-
movie.audioTracks[0]!,
|
|
158
|
-
);
|
|
159
|
-
assertProductionAudioProfile(audio, "Audio-mix MP4");
|
|
160
|
-
return audio;
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
/** Read caption bytes as WebVTT, refusing every defect with the cue it names. */
|
|
164
|
-
const probeWebVtt: (bytes: Uint8Array) => Extract<
|
|
165
|
-
IAutoMovieProductionMediaProbe,
|
|
166
|
-
{
|
|
167
|
-
kind: "webvtt";
|
|
168
|
-
}
|
|
169
|
-
> = (
|
|
170
|
-
bytes: Uint8Array,
|
|
171
|
-
): Extract<IAutoMovieProductionMediaProbe, { kind: "webvtt" }> => {
|
|
172
|
-
let text: string;
|
|
173
|
-
try {
|
|
174
|
-
text = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
|
|
175
|
-
} catch {
|
|
176
|
-
throw new Error("Caption bytes are not valid UTF-8.");
|
|
177
|
-
}
|
|
178
|
-
if (/^\uFEFF?WEBVTT(?:[ \t][^\r\n]*)?(?:\r\n?|\n|$)/.test(text) === false)
|
|
179
|
-
throw new Error("Caption bytes do not contain a valid WebVTT header.");
|
|
180
|
-
const blocks: string[] = text
|
|
181
|
-
.replace(/^\uFEFF/, "")
|
|
182
|
-
.replace(/\r\n?|\n/g, "\n")
|
|
183
|
-
.replace(/^([^\n]*\n)[ \t]+\n/u, "$1\n")
|
|
184
|
-
.split(/\n{2,}/u)
|
|
185
|
-
.slice(1);
|
|
186
|
-
const cues: IAutoMovieProductionWebVttCue[] = [];
|
|
187
|
-
for (const block of blocks) {
|
|
188
|
-
if (block.trim().length === 0) continue;
|
|
189
|
-
const lines: string[] = block.split("\n");
|
|
190
|
-
const firstLine: string = lines[0]!;
|
|
191
|
-
const timingIndex: number = firstLine.includes("-->")
|
|
192
|
-
? 0
|
|
193
|
-
: lines[1]?.includes("-->")
|
|
194
|
-
? 1
|
|
195
|
-
: -1;
|
|
196
|
-
if (timingIndex < 0 && /^(?:NOTE|STYLE|REGION)(?:[ \t]|$)/.test(firstLine))
|
|
197
|
-
continue;
|
|
198
|
-
if (timingIndex < 0)
|
|
199
|
-
throw new Error(
|
|
200
|
-
`WebVTT block "${firstLine.trim()}" is neither a timed cue nor NOTE, STYLE, or REGION metadata. Remove the stray block or add its cue timing.`,
|
|
201
|
-
);
|
|
202
|
-
const timing: { start: number; end: number } = parseWebVttCue(
|
|
203
|
-
lines[timingIndex]!,
|
|
204
|
-
);
|
|
205
|
-
const payload: string[] = lines.slice(timingIndex + 1);
|
|
206
|
-
if (payload.some((line: string): boolean => line.includes("-->")))
|
|
207
|
-
throw new Error(
|
|
208
|
-
`WebVTT cue ${cues.length + 1} contains another timing line without a blank separator. Separate every cue block.`,
|
|
209
|
-
);
|
|
210
|
-
if (
|
|
211
|
-
payload.some((line: string): boolean => line.trim().length > 0) === false
|
|
212
|
-
)
|
|
213
|
-
throw new Error(
|
|
214
|
-
`WebVTT cue ${cues.length + 1} has no non-empty payload. Add observable caption text after its timing line.`,
|
|
215
|
-
);
|
|
216
|
-
cues.push({
|
|
217
|
-
id: timingIndex === 1 ? firstLine : null,
|
|
218
|
-
text: payload.join("\n"),
|
|
219
|
-
startMilliseconds: timing.start,
|
|
220
|
-
endMilliseconds: timing.end,
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
if (cues.length === 0)
|
|
224
|
-
throw new Error(
|
|
225
|
-
"WebVTT captions contain no timed cue. Add at least one observable cue or do not declare this deliverable required.",
|
|
226
|
-
);
|
|
227
|
-
let lastEnd: number = 0;
|
|
228
|
-
cues.forEach((cue: IAutoMovieProductionWebVttCue, index: number): void => {
|
|
229
|
-
if (cue.startMilliseconds >= cue.endMilliseconds)
|
|
230
|
-
throw new Error(
|
|
231
|
-
`WebVTT cue ${index + 1} must end after it starts. Correct the cue timing.`,
|
|
232
|
-
);
|
|
233
|
-
if (index > 0 && cue.startMilliseconds < cues[index - 1]!.startMilliseconds)
|
|
234
|
-
throw new Error(
|
|
235
|
-
`WebVTT cue ${index + 1} starts before the preceding cue. Keep deterministic cue order.`,
|
|
236
|
-
);
|
|
237
|
-
lastEnd = Math.max(lastEnd, cue.endMilliseconds);
|
|
238
|
-
});
|
|
239
|
-
return {
|
|
240
|
-
kind: "webvtt",
|
|
241
|
-
cueCount: cues.length,
|
|
242
|
-
firstCueSeconds: cues[0]!.startMilliseconds / 1_000,
|
|
243
|
-
lastCueSeconds: lastEnd / 1_000,
|
|
244
|
-
cues,
|
|
245
|
-
text,
|
|
246
|
-
};
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
/** Read one parsed Opus track into the audio probe record. */
|
|
250
|
-
const probeAudioTrack: (
|
|
251
|
-
bytes: Uint8Array,
|
|
252
|
-
file: ReturnType<typeof createFile>,
|
|
253
|
-
track: Track,
|
|
254
|
-
) => IAutoMovieProductionAudioProbe = (
|
|
255
|
-
bytes: Uint8Array,
|
|
256
|
-
file: ReturnType<typeof createFile>,
|
|
257
|
-
track: Track,
|
|
258
|
-
): IAutoMovieProductionAudioProbe => {
|
|
259
|
-
const audio: Track["audio"] = track.audio;
|
|
260
|
-
if (
|
|
261
|
-
audio === undefined ||
|
|
262
|
-
track.timescale <= 0 ||
|
|
263
|
-
track.duration <= 0 ||
|
|
264
|
-
track.codec.trim().length === 0
|
|
265
|
-
)
|
|
266
|
-
throw new Error(
|
|
267
|
-
"MP4 audio track lacks codec, duration, or channel metadata.",
|
|
268
|
-
);
|
|
269
|
-
const samples: Sample[] = verifySampleStorage(bytes, file, track);
|
|
270
|
-
const sampleEntry: IAutoMovieProductionOpusDescription =
|
|
271
|
-
productionOpusDescription({
|
|
272
|
-
boxes: sampleDescription(samples[0]!).boxes,
|
|
273
|
-
codec: track.codec,
|
|
274
|
-
trackChannels: audio.channel_count,
|
|
275
|
-
});
|
|
276
|
-
return {
|
|
277
|
-
kind: "audio",
|
|
278
|
-
container: "mp4",
|
|
279
|
-
// mp4box reports the sample entry's four-character code as spelled in the
|
|
280
|
-
// file ("Opus"); the probe reports codec identity case-insensitively, the
|
|
281
|
-
// way the video probe reports "h264".
|
|
282
|
-
codec: track.codec.toLowerCase(),
|
|
283
|
-
runtimeSeconds: track.movie_duration / track.movie_timescale,
|
|
284
|
-
channels: audio.channel_count,
|
|
285
|
-
sampleRate: audio.sample_rate,
|
|
286
|
-
sampleCount: samples.length,
|
|
287
|
-
primingSamples: sampleEntry.preSkip,
|
|
288
|
-
timebase: {
|
|
289
|
-
movieTimescale: track.movie_timescale,
|
|
290
|
-
mediaTimescale: track.timescale,
|
|
291
|
-
movieDuration: track.movie_duration,
|
|
292
|
-
mediaDuration: track.duration,
|
|
293
|
-
edits: (track.edits ?? []).map(
|
|
294
|
-
(
|
|
295
|
-
edit: Entry,
|
|
296
|
-
): IAutoMovieProductionAudioProbe["timebase"]["edits"][number] => ({
|
|
297
|
-
segmentDuration: edit.segment_duration,
|
|
298
|
-
mediaTime: edit.media_time,
|
|
299
|
-
mediaRateInteger: edit.media_rate_integer,
|
|
300
|
-
mediaRateFraction: edit.media_rate_fraction,
|
|
301
|
-
}),
|
|
302
|
-
),
|
|
303
|
-
},
|
|
304
|
-
sampleEntry,
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
/** Run the Opus profile, prefixing its refusal with the container's label. */
|
|
309
|
-
const assertProductionAudioProfile: (
|
|
310
|
-
audio: IAutoMovieProductionAudioProbe,
|
|
311
|
-
label: string,
|
|
312
|
-
) => void = (audio: IAutoMovieProductionAudioProbe, label: string): void => {
|
|
313
|
-
try {
|
|
314
|
-
assertProductionOpusProfile(audio);
|
|
315
|
-
} catch (error) {
|
|
316
|
-
throw new Error(
|
|
317
|
-
`${label} ${error instanceof Error ? error.message : String(error)}`,
|
|
318
|
-
);
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
/** The start and end, in milliseconds, of one `start --> end [settings]` cue timing line. */
|
|
323
|
-
const parseWebVttCue: (line: string) => {
|
|
324
|
-
start: number;
|
|
325
|
-
end: number;
|
|
326
|
-
} = (line: string): { start: number; end: number } => {
|
|
327
|
-
const delimiterCount: number = line.split("-->").length - 1;
|
|
328
|
-
const match: RegExpExecArray | null =
|
|
329
|
-
delimiterCount === 1
|
|
330
|
-
? /^[ \t]*((?:\d{2,}:)?[0-5]\d:[0-5]\d\.\d{3})[ \t]+-->[ \t]+((?:\d{2,}:)?[0-5]\d:[0-5]\d\.\d{3})(?:[ \t]+[^\r\n]*)?$/.exec(
|
|
331
|
-
line,
|
|
332
|
-
)
|
|
333
|
-
: null;
|
|
334
|
-
if (match === null)
|
|
335
|
-
throw new Error(
|
|
336
|
-
`WebVTT cue timing "${line.trim()}" is malformed. Use HH:MM:SS.mmm --> HH:MM:SS.mmm.`,
|
|
337
|
-
);
|
|
338
|
-
return {
|
|
339
|
-
start: webVttTimestampMilliseconds(match[1]!),
|
|
340
|
-
end: webVttTimestampMilliseconds(match[2]!),
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
/** Milliseconds of a WebVTT timestamp the cue-timing pattern already admitted. */
|
|
345
|
-
const webVttTimestampMilliseconds: (value: string) => number = (
|
|
346
|
-
value: string,
|
|
347
|
-
): number => {
|
|
348
|
-
const match: RegExpExecArray =
|
|
349
|
-
/^(?:(\d{2,}):)?([0-5]\d):([0-5]\d)\.(\d{3})$/u.exec(value)!;
|
|
350
|
-
const hours: number = match[1] === undefined ? 0 : Number(match[1]);
|
|
351
|
-
return (
|
|
352
|
-
((hours * 60 + Number(match[2])) * 60 + Number(match[3])) * 1_000 +
|
|
353
|
-
Number(match[4])
|
|
354
|
-
);
|
|
355
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { IAutoMovieProductionMediaProbe } from "@automovie/interface";
|
|
2
|
-
|
|
3
|
-
import { parseProductionMp4Output } from "./parseProductionMp4Output";
|
|
4
|
-
import { probeParsedProductionVideoMp4 } from "./probeParsedProductionVideoMp4";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Parse `bytes` under the strict MP4 output gate and probe them as a file whose only track is one H.264 video track.
|
|
8
|
-
*
|
|
9
|
-
* Production calls it on every intermediate video it accepts, such as a repaint generator's raw output and a stored rendition clip, and the normalizer calls it on the file it wrote. Throws the gate's refusals, the single-track refusals and the track reading's refusals; the result reports what the file declares, and a delivery profile is judged separately.
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/implementation.md#principled-implementation The bytes pass the same ISO admission and the same track reading as delivered video, so an intermediate is described in the terms its later delivery check uses.
|
|
12
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The function is the composition of the strict parse and the parsed probe, kept as one entry point because production and the splice parser hold only bytes.
|
|
13
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No refusal is caught or relaxed between the two steps.
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation The doc states the gate and the single-track rule applied, who calls it, what it throws, and that it reports rather than judges a profile.
|
|
15
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The bytes are copied and parsed once, and that parse is handed to the track reading. The residency proof adds O(M + S log(M + 1)) for S samples and M media boxes to parsing, box lookup and copying the returned lists; the complete probe therefore does not have a strict linear-time bound in the file size.
|
|
16
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A caller that also needs the parse calls `parseProductionMp4Output` and `probeParsedProductionVideoMp4` itself; this entry point serves callers that hold only bytes.
|
|
17
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The parse, including its copy of the bytes, is dropped on return, and the returned record holds no parser object.
|
|
18
|
-
*/
|
|
19
|
-
export const probeProductionVideoMp4: (bytes: Uint8Array) => Extract<
|
|
20
|
-
IAutoMovieProductionMediaProbe,
|
|
21
|
-
{
|
|
22
|
-
kind: "video";
|
|
23
|
-
}
|
|
24
|
-
> = (
|
|
25
|
-
bytes: Uint8Array,
|
|
26
|
-
): Extract<IAutoMovieProductionMediaProbe, { kind: "video" }> =>
|
|
27
|
-
probeParsedProductionVideoMp4(bytes, parseProductionMp4Output(bytes));
|