@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
package/src/IWindowsLibrary.ts
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { type LibraryHandle, type TypeObject } from "koffi";
|
|
2
|
-
|
|
3
|
-
import { type IBoundParentStatus } from "./IBoundParentStatus";
|
|
4
|
-
import { type IWindowsFileInformation } from "./IWindowsFileInformation";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* The kernel32 and ntdll entry points the Windows adapter needs.
|
|
8
|
-
*
|
|
9
|
-
* @evidence contracts/development/design.md#principled-representation Koffi-bound Win32 and NT call signatures retain raw HANDLEs, UTF-16 names, byte counts and explicit error results.
|
|
10
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface One lazy binding set supplies both parent-relative opening and child I/O without mixing native HANDLEs with CRT descriptor tables.
|
|
11
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts The interface declares actual native entry points; it introduces no monkey patch, fixture path or emulated host.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation Members state handle and structure roles, byte positioning, native status meanings and immediate last-error observation.
|
|
13
|
-
*/
|
|
14
|
-
export interface IWindowsLibrary {
|
|
15
|
-
/**
|
|
16
|
-
* Close a native HANDLE; false leaves the Win32 error available through getLastError.
|
|
17
|
-
*
|
|
18
|
-
* @evidence contracts/development/implementation.md#principled-implementation Close a native HANDLE; false leaves the Win32 error available through getLastError.
|
|
19
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Parent and child adapters share the raw CloseHandle result and convert a false result with immediate getLastError, leaving release order to publication.
|
|
20
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The Windows handle release declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
|
|
21
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose names the HANDLE being closed and identifies false as native failure whose error must be read through getLastError; false does not prove release.
|
|
22
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms The Windows handle release signature specifies behavior but contains no executable algorithm.
|
|
23
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The Windows handle release interface member implements no cross-call reuse or invalidation policy.
|
|
24
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The Windows handle release declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
|
|
25
|
-
*/
|
|
26
|
-
closeHandle(handle: unknown): boolean;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Call CreateFileW with UTF-16 pathname, explicit access, sharing, disposition and flags; return its raw HANDLE for validity checking.
|
|
30
|
-
*
|
|
31
|
-
* @evidence contracts/development/implementation.md#principled-implementation Call CreateFileW with UTF-16 pathname, explicit access, sharing, disposition and flags; return its raw HANDLE for validity checking.
|
|
32
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure openWindowsParent chooses access, sharing and no-follow flags; this binding carries those choices to CreateFileW and returns the raw HANDLE for invalid-value qualification.
|
|
33
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The UTF-16 parent handle opening declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
|
|
34
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states UTF-16 pathname encoding and explicit native access, sharing, disposition and flag inputs, and that the returned raw HANDLE still needs validity checking.
|
|
35
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms The UTF-16 parent handle opening signature specifies behavior but contains no executable algorithm.
|
|
36
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The UTF-16 parent handle opening interface member implements no cross-call reuse or invalidation policy.
|
|
37
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The UTF-16 parent handle opening declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
|
|
38
|
-
*/
|
|
39
|
-
createFile(
|
|
40
|
-
pathname: string,
|
|
41
|
-
access: number,
|
|
42
|
-
share: number,
|
|
43
|
-
security: unknown,
|
|
44
|
-
disposition: number,
|
|
45
|
-
flags: number,
|
|
46
|
-
template: unknown,
|
|
47
|
-
): unknown;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Flush an opened child's native buffers; false reports Win32 failure.
|
|
51
|
-
*
|
|
52
|
-
* @evidence contracts/development/implementation.md#principled-implementation Flush an opened child's native buffers; false reports Win32 failure.
|
|
53
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure windowsChild supplies its held writer HANDLE and converts the Win32 boolean to the common sync operation's thrown failure.
|
|
54
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The Win32 buffer flush declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
|
|
55
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose names opened-child buffer flushing and distinguishes false as a Win32 failure rather than completed synchronization.
|
|
56
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms The Win32 buffer flush signature specifies behavior but contains no executable algorithm.
|
|
57
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The Win32 buffer flush interface member implements no cross-call reuse or invalidation policy.
|
|
58
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The Win32 buffer flush declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
|
|
59
|
-
*/
|
|
60
|
-
flushFileBuffers(handle: unknown): boolean;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Read the calling thread's most recent Win32 error immediately after a failed native call.
|
|
64
|
-
*
|
|
65
|
-
* @evidence contracts/development/implementation.md#principled-implementation Read the calling thread's most recent Win32 error immediately after a failed native call.
|
|
66
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Adapters read this numeric error immediately after the failed call, then nativeError adds operation context without a second native lookup.
|
|
67
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The thread-local native error reading declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
|
|
68
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose identifies calling-thread provenance and the required immediate read after native failure, so an unrelated later call cannot replace the diagnostic.
|
|
69
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms The thread-local native error reading signature specifies behavior but contains no executable algorithm.
|
|
70
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The thread-local native error reading interface member implements no cross-call reuse or invalidation policy.
|
|
71
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The thread-local native error reading declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
|
|
72
|
-
*/
|
|
73
|
-
getLastError(): number;
|
|
74
|
-
|
|
75
|
-
/** Koffi's process-width opaque HANDLE type used for calls and invalid-handle detection. */
|
|
76
|
-
handleType: TypeObject;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Read one held child's unsigned size, link count, attributes, identity and last-write generation; native inspection failure throws.
|
|
80
|
-
*
|
|
81
|
-
* @evidence contracts/development/implementation.md#principled-implementation Read one held child's unsigned size, link count, attributes, identity and last-write generation; native inspection failure throws.
|
|
82
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure loadWindowsLibrary lowers BY_HANDLE_FILE_INFORMATION once into the fields windowsChild consumes for qualification and generation comparison.
|
|
83
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The Windows child information reading declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
|
|
84
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose lists held-child size, links, attributes, identity and last-write facts and says failed inspection throws; IWindowsFileInformation defines exact byte size and raw FILETIME units.
|
|
85
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms The Windows child information reading signature specifies behavior but contains no executable algorithm.
|
|
86
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The Windows child information reading interface member implements no cross-call reuse or invalidation policy.
|
|
87
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The Windows child information reading declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
|
|
88
|
-
*/
|
|
89
|
-
inspectFile(handle: unknown): IWindowsFileInformation;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Read directory qualification and physical identity through the held parent HANDLE.
|
|
93
|
-
*
|
|
94
|
-
* @evidence contracts/development/implementation.md#principled-implementation Read directory qualification and physical identity through the held parent HANDLE.
|
|
95
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The loader returns only the directory predicate and device-and-index identity consumed by openBoundParent before child creation.
|
|
96
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The Windows parent generation reading declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
|
|
97
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose gives held-parent HANDLE provenance and distinguishes directory qualification from the physical identity compared with the earlier capture.
|
|
98
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms The Windows parent generation reading signature specifies behavior but contains no executable algorithm.
|
|
99
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The Windows parent generation reading interface member implements no cross-call reuse or invalidation policy.
|
|
100
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The Windows parent generation reading declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
|
|
101
|
-
*/
|
|
102
|
-
inspectParent(handle: unknown): IBoundParentStatus;
|
|
103
|
-
|
|
104
|
-
/** Bound NT entry point used for parent-relative create and resident reopen with explicit NTSTATUS handling. */
|
|
105
|
-
ntCreateFile: ReturnType<LibraryHandle["func"]>;
|
|
106
|
-
|
|
107
|
-
/** Koffi structure layout carrying the held RootDirectory and UTF-16 ObjectName for NtCreateFile. */
|
|
108
|
-
objectAttributesType: TypeObject;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Read at most `length` bytes into `target` from the HANDLE's current byte position; return the confirmed count, including zero at end of file, or `null` on Win32 failure. The caller supplies a buffer slice of that length.
|
|
112
|
-
*
|
|
113
|
-
* @evidence contracts/development/implementation.md#principled-implementation Read at most length bytes into target from the handle's current position; return the confirmed count or null on Win32 failure.
|
|
114
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The loader lowers ReadFile's output count and boolean to number-or-null; windowsChild owns seeking and selecting the target buffer slice.
|
|
115
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The Win32 read transfer declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
|
|
116
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states byte length, current handle position, caller-owned slice bounds, short and zero reads, and null for native failure.
|
|
117
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms The Win32 read transfer signature specifies behavior but contains no executable algorithm.
|
|
118
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The Win32 read transfer interface member implements no cross-call reuse or invalidation policy.
|
|
119
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The Win32 read transfer declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
|
|
120
|
-
*/
|
|
121
|
-
readFile(handle: unknown, target: Buffer, length: number): number | null;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Set a handle's absolute byte position with SetFilePointerEx; return false on Win32 failure.
|
|
125
|
-
*
|
|
126
|
-
* @evidence contracts/development/implementation.md#principled-implementation Set a handle's absolute byte position with SetFilePointerEx; return false on Win32 failure.
|
|
127
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The loader fixes FILE_BEGIN and converts the safe integer position to int64_t; windowsChild owns seeking before each read or write.
|
|
128
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The absolute native byte positioning declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
|
|
129
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states an absolute byte position, names SetFilePointerEx and identifies false as failed positioning.
|
|
130
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms The absolute native byte positioning signature specifies behavior but contains no executable algorithm.
|
|
131
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The absolute native byte positioning interface member implements no cross-call reuse or invalidation policy.
|
|
132
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The absolute native byte positioning declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
|
|
133
|
-
*/
|
|
134
|
-
setFilePointer(handle: unknown, position: number): boolean;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Write at most `length` bytes from `source` at the HANDLE's current byte position; return the confirmed count or `null` on Win32 failure. The caller supplies a source slice of that length.
|
|
138
|
-
*
|
|
139
|
-
* @evidence contracts/development/implementation.md#principled-implementation Write at most length bytes from source at the handle's current position; return the confirmed count or null on Win32 failure.
|
|
140
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The loader lowers WriteFile's output count and boolean to number-or-null; windowsChild owns seeking and selecting the source slice while publication accumulates confirmed progress.
|
|
141
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The Win32 write transfer declaration introduces no fixture choice, foreign-method replacement or swallowed native failure.
|
|
142
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states byte length, current handle position, caller-owned slice bounds, confirmed short-write counts and null for native failure.
|
|
143
|
-
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms The Win32 write transfer signature specifies behavior but contains no executable algorithm.
|
|
144
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The Win32 write transfer interface member implements no cross-call reuse or invalidation policy.
|
|
145
|
-
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The Win32 write transfer declaration acquires no resource; the actual native adapter and publication coordinator own lifetime.
|
|
146
|
-
*/
|
|
147
|
-
writeFile(handle: unknown, source: Buffer, length: number): number | null;
|
|
148
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type IScaffoldCompletedFilePublicationOutcome } from "./IScaffoldCompletedFilePublicationOutcome";
|
|
2
|
-
import { type IScaffoldPartialFilePublicationOutcome } from "./IScaffoldPartialFilePublicationOutcome";
|
|
3
|
-
import { type IScaffoldRefusedFilePublicationOutcome } from "./IScaffoldRefusedFilePublicationOutcome";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Outcome a one-file publisher reports for one candidate entry.
|
|
7
|
-
*
|
|
8
|
-
* The publisher returns rather than throws because a thrown I/O error cannot describe a write's effect. `refused` means this attempt created or rewrote no target file; a competitor or prepared directories can remain. `partial` names the parent and confirmed byte count after reservation or truncation, and `completed` means the file was verified.
|
|
9
|
-
*
|
|
10
|
-
* @evidence contracts/development/design.md#principled-representation A status discriminator separates pre-mutation refusal, incomplete file effect and verified completion for both exclusive create and forced replacement, without deriving state from error-message text.
|
|
11
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface The union is the one seam between the candidate loop and any adapter; validation of each variant against the contract stays with `publishScaffoldCandidate`.
|
|
12
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts The union is the whole adapter contract and carries no fallback state; an adapter that returns something outside it is refused by `publishScaffoldCandidate` rather than coerced into a variant.
|
|
13
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states why adapters report instead of throwing and what each status says about the file slot.
|
|
14
|
-
*/
|
|
15
|
-
export type ScaffoldFilePublicationOutcome =
|
|
16
|
-
| IScaffoldCompletedFilePublicationOutcome
|
|
17
|
-
| IScaffoldRefusedFilePublicationOutcome
|
|
18
|
-
| IScaffoldPartialFilePublicationOutcome;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The requested parent cannot be opened as the captured directory, or its held handle reports a different directory identity.
|
|
3
|
-
*
|
|
4
|
-
* @evidence contracts/development/design.md#principled-representation A distinct Error subtype classifies missing or invalid parent paths reported by the native open adapters and directory or identity mismatches reported by the held-parent inspection, all before child creation.
|
|
5
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface The error carries the existing message and standard cause chain, with one stable name used for the pre-create refusal decision.
|
|
6
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts Native missing-path and invalid-directory errors retain their parent-changed classification even when no handle was acquired; inspection mismatches are reported without retrying another pathname.
|
|
7
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose distinguishes failure to open the requested parent from a mismatch observed through an opened handle, and the constructor preserves standard ErrorOptions causes.
|
|
8
|
-
*/
|
|
9
|
-
export class ScaffoldParentChangedError extends Error {
|
|
10
|
-
public constructor(message: string, options?: ErrorOptions) {
|
|
11
|
-
super(message, options);
|
|
12
|
-
this.name = "ScaffoldParentChangedError";
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { type IScaffoldPublicationReceipt } from "./IScaffoldPublicationReceipt";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Error thrown when a scaffold publication did not complete, carrying the receipt of the observed file effects for recovery.
|
|
5
|
-
*
|
|
6
|
-
* The message lists the completed relative paths and the stopping entry with its status, refusal reason or partial byte count, and parent identity. The stopping outcome's own error becomes `cause`.
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/design.md#principled-representation The error is built from the frozen receipt after publication stopped, so the throwing form loses none of the observed effect; `cause` uses the standard `ErrorOptions` chaining for the native error.
|
|
9
|
-
* @evidence contracts/development/design.md#minimal-and-owned-surface One error class serves both throwing callers, `writeFiles` and the CLI, and holds the receipt instead of copying its fields onto the error.
|
|
10
|
-
* @evidence contracts/development/design.md#prohibited-design-shortcuts The constructor accepts a completed receipt and then reports a failure without a stopping entry instead of refusing; it is constructed only after a `status` check in both callers.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states what the message contains, where the native cause goes, and that `receipt` is kept for recovery.
|
|
12
|
-
*/
|
|
13
|
-
export class ScaffoldPublicationError extends Error {
|
|
14
|
-
/** Receipt of the publication that did not complete. */
|
|
15
|
-
public readonly receipt: IScaffoldPublicationReceipt;
|
|
16
|
-
|
|
17
|
-
/** @param receipt Receipt whose status is not `completed`. */
|
|
18
|
-
public constructor(receipt: IScaffoldPublicationReceipt) {
|
|
19
|
-
const failure: IScaffoldPublicationReceipt["failure"] = receipt.failure;
|
|
20
|
-
super(
|
|
21
|
-
failure === null
|
|
22
|
-
? "scaffold publication failed without a stopping entry"
|
|
23
|
-
: `scaffold publication ${receipt.status}: ${JSON.stringify({
|
|
24
|
-
completed: receipt.completed.map(
|
|
25
|
-
({
|
|
26
|
-
entry,
|
|
27
|
-
parentIdentity,
|
|
28
|
-
}: IScaffoldPublicationReceipt["completed"][number]): {
|
|
29
|
-
parentIdentity: string;
|
|
30
|
-
relative: string;
|
|
31
|
-
} => ({
|
|
32
|
-
parentIdentity,
|
|
33
|
-
relative: entry.relative,
|
|
34
|
-
}),
|
|
35
|
-
),
|
|
36
|
-
failure: {
|
|
37
|
-
bytesWritten:
|
|
38
|
-
failure.outcome.status === "partial"
|
|
39
|
-
? failure.outcome.bytesWritten
|
|
40
|
-
: undefined,
|
|
41
|
-
parentIdentity:
|
|
42
|
-
failure.outcome.status === "partial"
|
|
43
|
-
? failure.outcome.parentIdentity
|
|
44
|
-
: undefined,
|
|
45
|
-
reason:
|
|
46
|
-
failure.outcome.status === "refused"
|
|
47
|
-
? failure.outcome.reason
|
|
48
|
-
: undefined,
|
|
49
|
-
relative: failure.entry.relative,
|
|
50
|
-
status: failure.outcome.status,
|
|
51
|
-
},
|
|
52
|
-
})}`,
|
|
53
|
-
{ cause: failure?.outcome.error },
|
|
54
|
-
);
|
|
55
|
-
this.name = "ScaffoldPublicationError";
|
|
56
|
-
this.receipt = receipt;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as fs from "node:fs";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Admission for reading or capturing a scaffold file: a regular file, not a symbolic link. Any number of directory entries may name it; the in-place rewrite separately requires exactly one through {@link assertOrdinarySingleLinkFile}.
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/implementation.md#principled-implementation A bigint lstat must name a regular non-symlink file; reading such a file is safe whatever its link count, because no other name observes a read.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One admission predicate serves pathname capture; the stricter single-link predicate stays with the descriptor that rewrites in place.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Symbolic links and non-regular entries are still refused, so a capture never follows a link out of the scaffold.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the regular-file and symlink conditions and why the link count is not one of them.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two stat predicates cost constant work per observed file.
|
|
11
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Fresh stats remain distinct filesystem observations; admission caches no earlier verdict.
|
|
12
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The predicate owns only the supplied stat reference and opens no descriptor or retained task.
|
|
13
|
-
*/
|
|
14
|
-
export const assertOrdinaryFile: (status: fs.BigIntStats, file: string) => void = (
|
|
15
|
-
status: fs.BigIntStats,
|
|
16
|
-
file: string,
|
|
17
|
-
): void => {
|
|
18
|
-
if (status.isSymbolicLink() || status.isFile() === false)
|
|
19
|
-
throw new Error(`scaffold file is not one ordinary file: ${file}`);
|
|
20
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as fs from "node:fs";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Admission for the in-place rewrite: a regular file, not a symbolic link, that exactly one directory entry names, because the rewrite changes the inode every other name would show.
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/implementation.md#principled-implementation A bigint stat must name a regular non-symlink file with exactly one hard link before in-place replacement.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One admission predicate is shared by pathname capture and descriptor verification.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Multiply linked files are refused because truncating their inode would change every linked name.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the regular-file, symlink and link-count conditions and their reason.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms A fixed set of stat predicates and one bigint comparison costs constant work per observed file.
|
|
11
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Fresh stats remain distinct filesystem observations; admission does not cache an earlier verdict.
|
|
12
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The predicate owns only the supplied stat reference and opens no descriptor or retained task.
|
|
13
|
-
*/
|
|
14
|
-
export const assertOrdinarySingleLinkFile: (
|
|
15
|
-
status: fs.BigIntStats,
|
|
16
|
-
file: string,
|
|
17
|
-
) => void = (status: fs.BigIntStats, file: string): void => {
|
|
18
|
-
if (
|
|
19
|
-
status.isSymbolicLink() ||
|
|
20
|
-
status.isFile() === false ||
|
|
21
|
-
status.nlink !== 1n
|
|
22
|
-
)
|
|
23
|
-
throw new Error(
|
|
24
|
-
`scaffold file is not one ordinary single-link file: ${file}`,
|
|
25
|
-
);
|
|
26
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type IScaffoldPhysicalDirectory } from "./IScaffoldPhysicalDirectory";
|
|
2
|
-
import { assertScaffoldPhysicalDirectory } from "./assertScaffoldPhysicalDirectory";
|
|
3
|
-
import { inside } from "./inside";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Require captured root and parent generations and physical containment before a scaffold write; a changed generation or escaped real path throws.
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/implementation.md#principled-implementation Both directory captures are revalidated before physical real-path containment is required.
|
|
9
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This shared gate owns base-versus-parent authority while directory capture owns identity observation.
|
|
10
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A matching lexical prefix cannot bypass real-path containment or a changed generation.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states both required directory generations and the thrown escaped-parent condition.
|
|
12
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two directory captures and one path-relative comparison cost fixed metadata operations plus path length.
|
|
13
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Ownership is reobserved for each write boundary; previously cached captures do not cache the current verdict.
|
|
14
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Successful capture returns only after its temporary close completes; native close failures propagate through this gate without a release claim. No descriptor or cross-call state is acquired here.
|
|
15
|
-
*/
|
|
16
|
-
export const assertScaffoldOwnership: (
|
|
17
|
-
base: IScaffoldPhysicalDirectory,
|
|
18
|
-
parent: IScaffoldPhysicalDirectory,
|
|
19
|
-
) => void = (
|
|
20
|
-
base: IScaffoldPhysicalDirectory,
|
|
21
|
-
parent: IScaffoldPhysicalDirectory,
|
|
22
|
-
): void => {
|
|
23
|
-
assertScaffoldPhysicalDirectory(base);
|
|
24
|
-
assertScaffoldPhysicalDirectory(parent);
|
|
25
|
-
if (inside(base.real, parent.real) === false)
|
|
26
|
-
throw new Error(
|
|
27
|
-
`scaffold file parent escapes its physical base: ${parent.path}`,
|
|
28
|
-
);
|
|
29
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type IScaffoldPhysicalDirectory } from "./IScaffoldPhysicalDirectory";
|
|
2
|
-
import { captureScaffoldPhysicalDirectory } from "./captureScaffoldPhysicalDirectory";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Require that a captured directory's path still names the same ordinary directory with the same real path.
|
|
6
|
-
*
|
|
7
|
-
* @param ownership The earlier capture.
|
|
8
|
-
* @throws When the path is now missing, a link, not a directory, or a different directory, or when its real path moved.
|
|
9
|
-
*
|
|
10
|
-
* @evidence contracts/development/implementation.md#principled-implementation Revalidation recaptures the path and compares identity and real path, the two values that change when a directory is replaced or redirected, while a rename of an unrelated sibling leaves both intact.
|
|
11
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The check reuses the capture function instead of a second stat routine, so capture and revalidation cannot disagree on what identity means.
|
|
12
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A mismatch always throws; there is no tolerance for a changed identity and no retry.
|
|
13
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the two compared values and every condition that throws.
|
|
14
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One `lstat`, one open with `fstat` and close, and one native real-path read per call, constant in the directory's contents.
|
|
15
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The function exists to observe the file system again, so a cached answer would remove the check it performs.
|
|
16
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Successful recapture completes its descriptor close before comparison; a close failure propagates and proves no release. This assertion retains only the call-local current record and owns no additional handle.
|
|
17
|
-
*/
|
|
18
|
-
export const assertScaffoldPhysicalDirectory: (
|
|
19
|
-
ownership: IScaffoldPhysicalDirectory,
|
|
20
|
-
) => void = (ownership: IScaffoldPhysicalDirectory): void => {
|
|
21
|
-
const current: IScaffoldPhysicalDirectory = captureScaffoldPhysicalDirectory(
|
|
22
|
-
ownership.path,
|
|
23
|
-
);
|
|
24
|
-
if (
|
|
25
|
-
current.identity !== ownership.identity ||
|
|
26
|
-
current.real !== ownership.real
|
|
27
|
-
)
|
|
28
|
-
throw new Error(`scaffold directory changed generation: ${ownership.path}`);
|
|
29
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { SCAFFOLD_SYNC_STATE_FILE } from "./SCAFFOLD_SYNC_STATE_FILE";
|
|
2
|
-
import { createScaffoldSyncState } from "./createScaffoldSyncState";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Add the generated sync-state record, the digests of `files`' instruction files, at {@link SCAFFOLD_SYNC_STATE_FILE}.
|
|
6
|
-
*
|
|
7
|
-
* Every installation that holds `AGENTS.md` records the instruction bytes it adopted, so a later explicit sync can tell local edits from bundle updates.
|
|
8
|
-
*
|
|
9
|
-
* @param files A rendered installation; it is changed in place.
|
|
10
|
-
* @returns The same map.
|
|
11
|
-
* @throws When `files` already supplies the reserved state path.
|
|
12
|
-
*
|
|
13
|
-
* @evidence contracts/development/implementation.md#principled-implementation The state is computed from the exact rendered instruction bytes it accompanies, after every layer is joined.
|
|
14
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure A single production and a workspace root attach their state through this one owner.
|
|
15
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A scaffold file at the reserved address is refused instead of being overwritten.
|
|
16
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states what is recorded, why, the in-place change and the refusal.
|
|
17
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One digest per instruction file, as createScaffoldSyncState computes.
|
|
18
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each installation is rendered and recorded once.
|
|
19
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The map gains one string and stays owned by the caller.
|
|
20
|
-
*/
|
|
21
|
-
export const attachScaffoldSyncState: (
|
|
22
|
-
files: Record<string, string>,
|
|
23
|
-
) => Record<string, string> = (
|
|
24
|
-
files: Record<string, string>,
|
|
25
|
-
): Record<string, string> => {
|
|
26
|
-
if (SCAFFOLD_SYNC_STATE_FILE in files)
|
|
27
|
-
throw new Error("The scaffold reserves its generated sync-state address.");
|
|
28
|
-
files[SCAFFOLD_SYNC_STATE_FILE] = createScaffoldSyncState(files);
|
|
29
|
-
return files;
|
|
30
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as fs from "node:fs";
|
|
2
|
-
|
|
3
|
-
import { type IScaffoldPhysicalDirectory } from "./IScaffoldPhysicalDirectory";
|
|
4
|
-
import { assertScaffoldPhysicalDirectory } from "./assertScaffoldPhysicalDirectory";
|
|
5
|
-
import { captureScaffoldPhysicalDirectory } from "./captureScaffoldPhysicalDirectory";
|
|
6
|
-
import { physicalDirectoryIdentity } from "./physicalDirectoryIdentity";
|
|
7
|
-
import { physicalVersion } from "./physicalVersion";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Capture a directory this module just created and require it to be empty.
|
|
11
|
-
*
|
|
12
|
-
* @evidence contracts/development/implementation.md#principled-implementation A newly created ordinary directory is captured, checked empty and revalidated across the inspection by identity and full generation.
|
|
13
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure New-directory qualification is separate from capturing pre-existing ordinary directories.
|
|
14
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unexpected content or a concurrent generation change refuses instead of adopting a competitor's directory.
|
|
15
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states that this owner created the directory and requires it still be empty.
|
|
16
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Metadata work is fixed and readdir scans the current entries; an unexpectedly populated new directory therefore costs its full entry count.
|
|
17
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The inspection cannot reuse an earlier empty answer because another process can change the directory between calls.
|
|
18
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Each identity helper attempts its own descriptor close before returning; a failed close aborts qualification without proving release. The entry array is call-local and only the completed capture transfers to the caller.
|
|
19
|
-
*/
|
|
20
|
-
export const captureEmptyScaffoldPhysicalDirectory: (
|
|
21
|
-
directory: string,
|
|
22
|
-
) => IScaffoldPhysicalDirectory = (
|
|
23
|
-
directory: string,
|
|
24
|
-
): IScaffoldPhysicalDirectory => {
|
|
25
|
-
const ownership: IScaffoldPhysicalDirectory =
|
|
26
|
-
captureScaffoldPhysicalDirectory(directory);
|
|
27
|
-
const before: fs.BigIntStats = fs.lstatSync(ownership.path, { bigint: true });
|
|
28
|
-
if (physicalDirectoryIdentity(ownership.path, before) !== ownership.identity)
|
|
29
|
-
throw new Error(`scaffold directory changed generation: ${ownership.path}`);
|
|
30
|
-
const entries: string[] = fs.readdirSync(ownership.path);
|
|
31
|
-
const after: fs.BigIntStats = fs.lstatSync(ownership.path, { bigint: true });
|
|
32
|
-
if (
|
|
33
|
-
physicalDirectoryIdentity(ownership.path, after) !== ownership.identity ||
|
|
34
|
-
physicalVersion(after) !== physicalVersion(before)
|
|
35
|
-
)
|
|
36
|
-
throw new Error(
|
|
37
|
-
`scaffold directory changed while inspected: ${ownership.path}`,
|
|
38
|
-
);
|
|
39
|
-
assertScaffoldPhysicalDirectory(ownership);
|
|
40
|
-
if (entries.length !== 0)
|
|
41
|
-
throw new Error(
|
|
42
|
-
`new scaffold directory is unexpectedly non-empty: ${ownership.path}`,
|
|
43
|
-
);
|
|
44
|
-
return ownership;
|
|
45
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as fs from "node:fs";
|
|
2
|
-
import * as path from "node:path";
|
|
3
|
-
|
|
4
|
-
import { type IScaffoldFileSnapshot } from "./IScaffoldFileSnapshot";
|
|
5
|
-
import { assertOrdinaryFile } from "./assertOrdinaryFile";
|
|
6
|
-
import { physicalVersion } from "./physicalVersion";
|
|
7
|
-
import { scaffoldPhysicalIdentity } from "./scaffoldPhysicalIdentity";
|
|
8
|
-
import { writtenVersion } from "./writtenVersion";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Capture one existing ordinary file through its pathname, recording whether another directory entry also names it.
|
|
12
|
-
*
|
|
13
|
-
* @evidence contracts/development/implementation.md#principled-implementation A fresh lstat admits an ordinary pathname and captures its physical identity, written and full versions, and whether its link count exceeds one.
|
|
14
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One snapshot producer supplies reading, replacement admission and before-and-after resident verification; the writer chooses its method from `shared`.
|
|
15
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Symbolic links and non-regular entries fail before a snapshot exists; a shared file is admitted but marked, so no writer rewrites it in place.
|
|
16
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states ordinary-file admission and the shared mark; the snapshot members document exact version semantics.
|
|
17
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One lstat and a fixed number of bigint-to-string encodings dominate, independent of file contents.
|
|
18
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Each snapshot is a new pathname observation, so a previous snapshot is not reused as current ownership.
|
|
19
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only scalar snapshot fields escape; lstat opens no retained descriptor in this owner.
|
|
20
|
-
*/
|
|
21
|
-
export const captureScaffoldFile: (file: string) => IScaffoldFileSnapshot = (
|
|
22
|
-
file: string,
|
|
23
|
-
): IScaffoldFileSnapshot => {
|
|
24
|
-
const absolute: string = path.resolve(file);
|
|
25
|
-
const status: fs.BigIntStats = fs.lstatSync(absolute, { bigint: true });
|
|
26
|
-
assertOrdinaryFile(status, absolute);
|
|
27
|
-
return {
|
|
28
|
-
identity: scaffoldPhysicalIdentity(status),
|
|
29
|
-
path: absolute,
|
|
30
|
-
shared: status.nlink > 1n,
|
|
31
|
-
version: physicalVersion(status),
|
|
32
|
-
written: writtenVersion(status),
|
|
33
|
-
};
|
|
34
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as fs from "node:fs";
|
|
2
|
-
import * as path from "node:path";
|
|
3
|
-
|
|
4
|
-
import { type IScaffoldPhysicalDirectory } from "./IScaffoldPhysicalDirectory";
|
|
5
|
-
import { physicalDirectoryIdentity } from "./physicalDirectoryIdentity";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Capture one ordinary directory, refusing a symbolic link or junction.
|
|
9
|
-
*
|
|
10
|
-
* @evidence contracts/development/implementation.md#principled-implementation A non-symlink directory lstat is paired with descriptor identity and native real path for later generation checks.
|
|
11
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure All directory admission and revalidation reuse one capture definition.
|
|
12
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A linked final component or non-directory is refused rather than being resolved and trusted.
|
|
13
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states ordinary-directory capture and the result documents lexical, physical and real-path identities.
|
|
14
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One lstat, one descriptor fstat and one native realpath are fixed metadata operations plus pathname processing.
|
|
15
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work A fresh capture is needed for each revalidation; prior filesystem observations cannot prove current identity.
|
|
16
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources physicalDirectoryIdentity attempts descriptor close in finally and must finish that close before this capture returns its three strings; failure propagates without proving native release, and no handle enters the returned record.
|
|
17
|
-
*/
|
|
18
|
-
export const captureScaffoldPhysicalDirectory: (
|
|
19
|
-
directory: string,
|
|
20
|
-
) => IScaffoldPhysicalDirectory = (
|
|
21
|
-
directory: string,
|
|
22
|
-
): IScaffoldPhysicalDirectory => {
|
|
23
|
-
const absolute: string = path.resolve(directory);
|
|
24
|
-
const status: fs.BigIntStats = fs.lstatSync(absolute, { bigint: true });
|
|
25
|
-
if (status.isSymbolicLink() || status.isDirectory() === false)
|
|
26
|
-
throw new Error(
|
|
27
|
-
`scaffold directory is not one ordinary directory: ${absolute}`,
|
|
28
|
-
);
|
|
29
|
-
return {
|
|
30
|
-
identity: physicalDirectoryIdentity(absolute, status),
|
|
31
|
-
path: absolute,
|
|
32
|
-
real: path.resolve(fs.realpathSync.native(absolute)),
|
|
33
|
-
};
|
|
34
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/** The failures of one scaffold operation, in the order they happened. */
|
|
2
|
-
class ScaffoldCleanupError extends AggregateError {}
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Combine an operation's earlier failure with the failure of a cleanup step that ran because of it, so a close error never hides the error that caused the close.
|
|
6
|
-
*
|
|
7
|
-
* `first` is `undefined` when the operation had not failed; `second` is then returned unchanged. Otherwise the result is one `AggregateError` listing `first` before `second`, and a `first` that this function built is spread into the new list, so repeated cleanups yield one flat list in failure order. Any other `AggregateError` stays a single member, keeping its own message.
|
|
8
|
-
*
|
|
9
|
-
* @param first Failure observed before the cleanup, or `undefined` for none.
|
|
10
|
-
* @param second Failure of the cleanup step.
|
|
11
|
-
* @param resource Name of the released resource, used in the message.
|
|
12
|
-
* @returns `second` alone, or the combined failure.
|
|
13
|
-
*
|
|
14
|
-
* @evidence contracts/development/implementation.md#principled-implementation `AggregateError` is the standard container for several errors, and a private subclass marks the lists built here so only those are flattened; the premise is that no caller throws `undefined` as a real failure, which holds because every caller stores caught errors from Node or from this package, and both throw `Error` objects.
|
|
15
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure publishNativeScaffoldFile and overwriteScaffoldFile share cleanup-error ordering and flattening here; the private aggregate subtype keeps the combination marker out of the public API.
|
|
16
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Nothing is swallowed or retried: both failures reach the caller, and the function only decides their container.
|
|
17
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states what `undefined` means for `first`, the order of members, which aggregates are flattened, and what `resource` names.
|
|
18
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Building the list copies the members of an earlier combination once, linear in the failures of one operation, which is at most a few close steps.
|
|
19
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call wraps two distinct failures of one operation; there is no result another call could share.
|
|
20
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned aggregate holds references to the combined failures only for as long as the caller keeps it; the function owns no handle or other state.
|
|
21
|
-
*/
|
|
22
|
-
export const combineScaffoldFailures: (
|
|
23
|
-
first: unknown,
|
|
24
|
-
second: unknown,
|
|
25
|
-
resource: string,
|
|
26
|
-
) => unknown = (first: unknown, second: unknown, resource: string): unknown =>
|
|
27
|
-
first === undefined
|
|
28
|
-
? second
|
|
29
|
-
: new ScaffoldCleanupError(
|
|
30
|
-
[
|
|
31
|
-
...(first instanceof ScaffoldCleanupError ? first.errors : [first]),
|
|
32
|
-
second,
|
|
33
|
-
],
|
|
34
|
-
`${resource} failed after an earlier scaffold failure`,
|
|
35
|
-
);
|