@automovie/template 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -18
- package/generated/pnpm-workspace.json +54 -0
- package/{lib → generated}/skills/3d-modeling/conditioning.md +24 -27
- package/generated/skills/3d-modeling/crafting/SKILL.md +16 -0
- package/generated/skills/3d-modeling/crafting/construction.md +70 -0
- package/generated/skills/3d-modeling/crafting/lofting.md +73 -0
- package/generated/skills/3d-modeling/crafting/recovery.md +25 -0
- package/generated/skills/3d-modeling/diffusion/image-hints.md +30 -0
- package/generated/skills/3d-modeling/diffusion/models.md +27 -0
- package/generated/skills/3d-modeling/diffusion/prompts.md +9 -0
- package/generated/skills/3d-modeling/diffusion/request.md +16 -0
- package/generated/skills/3d-modeling/diffusion/shape-hints.md +31 -0
- package/generated/skills/3d-modeling/inspection.md +55 -0
- package/generated/skills/3d-modeling/modularization.md +25 -0
- package/{lib → generated}/skills/3d-modeling/rigging.md +21 -27
- package/{lib → generated}/skills/3d-modeling/sources.md +6 -6
- package/{lib → generated}/skills/contracts/development/design.md +2 -3
- package/{lib → generated}/skills/contracts/development/implementation.md +4 -4
- package/{lib → generated}/skills/contracts/development/testing.md +1 -1
- package/generated/skills/development/repair.md +13 -0
- package/{lib → generated}/skills/documentation/SKILL.md +2 -8
- package/generated/skills/documentation/writing.md +63 -0
- package/{lib/skills/motion → generated/skills/motion/laws}/authoring.md +13 -9
- package/{lib/skills/motion → generated/skills/motion/laws}/contacts.md +3 -1
- package/{lib/skills/motion/laws.md → generated/skills/motion/laws/declaration.md} +8 -8
- package/generated/skills/motion/laws/transitions.md +37 -0
- package/{lib/skills/motion → generated/skills/motion/laws}/variation.md +5 -5
- package/{lib/skills/motion → generated/skills/motion/laws}/verification.md +7 -13
- package/generated/skills/prompting/SKILL.md +82 -0
- package/{lib → generated}/skills/visual-debugging/capture.md +13 -11
- package/{lib → generated}/skills/visual-debugging/comparison.md +7 -9
- package/{lib → generated}/skills/visual-debugging/correction-rounds.md +13 -13
- package/{lib → generated}/skills/visual-debugging/passes.md +9 -9
- package/lib/IAutoMovieScaffoldProps.d.ts +14 -6
- package/lib/assertScaffoldProjectName.d.ts +1 -1
- package/lib/assertScaffoldProjectName.js +1 -1
- package/lib/createAutoMovieScaffold.d.ts +27 -0
- package/lib/createAutoMovieScaffold.js +145 -0
- package/lib/createAutoMovieScaffold.js.map +1 -0
- package/lib/index.d.ts +1 -45
- package/lib/index.js +1 -45
- package/lib/index.js.map +1 -1
- package/lib/listAutoMovieScaffoldFiles.d.ts +2 -2
- package/lib/listAutoMovieScaffoldFiles.js +2 -2
- package/package.json +9 -12
- package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +14 -11
- package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +7 -9
- package/scaffold/instructions/.agents/skills/3d-modeling/diffusion/SKILL.md +20 -0
- package/scaffold/instructions/.agents/skills/audio/SKILL.md +10 -21
- package/scaffold/instructions/.agents/skills/audio/acquisition.md +24 -12
- package/scaffold/instructions/.agents/skills/audio/film-sound.md +25 -0
- package/scaffold/instructions/.agents/skills/audio/generated-sound.md +15 -0
- package/scaffold/instructions/.agents/skills/audio/sound-effects.md +11 -17
- package/scaffold/instructions/.agents/skills/audio/soundtrack.md +5 -0
- package/scaffold/instructions/.agents/skills/contracts/SKILL.md +10 -16
- package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +5 -7
- package/scaffold/instructions/.agents/skills/contracts/development/composition.md +12 -8
- package/scaffold/instructions/.agents/skills/contracts/development/entities.md +7 -6
- package/scaffold/instructions/.agents/skills/contracts/development/statements/behaviors.md +20 -20
- package/scaffold/instructions/.agents/skills/contracts/development/statements/composition.md +18 -16
- package/scaffold/instructions/.agents/skills/contracts/development/statements/entities.md +13 -12
- package/scaffold/instructions/.agents/skills/contracts/story/SKILL.md +13 -15
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/brief.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/common.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/narratives.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/screenplay.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/scripts.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/settings.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/treatments.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/common.md +6 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/common.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/realized.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/scripts.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/realized.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/brief.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/common.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/index.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/narratives.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/review.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/screenplay.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/scripts.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/settings.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/treatments.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/brief.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/common.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/index.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/narratives.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/realized.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/research.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/review.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/screenplay.md +5 -9
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/scripts.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/settings.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/treatments.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/brief.md +4 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/common.md +7 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/narratives.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/screenplay.md +3 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/scripts.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/settings.md +5 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/treatments.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/common.md +37 -44
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/common.md +7 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/realized.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/scripts.md +5 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/realized.md +12 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/brief.md +12 -12
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/common.md +16 -16
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/index.md +7 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/narratives.md +14 -14
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/review.md +16 -20
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/screenplay.md +7 -10
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/scripts.md +5 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/settings.md +29 -22
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/treatments.md +13 -15
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/brief.md +9 -17
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/common.md +4 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/index.md +8 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/narratives.md +29 -25
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/realized.md +11 -10
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/research.md +18 -18
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/review.md +13 -25
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/screenplay.md +41 -45
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/scripts.md +16 -16
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/settings.md +8 -24
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/treatments.md +12 -17
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/screenplay.md +7 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/scripts.md +4 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/treatments.md +3 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/screenplay.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/treatments.md +3 -3
- package/scaffold/instructions/.agents/skills/development/SKILL.md +5 -7
- package/scaffold/instructions/.agents/skills/development/entities.md +20 -20
- package/scaffold/instructions/.agents/skills/development/reuse.md +19 -18
- package/scaffold/instructions/.agents/skills/development/source-layout.md +32 -24
- package/scaffold/instructions/.agents/skills/development/testing.md +13 -10
- package/scaffold/instructions/.agents/skills/direct-film/SKILL.md +51 -0
- package/scaffold/instructions/.agents/skills/evidence/SKILL.md +1 -1
- package/scaffold/instructions/.agents/skills/evidence/adoption.md +4 -4
- package/scaffold/instructions/.agents/skills/evidence/answering.md +2 -4
- package/scaffold/instructions/.agents/skills/evidence/configuration.md +8 -8
- package/scaffold/instructions/.agents/skills/image/SKILL.md +16 -58
- package/scaffold/instructions/.agents/skills/image/canon-references.md +27 -0
- package/scaffold/instructions/.agents/skills/image/conditioning.md +27 -0
- package/scaffold/instructions/.agents/skills/image/consistency.md +23 -0
- package/scaffold/instructions/.agents/skills/image/editing.md +15 -0
- package/scaffold/instructions/.agents/skills/image/finishing.md +11 -0
- package/scaffold/instructions/.agents/skills/image/models.md +18 -0
- package/scaffold/instructions/.agents/skills/image/prompting.md +25 -0
- package/scaffold/instructions/.agents/skills/image/turnaround-views.md +13 -0
- package/scaffold/instructions/.agents/skills/motion/SKILL.md +31 -47
- package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +24 -4
- package/scaffold/instructions/.agents/skills/motion/compose/composition.md +58 -0
- package/scaffold/instructions/.agents/skills/motion/compose/refusals.md +15 -0
- package/scaffold/instructions/.agents/skills/motion/control-channels.md +20 -8
- package/scaffold/instructions/.agents/skills/motion/diffusion/SKILL.md +24 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/clips.md +17 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/hints.md +37 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/models.md +24 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/tracing.md +53 -0
- package/scaffold/instructions/.agents/skills/motion/frame-evaluation.md +8 -12
- package/scaffold/instructions/.agents/skills/motion/laws/$verification.md +0 -0
- package/scaffold/instructions/.agents/skills/motion/laws/SKILL.md +19 -0
- package/scaffold/instructions/.agents/skills/motion/laws/extension.md +35 -0
- package/scaffold/instructions/.agents/skills/motion/laws/method-references.md +21 -0
- package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +16 -16
- package/scaffold/instructions/.agents/skills/motion/retargeting.md +8 -10
- package/scaffold/instructions/.agents/skills/motion/segment-review.md +4 -6
- package/scaffold/instructions/.agents/skills/motion/staging.md +21 -13
- package/scaffold/instructions/.agents/skills/production/SKILL.md +19 -19
- package/scaffold/instructions/.agents/skills/production/assembly.md +14 -12
- package/scaffold/instructions/.agents/skills/production/captions.md +15 -0
- package/scaffold/instructions/.agents/skills/production/media-records.md +13 -12
- package/scaffold/instructions/.agents/skills/production/project-context.md +33 -12
- package/scaffold/instructions/.agents/skills/production/reorganization.md +13 -0
- package/scaffold/instructions/.agents/skills/production/stage-caches.md +11 -11
- package/scaffold/instructions/.agents/skills/production/sustained-runs.md +9 -9
- package/scaffold/instructions/.agents/skills/review/SKILL.md +3 -5
- package/scaffold/instructions/.agents/skills/review/delivery-review.md +25 -29
- package/scaffold/instructions/.agents/skills/review/estimation.md +10 -10
- package/scaffold/instructions/.agents/skills/review/independent-reading.md +10 -18
- package/scaffold/instructions/.agents/skills/review/narrative-rounds.md +10 -36
- package/scaffold/instructions/.agents/skills/review/source-review.md +6 -18
- package/scaffold/instructions/.agents/skills/story/SKILL.md +11 -11
- package/scaffold/instructions/.agents/skills/story/answers.md +27 -0
- package/scaffold/instructions/.agents/skills/story/correction/inspection.md +8 -12
- package/scaffold/instructions/.agents/skills/story/correction/repair.md +8 -12
- package/scaffold/instructions/.agents/skills/story/document-layout.md +9 -12
- package/scaffold/instructions/.agents/skills/story/layers/SKILL.md +10 -9
- package/scaffold/instructions/.agents/skills/story/layers/brief.md +7 -19
- package/scaffold/instructions/.agents/skills/story/layers/notation.md +25 -16
- package/scaffold/instructions/.agents/skills/story/layers/screenplay.md +23 -7
- package/scaffold/instructions/.agents/skills/story/layers/scripts.md +4 -4
- package/scaffold/instructions/.agents/skills/story/layers/settings.md +10 -16
- package/scaffold/instructions/.agents/skills/story/layers/shots.md +27 -0
- package/scaffold/instructions/.agents/skills/story/layers/treatments.md +4 -4
- package/scaffold/instructions/.agents/skills/story/planning/SKILL.md +4 -4
- package/scaffold/instructions/.agents/skills/story/planning/direction.md +4 -4
- package/scaffold/instructions/.agents/skills/story/planning/discovery.md +8 -7
- package/scaffold/instructions/.agents/skills/story/planning/requirements.md +11 -11
- package/scaffold/instructions/.agents/skills/story/planning/research.md +24 -11
- package/scaffold/instructions/.agents/skills/story/workflow/SKILL.md +14 -0
- package/scaffold/instructions/.agents/skills/story/workflow/long.md +38 -0
- package/scaffold/instructions/.agents/skills/story/workflow/routes.md +40 -0
- package/scaffold/instructions/.agents/skills/story/workflow/short.md +33 -0
- package/scaffold/instructions/.agents/skills/video/SKILL.md +12 -21
- package/scaffold/instructions/.agents/skills/video/diffusion/SKILL.md +21 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/continuity.md +21 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/hints.md +14 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/models.md +26 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/prompts.md +45 -0
- package/scaffold/instructions/.agents/skills/video/finishing.md +44 -0
- package/scaffold/instructions/.agents/skills/video/generation.md +24 -13
- package/scaffold/instructions/.agents/skills/video/requests.md +46 -0
- package/scaffold/instructions/.agents/skills/visual-debugging/SKILL.md +5 -6
- package/scaffold/instructions/AGENTS.md +30 -56
- package/scaffold/production/PROJECT.md +1 -1
- package/scaffold/production/README.md +50 -96
- package/scaffold/production/_gitignore +1 -2
- package/scaffold/production/index.html +4 -8
- package/scaffold/production/lint.config.ts +1 -1
- package/scaffold/production/package.json +31 -31
- package/scaffold/production/src/IFilm.ts +3 -3
- package/scaffold/production/src/IFilmProduction.ts +16 -5
- package/scaffold/production/src/composition/films/index.ts +3 -2
- package/scaffold/production/src/composition/films/starter.ts +2 -2
- package/scaffold/production/src/main.ts +9 -195
- package/scaffold/production/src/markFilmProduction.ts +43 -0
- package/scaffold/production/src/selectFilm.ts +3 -5
- package/scaffold/production/src/subjects.ts +59 -0
- package/scaffold/production/vite.config.ts +4 -2
- package/scaffold/workspace/README.md +5 -7
- package/scaffold/workspace/package.json +1 -1
- package/src/IAutoMovieScaffoldProps.ts +15 -6
- package/src/assertScaffoldProjectName.ts +1 -1
- package/src/createAutoMovieScaffold.ts +152 -0
- package/src/index.ts +1 -46
- package/src/listAutoMovieScaffoldFiles.ts +2 -2
- package/build/resolveTemplateVersions.ts +0 -92
- package/build/syncScaffoldInstructions.ts +0 -28
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.d.ts +0 -14
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js +0 -52
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js.map +0 -1
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.d.ts +0 -2
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js +0 -42
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js.map +0 -1
- package/lib/AutoMovieScaffoldLayer.d.ts +0 -15
- package/lib/AutoMovieScaffoldLayer.js +0 -3
- package/lib/AutoMovieScaffoldLayer.js.map +0 -1
- package/lib/FILE_ATTRIBUTE_DIRECTORY.d.ts +0 -2
- package/lib/FILE_ATTRIBUTE_DIRECTORY.js +0 -6
- package/lib/FILE_ATTRIBUTE_DIRECTORY.js.map +0 -1
- package/lib/IAutoMovieCatalogVersionProps.d.ts +0 -16
- package/lib/IAutoMovieCatalogVersionProps.js +0 -3
- package/lib/IAutoMovieCatalogVersionProps.js.map +0 -1
- package/lib/IAutoMovieScaffoldSourceEntry.d.ts +0 -18
- package/lib/IAutoMovieScaffoldSourceEntry.js +0 -3
- package/lib/IAutoMovieScaffoldSourceEntry.js.map +0 -1
- package/lib/IAutoMovieTemplateDependencyVersionsProps.d.ts +0 -17
- package/lib/IAutoMovieTemplateDependencyVersionsProps.js +0 -3
- package/lib/IAutoMovieTemplateDependencyVersionsProps.js.map +0 -1
- package/lib/IAutoMovieWorkspacePackageVersions.d.ts +0 -34
- package/lib/IAutoMovieWorkspacePackageVersions.js +0 -3
- package/lib/IAutoMovieWorkspacePackageVersions.js.map +0 -1
- package/lib/IBoundChild.d.ts +0 -71
- package/lib/IBoundChild.js +0 -3
- package/lib/IBoundChild.js.map +0 -1
- package/lib/IBoundChildStatus.d.ts +0 -20
- package/lib/IBoundChildStatus.js +0 -3
- package/lib/IBoundChildStatus.js.map +0 -1
- package/lib/IBoundParent.d.ts +0 -61
- package/lib/IBoundParent.js +0 -3
- package/lib/IBoundParent.js.map +0 -1
- package/lib/IBoundParentStatus.d.ts +0 -14
- package/lib/IBoundParentStatus.js +0 -3
- package/lib/IBoundParentStatus.js.map +0 -1
- package/lib/ICreateResult.d.ts +0 -27
- package/lib/ICreateResult.js +0 -3
- package/lib/ICreateResult.js.map +0 -1
- package/lib/IScaffoldCompletedFilePublicationOutcome.d.ts +0 -16
- package/lib/IScaffoldCompletedFilePublicationOutcome.js +0 -3
- package/lib/IScaffoldCompletedFilePublicationOutcome.js.map +0 -1
- package/lib/IScaffoldCompletedPublication.d.ts +0 -15
- package/lib/IScaffoldCompletedPublication.js +0 -3
- package/lib/IScaffoldCompletedPublication.js.map +0 -1
- package/lib/IScaffoldFileSnapshot.d.ts +0 -24
- package/lib/IScaffoldFileSnapshot.js +0 -3
- package/lib/IScaffoldFileSnapshot.js.map +0 -1
- package/lib/IScaffoldParentPublicationRequest.d.ts +0 -26
- package/lib/IScaffoldParentPublicationRequest.js +0 -3
- package/lib/IScaffoldParentPublicationRequest.js.map +0 -1
- package/lib/IScaffoldPartialFilePublicationOutcome.d.ts +0 -22
- package/lib/IScaffoldPartialFilePublicationOutcome.js +0 -3
- package/lib/IScaffoldPartialFilePublicationOutcome.js.map +0 -1
- package/lib/IScaffoldPhysicalDirectory.d.ts +0 -20
- package/lib/IScaffoldPhysicalDirectory.js +0 -3
- package/lib/IScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/IScaffoldPosixConstants.d.ts +0 -24
- package/lib/IScaffoldPosixConstants.js +0 -3
- package/lib/IScaffoldPosixConstants.js.map +0 -1
- package/lib/IScaffoldPublicationEntry.d.ts +0 -20
- package/lib/IScaffoldPublicationEntry.js +0 -3
- package/lib/IScaffoldPublicationEntry.js.map +0 -1
- package/lib/IScaffoldPublicationFailure.d.ts +0 -18
- package/lib/IScaffoldPublicationFailure.js +0 -3
- package/lib/IScaffoldPublicationFailure.js.map +0 -1
- package/lib/IScaffoldPublicationOptions.d.ts +0 -17
- package/lib/IScaffoldPublicationOptions.js +0 -3
- package/lib/IScaffoldPublicationOptions.js.map +0 -1
- package/lib/IScaffoldPublicationReceipt.d.ts +0 -25
- package/lib/IScaffoldPublicationReceipt.js +0 -3
- package/lib/IScaffoldPublicationReceipt.js.map +0 -1
- package/lib/IScaffoldRefusedFilePublicationOutcome.d.ts +0 -18
- package/lib/IScaffoldRefusedFilePublicationOutcome.js +0 -3
- package/lib/IScaffoldRefusedFilePublicationOutcome.js.map +0 -1
- package/lib/IScaffoldSyncPlan.d.ts +0 -25
- package/lib/IScaffoldSyncPlan.js +0 -3
- package/lib/IScaffoldSyncPlan.js.map +0 -1
- package/lib/IScaffoldSyncProps.d.ts +0 -16
- package/lib/IScaffoldSyncProps.js +0 -3
- package/lib/IScaffoldSyncProps.js.map +0 -1
- package/lib/IWindowsFileInformation.d.ts +0 -20
- package/lib/IWindowsFileInformation.js +0 -3
- package/lib/IWindowsFileInformation.js.map +0 -1
- package/lib/IWindowsLibrary.d.ts +0 -127
- package/lib/IWindowsLibrary.js +0 -3
- package/lib/IWindowsLibrary.js.map +0 -1
- package/lib/SCAFFOLD_SYNC_STATE_FILE.d.ts +0 -4
- package/lib/SCAFFOLD_SYNC_STATE_FILE.js +0 -8
- package/lib/SCAFFOLD_SYNC_STATE_FILE.js.map +0 -1
- package/lib/ScaffoldFilePublicationOutcome.d.ts +0 -14
- package/lib/ScaffoldFilePublicationOutcome.js +0 -3
- package/lib/ScaffoldFilePublicationOutcome.js.map +0 -1
- package/lib/ScaffoldParentChangedError.d.ts +0 -11
- package/lib/ScaffoldParentChangedError.js +0 -19
- package/lib/ScaffoldParentChangedError.js.map +0 -1
- package/lib/ScaffoldPublicationError.d.ts +0 -17
- package/lib/ScaffoldPublicationError.js +0 -46
- package/lib/ScaffoldPublicationError.js.map +0 -1
- package/lib/assertOrdinaryFile.d.ts +0 -13
- package/lib/assertOrdinaryFile.js +0 -20
- package/lib/assertOrdinaryFile.js.map +0 -1
- package/lib/assertOrdinarySingleLinkFile.d.ts +0 -13
- package/lib/assertOrdinarySingleLinkFile.js +0 -22
- package/lib/assertOrdinarySingleLinkFile.js.map +0 -1
- package/lib/assertScaffoldOwnership.d.ts +0 -13
- package/lib/assertScaffoldOwnership.js +0 -24
- package/lib/assertScaffoldOwnership.js.map +0 -1
- package/lib/assertScaffoldPhysicalDirectory.d.ts +0 -16
- package/lib/assertScaffoldPhysicalDirectory.js +0 -26
- package/lib/assertScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/attachScaffoldSyncState.d.ts +0 -18
- package/lib/attachScaffoldSyncState.js +0 -30
- package/lib/attachScaffoldSyncState.js.map +0 -1
- package/lib/captureEmptyScaffoldPhysicalDirectory.d.ts +0 -13
- package/lib/captureEmptyScaffoldPhysicalDirectory.js +0 -69
- package/lib/captureEmptyScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/captureScaffoldFile.d.ts +0 -13
- package/lib/captureScaffoldFile.js +0 -67
- package/lib/captureScaffoldFile.js.map +0 -1
- package/lib/captureScaffoldPhysicalDirectory.d.ts +0 -13
- package/lib/captureScaffoldPhysicalDirectory.js +0 -63
- package/lib/captureScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/combineScaffoldFailures.d.ts +0 -19
- package/lib/combineScaffoldFailures.js +0 -32
- package/lib/combineScaffoldFailures.js.map +0 -1
- package/lib/createAutoMovieCatalogVersionResolver.d.ts +0 -17
- package/lib/createAutoMovieCatalogVersionResolver.js +0 -64
- package/lib/createAutoMovieCatalogVersionResolver.js.map +0 -1
- package/lib/createScaffoldSyncState.d.ts +0 -12
- package/lib/createScaffoldSyncState.js +0 -26
- package/lib/createScaffoldSyncState.js.map +0 -1
- package/lib/createScaffoldVariables.d.ts +0 -25
- package/lib/createScaffoldVariables.js +0 -41
- package/lib/createScaffoldVariables.js.map +0 -1
- package/lib/ensureScaffoldBaseDirectory.d.ts +0 -19
- package/lib/ensureScaffoldBaseDirectory.js +0 -89
- package/lib/ensureScaffoldBaseDirectory.js.map +0 -1
- package/lib/ensureScaffoldFileDirectory.d.ts +0 -25
- package/lib/ensureScaffoldFileDirectory.js +0 -103
- package/lib/ensureScaffoldFileDirectory.js.map +0 -1
- package/lib/inside.d.ts +0 -12
- package/lib/inside.js +0 -57
- package/lib/inside.js.map +0 -1
- package/lib/isScaffoldInstruction.d.ts +0 -12
- package/lib/isScaffoldInstruction.js +0 -29
- package/lib/isScaffoldInstruction.js.map +0 -1
- package/lib/loadWindowsLibrary.d.ts +0 -13
- package/lib/loadWindowsLibrary.js +0 -180
- package/lib/loadWindowsLibrary.js.map +0 -1
- package/lib/mergeScaffoldFiles.d.ts +0 -18
- package/lib/mergeScaffoldFiles.js +0 -37
- package/lib/mergeScaffoldFiles.js.map +0 -1
- package/lib/missingPath.d.ts +0 -12
- package/lib/missingPath.js +0 -18
- package/lib/missingPath.js.map +0 -1
- package/lib/nativeError.d.ts +0 -12
- package/lib/nativeError.js +0 -17
- package/lib/nativeError.js.map +0 -1
- package/lib/openPosixParent.d.ts +0 -13
- package/lib/openPosixParent.js +0 -135
- package/lib/openPosixParent.js.map +0 -1
- package/lib/openWindowsParent.d.ts +0 -13
- package/lib/openWindowsParent.js +0 -224
- package/lib/openWindowsParent.js.map +0 -1
- package/lib/overwriteScaffoldFile.d.ts +0 -22
- package/lib/overwriteScaffoldFile.js +0 -214
- package/lib/overwriteScaffoldFile.js.map +0 -1
- package/lib/physicalDirectoryIdentity.d.ts +0 -15
- package/lib/physicalDirectoryIdentity.js +0 -65
- package/lib/physicalDirectoryIdentity.js.map +0 -1
- package/lib/physicalVersion.d.ts +0 -13
- package/lib/physicalVersion.js +0 -18
- package/lib/physicalVersion.js.map +0 -1
- package/lib/planScaffoldPublication.d.ts +0 -22
- package/lib/planScaffoldPublication.js +0 -100
- package/lib/planScaffoldPublication.js.map +0 -1
- package/lib/planScaffoldSync.d.ts +0 -14
- package/lib/planScaffoldSync.js +0 -102
- package/lib/planScaffoldSync.js.map +0 -1
- package/lib/publishFiles.d.ts +0 -23
- package/lib/publishFiles.js +0 -124
- package/lib/publishFiles.js.map +0 -1
- package/lib/publishNativeScaffoldFile.d.ts +0 -21
- package/lib/publishNativeScaffoldFile.js +0 -211
- package/lib/publishNativeScaffoldFile.js.map +0 -1
- package/lib/publishScaffoldCandidate.d.ts +0 -24
- package/lib/publishScaffoldCandidate.js +0 -70
- package/lib/publishScaffoldCandidate.js.map +0 -1
- package/lib/readAutoMovieScaffoldSources.d.ts +0 -20
- package/lib/readAutoMovieScaffoldSources.js +0 -103
- package/lib/readAutoMovieScaffoldSources.js.map +0 -1
- package/lib/readScaffoldSyncFile.d.ts +0 -16
- package/lib/readScaffoldSyncFile.js +0 -64
- package/lib/readScaffoldSyncFile.js.map +0 -1
- package/lib/renderScaffold.d.ts +0 -19
- package/lib/renderScaffold.js +0 -33
- package/lib/renderScaffold.js.map +0 -1
- package/lib/renderScaffoldEntries.d.ts +0 -20
- package/lib/renderScaffoldEntries.js +0 -106
- package/lib/renderScaffoldEntries.js.map +0 -1
- package/lib/renderScaffoldInstructions.d.ts +0 -17
- package/lib/renderScaffoldInstructions.js +0 -23
- package/lib/renderScaffoldInstructions.js.map +0 -1
- package/lib/renderScaffoldLayer.d.ts +0 -20
- package/lib/renderScaffoldLayer.js +0 -28
- package/lib/renderScaffoldLayer.js.map +0 -1
- package/lib/renderTemplate.d.ts +0 -19
- package/lib/renderTemplate.js +0 -56
- package/lib/renderTemplate.js.map +0 -1
- package/lib/renderWorkspaceProductionScaffold.d.ts +0 -19
- package/lib/renderWorkspaceProductionScaffold.js +0 -30
- package/lib/renderWorkspaceProductionScaffold.js.map +0 -1
- package/lib/renderWorkspaceScaffold.d.ts +0 -19
- package/lib/renderWorkspaceScaffold.js +0 -33
- package/lib/renderWorkspaceScaffold.js.map +0 -1
- package/lib/replaceSharedScaffoldFile.d.ts +0 -30
- package/lib/replaceSharedScaffoldFile.js +0 -106
- package/lib/replaceSharedScaffoldFile.js.map +0 -1
- package/lib/resolveAutoMovieCatalogVersion.d.ts +0 -19
- package/lib/resolveAutoMovieCatalogVersion.js +0 -24
- package/lib/resolveAutoMovieCatalogVersion.js.map +0 -1
- package/lib/resolveAutoMovieTemplateDependencyVersions.d.ts +0 -19
- package/lib/resolveAutoMovieTemplateDependencyVersions.js +0 -62
- package/lib/resolveAutoMovieTemplateDependencyVersions.js.map +0 -1
- package/lib/resolveScaffoldPosixConstants.d.ts +0 -13
- package/lib/resolveScaffoldPosixConstants.js +0 -44
- package/lib/resolveScaffoldPosixConstants.js.map +0 -1
- package/lib/scaffoldAssetDirectory.d.ts +0 -19
- package/lib/scaffoldAssetDirectory.js +0 -63
- package/lib/scaffoldAssetDirectory.js.map +0 -1
- package/lib/scaffoldPhysicalIdentity.d.ts +0 -18
- package/lib/scaffoldPhysicalIdentity.js +0 -22
- package/lib/scaffoldPhysicalIdentity.js.map +0 -1
- package/lib/scaffoldSharedSkillDirectory.d.ts +0 -17
- package/lib/scaffoldSharedSkillDirectory.js +0 -62
- package/lib/scaffoldSharedSkillDirectory.js.map +0 -1
- package/lib/skills/3d-modeling/crafting.md +0 -82
- package/lib/skills/3d-modeling/diffusion.md +0 -34
- package/lib/skills/3d-modeling/inspection.md +0 -54
- package/lib/skills/3d-modeling/lofting.md +0 -43
- package/lib/skills/3d-modeling/modularization.md +0 -31
- package/lib/skills/3d-modeling/recovery.md +0 -29
- package/lib/skills/development/repair.md +0 -13
- package/lib/skills/documentation/writing.md +0 -51
- package/lib/skills/motion/layers.md +0 -7
- package/lib/skills/motion/transitions.md +0 -27
- package/lib/skills/prompting/SKILL.md +0 -80
- package/lib/syncScaffold.d.ts +0 -19
- package/lib/syncScaffold.js +0 -28
- package/lib/syncScaffold.js.map +0 -1
- package/lib/writeFiles.d.ts +0 -20
- package/lib/writeFiles.js +0 -33
- package/lib/writeFiles.js.map +0 -1
- package/lib/writeScaffoldFile.d.ts +0 -35
- package/lib/writeScaffoldFile.js +0 -107
- package/lib/writeScaffoldFile.js.map +0 -1
- package/lib/writtenVersion.d.ts +0 -13
- package/lib/writtenVersion.js +0 -18
- package/lib/writtenVersion.js.map +0 -1
- package/scaffold/instructions/.agents/skills/audio/local-speech.md +0 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/screenplay.md +0 -9
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/screenplay.md +0 -13
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/screenplay.md +0 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/screenplay.md +0 -25
- package/scaffold/instructions/.agents/skills/motion/method-references.md +0 -23
- package/scaffold/instructions/.agents/skills/production/sync-and-reorganization.md +0 -21
- package/scaffold/instructions/.agents/skills/story/correction/SKILL.md +0 -13
- package/scaffold/instructions/.agents/skills/story/evidence/SKILL.md +0 -13
- package/scaffold/instructions/.agents/skills/story/evidence/answer-placement.md +0 -13
- package/scaffold/instructions/.agents/skills/story/evidence/answer-writing.md +0 -23
- package/scaffold/instructions/.agents/skills/story/naturalness/SKILL.md +0 -13
- package/scaffold/instructions/.agents/skills/story/naturalness/rewriting.md +0 -17
- package/scaffold/instructions/.agents/skills/story/naturalness/transfer.md +0 -11
- package/scaffold/instructions/.agents/skills/story/workflow.md +0 -61
- package/scaffold/instructions/.agents/skills/video/diffusion.md +0 -33
- package/scaffold/instructions/.agents/skills/video/prompts.md +0 -51
- package/scaffold/production/evidence.config.ts +0 -12
- package/scaffold/production/src/executable/capture.ts +0 -487
- package/scaffold/production/src/executable/planCaptureStills.ts +0 -65
- package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureError.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureErrorCode.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessWaitUntil.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureOptions.ts +0 -79
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureSession.ts +0 -39
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessFrameWriter.ts +0 -20
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessLocator.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessPage.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/createHeadlessCaptureAdapter.ts +0 -92
- package/scaffold/production/src/executable/render/headlessCapture/index.ts +0 -9
- package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoOptions.ts +0 -128
- package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoResult.ts +0 -43
- package/scaffold/production/src/executable/render/node/IProductionRenditionClip.ts +0 -44
- package/scaffold/production/src/executable/render/node/acquireViewerBrowser.ts +0 -24
- package/scaffold/production/src/executable/render/node/addProductionMp4Sample.ts +0 -89
- package/scaffold/production/src/executable/render/node/appendLosslessVideoClip.ts +0 -62
- package/scaffold/production/src/executable/render/node/assembleProductionChunkVideoMp4.ts +0 -167
- package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionClips.ts +0 -184
- package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionVideo.ts +0 -127
- package/scaffold/production/src/executable/render/node/assertProductionRenditionClipDelivery.ts +0 -102
- package/scaffold/production/src/executable/render/node/cache/IAutoMovieDirectoryArtifactStore.ts +0 -59
- package/scaffold/production/src/executable/render/node/cache/IAutoMovieViewerFrameCacheReport.ts +0 -30
- package/scaffold/production/src/executable/render/node/cache/cacheViewerCaptureSession.ts +0 -187
- package/scaffold/production/src/executable/render/node/cache/composeViewerFrameKeys.ts +0 -55
- package/scaffold/production/src/executable/render/node/cache/createAutoMovieArtifactMiddleware.ts +0 -107
- package/scaffold/production/src/executable/render/node/cache/createAutoMovieDirectoryArtifactStore.ts +0 -203
- package/scaffold/production/src/executable/render/node/cache/digestAutoMovieSourceTree.ts +0 -66
- package/scaffold/production/src/executable/render/node/cache/readViewerFrameStates.ts +0 -95
- package/scaffold/production/src/executable/render/node/capture/DEFAULT_CHROME_EXECUTABLE.ts +0 -11
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageOperationFailure.ts +0 -13
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeArtifact.ts +0 -30
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeOptions.ts +0 -51
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceMetadata.ts +0 -27
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderArtifact.ts +0 -44
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderOptions.ts +0 -43
- package/scaffold/production/src/executable/render/node/capture/IAutoMovieSequenceDissolvePixelCheck.ts +0 -39
- package/scaffold/production/src/executable/render/node/capture/captureRenderAndSee.ts +0 -233
- package/scaffold/production/src/executable/render/node/capture/captureSequenceRenderAndSee.ts +0 -377
- package/scaffold/production/src/executable/render/node/capture/index.ts +0 -14
- package/scaffold/production/src/executable/render/node/capture/preserveCleanupFailure.ts +0 -34
- package/scaffold/production/src/executable/render/node/capture/renderAndSeeCommand.ts +0 -169
- package/scaffold/production/src/executable/render/node/capture/renderSequenceAndSeeCommand.ts +0 -165
- package/scaffold/production/src/executable/render/node/capture/verifySequenceDissolvePixels.ts +0 -179
- package/scaffold/production/src/executable/render/node/conformProductionRenditionVideoMp4.ts +0 -86
- package/scaffold/production/src/executable/render/node/conformProductionVisualDeliveryVideoMp4.ts +0 -230
- package/scaffold/production/src/executable/render/node/decodeAutoMovieDelivery.ts +0 -253
- package/scaffold/production/src/executable/render/node/equalRational.ts +0 -36
- package/scaffold/production/src/executable/render/node/exactProductionClockProduct.ts +0 -26
- package/scaffold/production/src/executable/render/node/exportModelToGLB.ts +0 -267
- package/scaffold/production/src/executable/render/node/index.ts +0 -27
- package/scaffold/production/src/executable/render/node/loadModelGltfCore.ts +0 -18
- package/scaffold/production/src/executable/render/node/mixAutoMovieAudioCues.ts +0 -74
- package/scaffold/production/src/executable/render/node/muxProductionFeatureMp4.ts +0 -170
- package/scaffold/production/src/executable/render/node/neutralTrackPresentation.ts +0 -59
- package/scaffold/production/src/executable/render/node/normalizeProductionH264Mp4.ts +0 -110
- package/scaffold/production/src/executable/render/node/openLosslessVideoTrack.ts +0 -81
- package/scaffold/production/src/executable/render/node/parseMp4.ts +0 -46
- package/scaffold/production/src/executable/render/node/parseProductionMp4Output.ts +0 -70
- package/scaffold/production/src/executable/render/node/parseProductionRenditionClip.ts +0 -92
- package/scaffold/production/src/executable/render/node/planViewerVideo.ts +0 -140
- package/scaffold/production/src/executable/render/node/probeParsedProductionVideoMp4.ts +0 -48
- package/scaffold/production/src/executable/render/node/probeProductionPngPicture.ts +0 -223
- package/scaffold/production/src/executable/render/node/probeProductionRenderedMedia.ts +0 -355
- package/scaffold/production/src/executable/render/node/probeProductionVideoMp4.ts +0 -27
- package/scaffold/production/src/executable/render/node/probeVideoTrack.ts +0 -220
- package/scaffold/production/src/executable/render/node/productionRenditionVideoPlan.ts +0 -149
- package/scaffold/production/src/executable/render/node/recordViewerPlayback.ts +0 -137
- package/scaffold/production/src/executable/render/node/renderViewerFrames.ts +0 -139
- package/scaffold/production/src/executable/render/node/renderViewerVideo.ts +0 -301
- package/scaffold/production/src/executable/render/node/renderViewerVideoSession.ts +0 -75
- package/scaffold/production/src/executable/render/node/residentMp4Box.ts +0 -36
- package/scaffold/production/src/executable/render/node/residentPngJs.ts +0 -26
- package/scaffold/production/src/executable/render/node/runViewerVideoEncoder.ts +0 -58
- package/scaffold/production/src/executable/render/node/sameSampleDescription.ts +0 -43
- package/scaffold/production/src/executable/render/node/sameSampleFlags.ts +0 -28
- package/scaffold/production/src/executable/render/node/sampleBytes.ts +0 -46
- package/scaffold/production/src/executable/render/node/sampleDescription.ts +0 -40
- package/scaffold/production/src/executable/render/node/sampleOptions.ts +0 -37
- package/scaffold/production/src/executable/render/node/serializeDescriptionBox.ts +0 -29
- package/scaffold/production/src/executable/render/node/trimProductionAudioPresentation.ts +0 -115
- package/scaffold/production/src/executable/render/node/verifySampleStorage.ts +0 -86
- package/scaffold/production/src/executable/render/node/writeViewerFrameSheet.ts +0 -101
- package/scaffold/production/src/executable/render.ts +0 -92
- package/scaffold/production/src/executable/review.ts +0 -54
- package/scaffold/production/src/executable/viewer/inspection/createViewerDiskSource.ts +0 -119
- package/scaffold/production/src/executable/viewer/inspection/readViewerMaintainedSourceFiles.ts +0 -64
- package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureError.ts +0 -41
- package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureErrorCode.ts +0 -22
- package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessWaitUntil.ts +0 -18
- package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessLocator.ts +0 -32
- package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessPage.ts +0 -130
- package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureOptions.ts +0 -38
- package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureSession.ts +0 -41
- package/scaffold/production/src/executable/viewer/node/capture/createViewerCaptureSession.ts +0 -154
- package/scaffold/production/src/executable/viewer/node/capture/index.ts +0 -8
- package/scaffold/production/src/executable/viewer/node/index.ts +0 -2
- package/scaffold/production/src/executable/viewer/node/raster/AutoMovieRasterLighting.ts +0 -221
- package/scaffold/production/src/executable/viewer/node/raster/AutoMovieRasterSheet.ts +0 -175
- package/scaffold/production/src/executable/viewer/node/raster/AutoMovieRasterTarget.ts +0 -282
- package/scaffold/production/src/executable/viewer/node/raster/IAutoMovieSceneRaster.ts +0 -62
- package/scaffold/production/src/executable/viewer/node/raster/IRasterizeAutoMovieSceneProps.ts +0 -34
- package/scaffold/production/src/executable/viewer/node/raster/encodeAutoMovieRasterPng.ts +0 -77
- package/scaffold/production/src/executable/viewer/node/raster/index.ts +0 -8
- package/scaffold/production/src/executable/viewer/node/raster/rasterizeAutoMovieScene.ts +0 -594
- package/scaffold/production/src/executable/viewer/node/raster/stampAutoMovieRasterLabel.ts +0 -120
- package/scaffold/production/src/executable/viewer/process/ProcessOwnership.ts +0 -102
- package/scaffold/production/src/executable/viewer/process/internal/IProcessChildObservation.ts +0 -18
- package/scaffold/production/src/executable/viewer/process/internal/IProcessOwnershipHost.ts +0 -70
- package/scaffold/production/src/executable/viewer/process/internal/ProcessOwnershipController.ts +0 -125
- package/scaffold/production/src/executable/viewer/process/internal/WindowsProcessOwnershipPrograms.ts +0 -52
- package/scaffold/production/src/executable/viewer/process/internal/createNodeProcessOwnershipHost.ts +0 -41
- package/scaffold/production/src/executable/viewer/process/internal/decodeLinuxProcessIdentity.ts +0 -22
- package/scaffold/production/src/executable/viewer/process/internal/decodePosixProcessIdentity.ts +0 -24
- package/scaffold/production/src/executable/viewer/process/internal/decodeWindowsProcessResult.ts +0 -24
- package/scaffold/production/src/executable/viewer/process/internal/readNativeProcessIdentity.ts +0 -45
- package/scaffold/production/src/executable/viewer/process/internal/requireProcessId.ts +0 -15
- package/scaffold/production/src/executable/viewer/process/internal/resolveProcessIdentityReadError.ts +0 -15
- package/scaffold/production/src/executable/viewer/process/internal/runWindowsProcessOperation.ts +0 -41
- package/scaffold/production/src/executable/viewer/process/internal/selectProcessOwnershipTree.ts +0 -68
- package/scaffold/production/test/features/executable/test_plan_capture_stills.ts +0 -75
- package/scaffold/workspace/pnpm-workspace.yaml +0 -46
- package/src/AUTOMOVIE_TEMPLATE_CATALOGS.ts +0 -48
- package/src/AUTOMOVIE_TEMPLATE_VERSIONS.ts +0 -39
- package/src/AutoMovieScaffoldLayer.ts +0 -18
- package/src/FILE_ATTRIBUTE_DIRECTORY.ts +0 -2
- package/src/IAutoMovieCatalogVersionProps.ts +0 -18
- package/src/IAutoMovieScaffoldSourceEntry.ts +0 -19
- package/src/IAutoMovieTemplateDependencyVersionsProps.ts +0 -19
- package/src/IAutoMovieWorkspacePackageVersions.ts +0 -44
- package/src/IBoundChild.ts +0 -86
- package/src/IBoundChildStatus.ts +0 -24
- package/src/IBoundParent.ts +0 -65
- package/src/IBoundParentStatus.ts +0 -15
- package/src/ICreateResult.ts +0 -35
- package/src/IScaffoldCompletedFilePublicationOutcome.ts +0 -17
- package/src/IScaffoldCompletedPublication.ts +0 -17
- package/src/IScaffoldFileSnapshot.ts +0 -28
- package/src/IScaffoldParentPublicationRequest.ts +0 -29
- package/src/IScaffoldPartialFilePublicationOutcome.ts +0 -25
- package/src/IScaffoldPhysicalDirectory.ts +0 -22
- package/src/IScaffoldPosixConstants.ts +0 -30
- package/src/IScaffoldPublicationEntry.ts +0 -22
- package/src/IScaffoldPublicationFailure.ts +0 -18
- package/src/IScaffoldPublicationOptions.ts +0 -19
- package/src/IScaffoldPublicationReceipt.ts +0 -29
- package/src/IScaffoldRefusedFilePublicationOutcome.ts +0 -20
- package/src/IScaffoldSyncPlan.ts +0 -26
- package/src/IScaffoldSyncProps.ts +0 -16
- package/src/IWindowsFileInformation.ts +0 -24
- package/src/IWindowsLibrary.ts +0 -148
- package/src/SCAFFOLD_SYNC_STATE_FILE.ts +0 -5
- package/src/ScaffoldFilePublicationOutcome.ts +0 -18
- package/src/ScaffoldParentChangedError.ts +0 -14
- package/src/ScaffoldPublicationError.ts +0 -58
- package/src/assertOrdinaryFile.ts +0 -20
- package/src/assertOrdinarySingleLinkFile.ts +0 -26
- package/src/assertScaffoldOwnership.ts +0 -29
- package/src/assertScaffoldPhysicalDirectory.ts +0 -29
- package/src/attachScaffoldSyncState.ts +0 -30
- package/src/captureEmptyScaffoldPhysicalDirectory.ts +0 -45
- package/src/captureScaffoldFile.ts +0 -34
- package/src/captureScaffoldPhysicalDirectory.ts +0 -34
- package/src/combineScaffoldFailures.ts +0 -35
- package/src/createAutoMovieCatalogVersionResolver.ts +0 -117
- package/src/createScaffoldSyncState.ts +0 -33
- package/src/createScaffoldVariables.ts +0 -50
- package/src/ensureScaffoldBaseDirectory.ts +0 -55
- package/src/ensureScaffoldFileDirectory.ts +0 -75
- package/src/inside.ts +0 -25
- package/src/isScaffoldInstruction.ts +0 -29
- package/src/loadWindowsLibrary.ts +0 -277
- package/src/mergeScaffoldFiles.ts +0 -39
- package/src/missingPath.ts +0 -16
- package/src/nativeError.ts +0 -15
- package/src/openPosixParent.ts +0 -155
- package/src/openWindowsParent.ts +0 -305
- package/src/overwriteScaffoldFile.ts +0 -262
- package/src/physicalDirectoryIdentity.ts +0 -33
- package/src/physicalVersion.ts +0 -18
- package/src/planScaffoldPublication.ts +0 -100
- package/src/planScaffoldSync.ts +0 -122
- package/src/publishFiles.ts +0 -120
- package/src/publishNativeScaffoldFile.ts +0 -287
- package/src/publishScaffoldCandidate.ts +0 -94
- package/src/readAutoMovieScaffoldSources.ts +0 -82
- package/src/readScaffoldSyncFile.ts +0 -66
- package/src/renderScaffold.ts +0 -43
- package/src/renderScaffoldEntries.ts +0 -110
- package/src/renderScaffoldInstructions.ts +0 -22
- package/src/renderScaffoldLayer.ts +0 -38
- package/src/renderTemplate.ts +0 -62
- package/src/renderWorkspaceProductionScaffold.ts +0 -35
- package/src/renderWorkspaceScaffold.ts +0 -43
- package/src/replaceSharedScaffoldFile.ts +0 -88
- package/src/resolveAutoMovieCatalogVersion.ts +0 -27
- package/src/resolveAutoMovieTemplateDependencyVersions.ts +0 -70
- package/src/resolveScaffoldPosixConstants.ts +0 -50
- package/src/scaffoldAssetDirectory.ts +0 -30
- package/src/scaffoldPhysicalIdentity.ts +0 -21
- package/src/scaffoldSharedSkillDirectory.ts +0 -25
- package/src/syncScaffold.ts +0 -38
- package/src/writeFiles.ts +0 -48
- package/src/writeScaffoldFile.ts +0 -88
- package/src/writtenVersion.ts +0 -19
- /package/{lib → generated}/skills/contracts/development/common.md +0 -0
- /package/{lib → generated}/skills/visual-debugging/rendering-cost.md +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$crafting.md → $crafting} +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$diffusion.md → diffusion/$image-hints.md} +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$lofting.md → diffusion/$models.md} +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$recovery.md → diffusion/$prompts.md} +0 -0
- /package/scaffold/instructions/.agents/skills/{motion/$authoring.md → 3d-modeling/diffusion/$request.md} +0 -0
- /package/scaffold/instructions/.agents/skills/{motion/$contacts.md → 3d-modeling/diffusion/$shape-hints.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$laws.md → laws/$authoring.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$layers.md → laws/$contacts.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$transitions.md → laws/$declaration.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$variation.md → laws/$transitions.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$verification.md → laws/$variation.md} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadWindowsLibrary.js","sourceRoot":"","sources":["../src/loadWindowsLibrary.ts"],"names":[],"mapp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using a path two layers both supply.
|
|
3
|
-
*
|
|
4
|
-
* The result has no prototype, like each rendered layer, so a key such as `__proto__` stays an ordinary file path.
|
|
5
|
-
*
|
|
6
|
-
* @param layers Rendered layers in installation order.
|
|
7
|
-
* @returns One file map holding every layer's files.
|
|
8
|
-
* @throws When two layers supply the same path, naming it.
|
|
9
|
-
*
|
|
10
|
-
* @evidence contracts/development/implementation.md#principled-implementation Own-property lookup on the null-prototype result detects a repeated path exactly, and `Object.defineProperty` stores every key as data.
|
|
11
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One owner composes layers for both a single production and a workspace root.
|
|
12
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A shared path is refused rather than resolved by layer order, so no layer silently overrides another.
|
|
13
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the refusal, the null prototype and the input order.
|
|
14
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One pass over every layer's entries with constant-time membership checks.
|
|
15
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call joins distinct layers once.
|
|
16
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The result references the layers' strings without copying them and is owned by the caller.
|
|
17
|
-
*/
|
|
18
|
-
export declare const mergeScaffoldFiles: (...layers: readonly Readonly<Record<string, string>>[]) => Record<string, string>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mergeScaffoldFiles = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Join rendered scaffold layers that install into one directory, refusing a path two layers both supply.
|
|
6
|
-
*
|
|
7
|
-
* The result has no prototype, like each rendered layer, so a key such as `__proto__` stays an ordinary file path.
|
|
8
|
-
*
|
|
9
|
-
* @param layers Rendered layers in installation order.
|
|
10
|
-
* @returns One file map holding every layer's files.
|
|
11
|
-
* @throws When two layers supply the same path, naming it.
|
|
12
|
-
*
|
|
13
|
-
* @evidence contracts/development/implementation.md#principled-implementation Own-property lookup on the null-prototype result detects a repeated path exactly, and `Object.defineProperty` stores every key as data.
|
|
14
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One owner composes layers for both a single production and a workspace root.
|
|
15
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A shared path is refused rather than resolved by layer order, so no layer silently overrides another.
|
|
16
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the refusal, the null prototype and the input order.
|
|
17
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One pass over every layer's entries with constant-time membership checks.
|
|
18
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call joins distinct layers once.
|
|
19
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The result references the layers' strings without copying them and is owned by the caller.
|
|
20
|
-
*/
|
|
21
|
-
const mergeScaffoldFiles = (...layers) => {
|
|
22
|
-
const files = Object.create(null);
|
|
23
|
-
for (const layer of layers)
|
|
24
|
-
for (const [relative, content] of Object.entries(layer)) {
|
|
25
|
-
if (Object.prototype.hasOwnProperty.call(files, relative))
|
|
26
|
-
throw new Error(`scaffold layers collide at "${relative}"`);
|
|
27
|
-
Object.defineProperty(files, relative, {
|
|
28
|
-
configurable: true,
|
|
29
|
-
enumerable: true,
|
|
30
|
-
value: content,
|
|
31
|
-
writable: true,
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
return files;
|
|
35
|
-
};
|
|
36
|
-
exports.mergeScaffoldFiles = mergeScaffoldFiles;
|
|
37
|
-
//# sourceMappingURL=mergeScaffoldFiles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mergeScaffoldFiles.js","sourceRoot":"","sources":["../src/mergeScaffoldFiles.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,kBAAkB,GAED,CAC5B,GAAG,MAAmD,EAC9B,EAAE;IAC1B,MAAM,KAAK,GAA2B,MAAM,CAAC,MAAM,CAAC,IAAI,CAGvD,CAAC;IACF,KAAK,MAAM,KAAK,IAAI,MAAM;QACxB,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACxD,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC;gBACvD,MAAM,IAAI,KAAK,CAAC,+BAA+B,QAAQ,GAAG,CAAC,CAAC;YAC9D,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,QAAQ,EAAE;gBACrC,YAAY,EAAE,IAAI;gBAClB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,IAAI;aACf,CAAC,CAAC;QACL,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AArBW,QAAA,kBAAkB,GAAlB,kBAAkB,CAqB7B"}
|
package/lib/missingPath.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Whether an I/O failure denotes a missing path or a non-directory ancestor, the only cases scaffold directory creation may treat as absent.
|
|
3
|
-
*
|
|
4
|
-
* @evidence contracts/development/implementation.md#principled-implementation Only ENOENT and ENOTDIR denote an absent level for the scaffold directory walk.
|
|
5
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One error-code predicate keeps missing-path admission identical in root, descendant and resident-file handling.
|
|
6
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Permission, I/O and other failures remain failures instead of being treated as permission to create.
|
|
7
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment names both accepted codes and the limited directory-creation interpretation.
|
|
8
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two error-code comparisons take fixed work without traversing a path or its contents.
|
|
9
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Separate errors are separate observations and this scalar predicate caches no result.
|
|
10
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The supplied error is read for the call and no handle or retained state is acquired.
|
|
11
|
-
*/
|
|
12
|
-
export declare const missingPath: (error: unknown) => boolean;
|
package/lib/missingPath.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.missingPath = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Whether an I/O failure denotes a missing path or a non-directory ancestor, the only cases scaffold directory creation may treat as absent.
|
|
6
|
-
*
|
|
7
|
-
* @evidence contracts/development/implementation.md#principled-implementation Only ENOENT and ENOTDIR denote an absent level for the scaffold directory walk.
|
|
8
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One error-code predicate keeps missing-path admission identical in root, descendant and resident-file handling.
|
|
9
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Permission, I/O and other failures remain failures instead of being treated as permission to create.
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment names both accepted codes and the limited directory-creation interpretation.
|
|
11
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two error-code comparisons take fixed work without traversing a path or its contents.
|
|
12
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Separate errors are separate observations and this scalar predicate caches no result.
|
|
13
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The supplied error is read for the call and no handle or retained state is acquired.
|
|
14
|
-
*/
|
|
15
|
-
const missingPath = (error) => error.code === "ENOENT" ||
|
|
16
|
-
error.code === "ENOTDIR";
|
|
17
|
-
exports.missingPath = missingPath;
|
|
18
|
-
//# sourceMappingURL=missingPath.js.map
|
package/lib/missingPath.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"missingPath.js","sourceRoot":"","sources":["../src/missingPath.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACI,MAAM,WAAW,GAAgC,CACtD,KAAc,EACL,EAAE,CACV,KAA+B,CAAC,IAAI,KAAK,QAAQ;IACjD,KAA+B,CAAC,IAAI,KAAK,SAAS,CAAC;AAJzC,QAAA,WAAW,GAAX,WAAW,CAI8B"}
|
package/lib/nativeError.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Preserve a native operation's context and numeric error code in one ordinary Error; this formatter owns no handle.
|
|
3
|
-
*
|
|
4
|
-
* @evidence contracts/development/implementation.md#principled-implementation An ordinary Error preserves the native operation label and numeric error code for the publication cause chain.
|
|
5
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Both native adapters share one message representation rather than different error-code string formats.
|
|
6
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The native code is reported as observed and is not reclassified as a successful or clean publication.
|
|
7
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states message context, numeric native code and lack of handle ownership.
|
|
8
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One message interpolation and Error allocation cost the label length plus runtime-dependent stack capture.
|
|
9
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Every failed native call receives its own error; effectful calls and their failures are never shared.
|
|
10
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The receiver owns the returned error and its lifetime; this formatter opens no native resource.
|
|
11
|
-
*/
|
|
12
|
-
export declare const nativeError: (message: string, code: number) => Error;
|
package/lib/nativeError.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nativeError = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Preserve a native operation's context and numeric error code in one ordinary Error; this formatter owns no handle.
|
|
6
|
-
*
|
|
7
|
-
* @evidence contracts/development/implementation.md#principled-implementation An ordinary Error preserves the native operation label and numeric error code for the publication cause chain.
|
|
8
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Both native adapters share one message representation rather than different error-code string formats.
|
|
9
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The native code is reported as observed and is not reclassified as a successful or clean publication.
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states message context, numeric native code and lack of handle ownership.
|
|
11
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One message interpolation and Error allocation cost the label length plus runtime-dependent stack capture.
|
|
12
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Every failed native call receives its own error; effectful calls and their failures are never shared.
|
|
13
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The receiver owns the returned error and its lifetime; this formatter opens no native resource.
|
|
14
|
-
*/
|
|
15
|
-
const nativeError = (message, code) => new Error(`${message} (native code ${code})`);
|
|
16
|
-
exports.nativeError = nativeError;
|
|
17
|
-
//# sourceMappingURL=nativeError.js.map
|
package/lib/nativeError.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nativeError.js","sourceRoot":"","sources":["../src/nativeError.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACI,MAAM,WAAW,GAA6C,CACnE,OAAe,EACf,IAAY,EACL,EAAE,CAAC,IAAI,KAAK,CAAC,GAAG,OAAO,iBAAiB,IAAI,GAAG,CAAC,CAAC;AAH7C,QAAA,WAAW,GAAX,WAAW,CAGkC"}
|
package/lib/openPosixParent.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type IBoundParent } from "./IBoundParent";
|
|
2
|
-
/**
|
|
3
|
-
* Open one POSIX directory with directory, no-follow and close-on-exec flags; create and reopen children relative to its held descriptor, which the publication coordinator closes.
|
|
4
|
-
*
|
|
5
|
-
* @evidence contracts/development/implementation.md#principled-implementation open with directory, no-follow and close-on-exec flags holds the parent; openat creates and verifies children relative to that descriptor.
|
|
6
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One adapter lowers the common parent and child contracts to POSIX descriptors while shared publication owns sequencing.
|
|
7
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Existing child slots and final symlinks refuse through exclusive no-follow opening; there is no absolute-child retry.
|
|
8
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states held-parent operations and coordinator-owned closing, and the shared interfaces document byte and failure semantics.
|
|
9
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Opening binds a fixed libc call set on first use and performs one parent open; each child operation issues its corresponding bounded syscall or stat.
|
|
10
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The libc binding record is reused for one process ABI; parent and child opens remain separate effects and are never shared.
|
|
11
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned parent owns one descriptor until its coordinator closes it; child descriptors are transferred in create/reopen results, and the lazy libc binding lasts for the process.
|
|
12
|
-
*/
|
|
13
|
-
export declare const openPosixParent: (parentPath: string) => IBoundParent;
|
package/lib/openPosixParent.js
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.openPosixParent = void 0;
|
|
40
|
-
const koffi_1 = __importDefault(require("koffi"));
|
|
41
|
-
const fs = __importStar(require("node:fs"));
|
|
42
|
-
const ScaffoldParentChangedError_1 = require("./ScaffoldParentChangedError");
|
|
43
|
-
const nativeError_1 = require("./nativeError");
|
|
44
|
-
const resolveScaffoldPosixConstants_1 = require("./resolveScaffoldPosixConstants");
|
|
45
|
-
const scaffoldPhysicalIdentity_1 = require("./scaffoldPhysicalIdentity");
|
|
46
|
-
/**
|
|
47
|
-
* Open one POSIX directory with directory, no-follow and close-on-exec flags; create and reopen children relative to its held descriptor, which the publication coordinator closes.
|
|
48
|
-
*
|
|
49
|
-
* @evidence contracts/development/implementation.md#principled-implementation open with directory, no-follow and close-on-exec flags holds the parent; openat creates and verifies children relative to that descriptor.
|
|
50
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One adapter lowers the common parent and child contracts to POSIX descriptors while shared publication owns sequencing.
|
|
51
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Existing child slots and final symlinks refuse through exclusive no-follow opening; there is no absolute-child retry.
|
|
52
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states held-parent operations and coordinator-owned closing, and the shared interfaces document byte and failure semantics.
|
|
53
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Opening binds a fixed libc call set on first use and performs one parent open; each child operation issues its corresponding bounded syscall or stat.
|
|
54
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The libc binding record is reused for one process ABI; parent and child opens remain separate effects and are never shared.
|
|
55
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned parent owns one descriptor until its coordinator closes it; child descriptors are transferred in create/reopen results, and the lazy libc binding lasts for the process.
|
|
56
|
-
*/
|
|
57
|
-
const openPosixParent = (parentPath) => {
|
|
58
|
-
const library = loadPosixLibrary();
|
|
59
|
-
const flags = library.constants;
|
|
60
|
-
const descriptor = library.open(parentPath, flags.O_RDONLY | flags.O_DIRECTORY | flags.O_NOFOLLOW | flags.O_CLOEXEC, 0);
|
|
61
|
-
if (descriptor < 0) {
|
|
62
|
-
const code = koffi_1.default.errno();
|
|
63
|
-
const error = (0, nativeError_1.nativeError)("unable to open scaffold parent", code);
|
|
64
|
-
if (code === koffi_1.default.os.errno.ENOENT ||
|
|
65
|
-
code === koffi_1.default.os.errno.ENOTDIR ||
|
|
66
|
-
code === koffi_1.default.os.errno.ELOOP)
|
|
67
|
-
throw new ScaffoldParentChangedError_1.ScaffoldParentChangedError(error.message);
|
|
68
|
-
throw error;
|
|
69
|
-
}
|
|
70
|
-
return {
|
|
71
|
-
close: () => fs.closeSync(descriptor),
|
|
72
|
-
createExclusive: (childName) => {
|
|
73
|
-
const child = library.openat(descriptor, childName, flags.O_RDWR |
|
|
74
|
-
flags.O_CREAT |
|
|
75
|
-
flags.O_EXCL |
|
|
76
|
-
flags.O_NOFOLLOW |
|
|
77
|
-
flags.O_CLOEXEC, 0o600);
|
|
78
|
-
if (child >= 0)
|
|
79
|
-
return { child: posixChild(child), status: "opened" };
|
|
80
|
-
const code = koffi_1.default.errno();
|
|
81
|
-
return {
|
|
82
|
-
error: (0, nativeError_1.nativeError)("unable to create scaffold child", code),
|
|
83
|
-
reason: code === koffi_1.default.os.errno.EEXIST
|
|
84
|
-
? "target-competitor"
|
|
85
|
-
: "create-failed",
|
|
86
|
-
status: "refused",
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
|
-
inspect: () => {
|
|
90
|
-
const status = fs.fstatSync(descriptor, {
|
|
91
|
-
bigint: true,
|
|
92
|
-
});
|
|
93
|
-
return {
|
|
94
|
-
directory: status.isDirectory(),
|
|
95
|
-
identity: (0, scaffoldPhysicalIdentity_1.scaffoldPhysicalIdentity)(status),
|
|
96
|
-
};
|
|
97
|
-
},
|
|
98
|
-
openResident: (childName) => {
|
|
99
|
-
const child = library.openat(descriptor, childName, flags.O_RDONLY | flags.O_NOFOLLOW | flags.O_CLOEXEC, 0);
|
|
100
|
-
if (child < 0)
|
|
101
|
-
throw (0, nativeError_1.nativeError)("unable to reopen scaffold child", koffi_1.default.errno());
|
|
102
|
-
return posixChild(child);
|
|
103
|
-
},
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
exports.openPosixParent = openPosixParent;
|
|
107
|
-
const posixChild = (descriptor) => ({
|
|
108
|
-
close: () => fs.closeSync(descriptor),
|
|
109
|
-
read: (target, offset, length, position) => fs.readSync(descriptor, target, offset, length, position),
|
|
110
|
-
status: () => {
|
|
111
|
-
const status = fs.fstatSync(descriptor, { bigint: true });
|
|
112
|
-
return {
|
|
113
|
-
link: status.isSymbolicLink(),
|
|
114
|
-
links: status.nlink,
|
|
115
|
-
regular: status.isFile(),
|
|
116
|
-
size: status.size,
|
|
117
|
-
version: `${(0, scaffoldPhysicalIdentity_1.scaffoldPhysicalIdentity)(status)}:${status.size}:${status.mtimeNs}`,
|
|
118
|
-
};
|
|
119
|
-
},
|
|
120
|
-
sync: () => fs.fsyncSync(descriptor),
|
|
121
|
-
write: (source, offset, length, position) => fs.writeSync(descriptor, source, offset, length, position),
|
|
122
|
-
});
|
|
123
|
-
let posixLibrary;
|
|
124
|
-
/** Bind `open` and `openat` from the running process once, on first use. */
|
|
125
|
-
const loadPosixLibrary = () => (posixLibrary ??= createPosixLibrary());
|
|
126
|
-
const createPosixLibrary = () => {
|
|
127
|
-
const constants = (0, resolveScaffoldPosixConstants_1.resolveScaffoldPosixConstants)(process.platform, fs.constants);
|
|
128
|
-
const library = koffi_1.default.load(null);
|
|
129
|
-
return {
|
|
130
|
-
constants,
|
|
131
|
-
open: library.func("int open(const char *pathname, int flags, uint32_t mode)"),
|
|
132
|
-
openat: library.func("int openat(int directory, const char *pathname, int flags, uint32_t mode)"),
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
//# sourceMappingURL=openPosixParent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"openPosixParent.js","sourceRoot":"","sources":["../src/openPosixParent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAkD;AAClD,MAAY,EAAE,oCAAgB;AAQ9B,6EAA0E;AAC1E,+CAA4C;AAC5C,mFAAgF;AAChF,yEAAsE;AAEtE;;;;;;;;;;GAUG;AACI,MAAM,eAAe,GAAyC,CACnE,UAAkB,EACJ,EAAE;IAChB,MAAM,OAAO,GAAkB,gBAAgB,EAAE,CAAC;IAClD,MAAM,KAAK,GAA4B,OAAO,CAAC,SAAS,CAAC;IACzD,MAAM,UAAU,GAAW,OAAO,CAAC,IAAI,CACrC,UAAU,EACV,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,SAAS,EACvE,CAAC,CACF,CAAC;IACF,IAAI,UAAU,GAAG,CAAC,EAAE,CAAC;QACnB,MAAM,IAAI,GAAW,eAAK,CAAC,KAAK,EAAE,CAAC;QACnC,MAAM,KAAK,GAAU,IAAA,yBAAW,EAAC,gCAAgC,EAAE,IAAI,CAAC,CAAC;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AO,EAAE;SAChF,CAAC;IACJ,CAAC;IACD,IAAI,EAAE,GAAS,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC;IAC1C,KAAK,EAAE,CACL,MAAc,EACd,MAAc,EACd,MAAc,EACd,QAAgB,EACR,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;CACxE,CAAC,CAAC;AAcH,IAAI,YAAuC,CAAC;AAE5C,4EAA4E;AAC5E,MAAM,gBAAgB,GAAwB,GAAkB,EAAE,CAChE,CAAC,YAAY,KAAK,kBAAkB,EAAE,CAAC,CAAC;AAE1C,MAAM,kBAAkB,GAAwB,GAAkB,EAAE;IAClE,MAAM,SAAS,GAA4B,IAAA,6DAA6B,EACtE,OAAO,CAAC,QAAQ,EAChB,EAAE,CAAC,SAAS,CACb,CAAC;IACF,MAAM,OAAO,GAAkB,eAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChD,OAAO;QACL,SAAS;QACT,IAAI,EAAE,OAAO,CAAC,IAAI,CAChB,0DAA0D,CAClC;QAC1B,MAAM,EAAE,OAAO,CAAC,IAAI,CAClB,2EAA2E,CACjD;KAC7B,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type IBoundParent } from "./IBoundParent";
|
|
2
|
-
/**
|
|
3
|
-
* Open a Windows directory without following its final reparse point and return held-parent child operations; the publication coordinator owns closing the parent and each child.
|
|
4
|
-
*
|
|
5
|
-
* @evidence contracts/development/implementation.md#principled-implementation CreateFileW opens the non-followed parent, and NtCreateFile uses its RootDirectory with FILE_CREATE or FILE_OPEN for child operations.
|
|
6
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The Windows adapter retains raw HANDLEs and supplies the same parent/child contract as POSIX without introducing a CRT descriptor conversion.
|
|
7
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A collision is a no-slot refusal, while a successful create with an unusable handle remains partial; no cleanup or pathname retry hides either effect.
|
|
8
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states final-reparse handling, parent-relative operations and coordinator release ownership.
|
|
9
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Parent opening and each child operation use a fixed number of native calls; byte transfers remain proportional to the requested slice.
|
|
10
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The native ABI bindings are shared through the lazy loader, while every parent and child HANDLE represents a separate unshared open effect.
|
|
11
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The parent HANDLE and returned child HANDLEs transfer to the publication coordinator for closing; native errors before a child exists retain no child handle.
|
|
12
|
-
*/
|
|
13
|
-
export declare const openWindowsParent: (parentPath: string) => IBoundParent;
|
package/lib/openWindowsParent.js
DELETED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.openWindowsParent = void 0;
|
|
40
|
-
const koffi_1 = __importDefault(require("koffi"));
|
|
41
|
-
const path = __importStar(require("node:path"));
|
|
42
|
-
const FILE_ATTRIBUTE_DIRECTORY_1 = require("./FILE_ATTRIBUTE_DIRECTORY");
|
|
43
|
-
const ScaffoldParentChangedError_1 = require("./ScaffoldParentChangedError");
|
|
44
|
-
const loadWindowsLibrary_1 = require("./loadWindowsLibrary");
|
|
45
|
-
const nativeError_1 = require("./nativeError");
|
|
46
|
-
/** The create reserved the child slot but returned no usable handle. */
|
|
47
|
-
class ScaffoldCreatedSlotError extends Error {
|
|
48
|
-
constructor(message, options) {
|
|
49
|
-
super(message, options);
|
|
50
|
-
this.name = "ScaffoldCreatedSlotError";
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
// Windows SDK access rights, share modes, dispositions, options, attributes,
|
|
54
|
-
// and codes, named as in `winnt.h`, `winbase.h`, `winternl.h`, and `ntstatus.h`.
|
|
55
|
-
const FILE_READ_DATA = 0x1;
|
|
56
|
-
const FILE_WRITE_DATA = 0x2;
|
|
57
|
-
const FILE_READ_ATTRIBUTES = 0x80;
|
|
58
|
-
const FILE_WRITE_ATTRIBUTES = 0x100;
|
|
59
|
-
const SYNCHRONIZE = 0x00100000;
|
|
60
|
-
const FILE_SHARE_READ = 0x1;
|
|
61
|
-
const FILE_SHARE_WRITE = 0x2;
|
|
62
|
-
const FILE_SHARE_DELETE = 0x4;
|
|
63
|
-
const OPEN_EXISTING = 3;
|
|
64
|
-
const FILE_FLAG_BACKUP_SEMANTICS = 0x02000000;
|
|
65
|
-
const FILE_FLAG_OPEN_REPARSE_POINT = 0x00200000;
|
|
66
|
-
const OBJ_CASE_INSENSITIVE = 0x40;
|
|
67
|
-
const FILE_ATTRIBUTE_NORMAL = 0x80;
|
|
68
|
-
const FILE_ATTRIBUTE_REPARSE_POINT = 0x400;
|
|
69
|
-
const FILE_OPEN = 1;
|
|
70
|
-
const FILE_CREATE = 2;
|
|
71
|
-
const FILE_SYNCHRONOUS_IO_NONALERT = 0x20;
|
|
72
|
-
const FILE_NON_DIRECTORY_FILE = 0x40;
|
|
73
|
-
const FILE_OPEN_REPARSE_POINT = 0x00200000;
|
|
74
|
-
const ERROR_FILE_NOT_FOUND = 2;
|
|
75
|
-
const ERROR_PATH_NOT_FOUND = 3;
|
|
76
|
-
const ERROR_NOT_A_REPARSE_POINT = 4390;
|
|
77
|
-
const STATUS_OBJECT_NAME_COLLISION = 0xc0000035 | 0;
|
|
78
|
-
/**
|
|
79
|
-
* Open a Windows directory without following its final reparse point and return held-parent child operations; the publication coordinator owns closing the parent and each child.
|
|
80
|
-
*
|
|
81
|
-
* @evidence contracts/development/implementation.md#principled-implementation CreateFileW opens the non-followed parent, and NtCreateFile uses its RootDirectory with FILE_CREATE or FILE_OPEN for child operations.
|
|
82
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The Windows adapter retains raw HANDLEs and supplies the same parent/child contract as POSIX without introducing a CRT descriptor conversion.
|
|
83
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A collision is a no-slot refusal, while a successful create with an unusable handle remains partial; no cleanup or pathname retry hides either effect.
|
|
84
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states final-reparse handling, parent-relative operations and coordinator release ownership.
|
|
85
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Parent opening and each child operation use a fixed number of native calls; byte transfers remain proportional to the requested slice.
|
|
86
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The native ABI bindings are shared through the lazy loader, while every parent and child HANDLE represents a separate unshared open effect.
|
|
87
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The parent HANDLE and returned child HANDLEs transfer to the publication coordinator for closing; native errors before a child exists retain no child handle.
|
|
88
|
-
*/
|
|
89
|
-
const openWindowsParent = (parentPath) => {
|
|
90
|
-
const windows = (0, loadWindowsLibrary_1.loadWindowsLibrary)();
|
|
91
|
-
const raw = windows.createFile(path.toNamespacedPath(parentPath), SYNCHRONIZE | FILE_READ_ATTRIBUTES | FILE_READ_DATA, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, null, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OPEN_REPARSE_POINT, null);
|
|
92
|
-
if (invalidWindowsHandle(raw, windows.handleType)) {
|
|
93
|
-
const code = windows.getLastError();
|
|
94
|
-
if (code === ERROR_FILE_NOT_FOUND ||
|
|
95
|
-
code === ERROR_PATH_NOT_FOUND ||
|
|
96
|
-
code === ERROR_NOT_A_REPARSE_POINT)
|
|
97
|
-
throw new ScaffoldParentChangedError_1.ScaffoldParentChangedError((0, nativeError_1.nativeError)("unable to open scaffold parent", code).message);
|
|
98
|
-
throw (0, nativeError_1.nativeError)("unable to open scaffold parent", code);
|
|
99
|
-
}
|
|
100
|
-
const openChild = (childName, disposition) => {
|
|
101
|
-
const nameBytes = Buffer.from(`${childName}\0`, "utf16le");
|
|
102
|
-
const output = [null];
|
|
103
|
-
// The exclusive create holds read and write access and lets a later
|
|
104
|
-
// reader share the file; a resident reopen asks for read access only and
|
|
105
|
-
// tolerates the still-open writer, so the pre-close identity check does
|
|
106
|
-
// not trip a sharing violation on itself.
|
|
107
|
-
const creating = disposition === FILE_CREATE;
|
|
108
|
-
const status = windows.ntCreateFile(output, creating
|
|
109
|
-
? SYNCHRONIZE |
|
|
110
|
-
FILE_READ_ATTRIBUTES |
|
|
111
|
-
FILE_WRITE_ATTRIBUTES |
|
|
112
|
-
FILE_READ_DATA |
|
|
113
|
-
FILE_WRITE_DATA
|
|
114
|
-
: SYNCHRONIZE | FILE_READ_ATTRIBUTES | FILE_READ_DATA, {
|
|
115
|
-
Attributes: OBJ_CASE_INSENSITIVE,
|
|
116
|
-
Length: koffi_1.default.sizeof(windows.objectAttributesType),
|
|
117
|
-
ObjectName: {
|
|
118
|
-
Buffer: nameBytes,
|
|
119
|
-
Length: nameBytes.length - 2,
|
|
120
|
-
MaximumLength: nameBytes.length,
|
|
121
|
-
},
|
|
122
|
-
RootDirectory: raw,
|
|
123
|
-
SecurityDescriptor: null,
|
|
124
|
-
SecurityQualityOfService: null,
|
|
125
|
-
}, { Information: 0n, Status: 0n }, null, FILE_ATTRIBUTE_NORMAL, creating ? FILE_SHARE_READ : FILE_SHARE_READ | FILE_SHARE_WRITE, disposition, FILE_OPEN_REPARSE_POINT |
|
|
126
|
-
FILE_SYNCHRONOUS_IO_NONALERT |
|
|
127
|
-
FILE_NON_DIRECTORY_FILE, null, 0);
|
|
128
|
-
if (status < 0)
|
|
129
|
-
return { status };
|
|
130
|
-
const childRaw = output[0];
|
|
131
|
-
if (invalidWindowsHandle(childRaw, windows.handleType)) {
|
|
132
|
-
const error = new Error("native create returned an invalid scaffold child");
|
|
133
|
-
// A successful create that yields no usable handle has still reserved
|
|
134
|
-
// the slot, so the caller learns about a created slot, not a clean miss.
|
|
135
|
-
if (creating)
|
|
136
|
-
throw new ScaffoldCreatedSlotError("scaffold slot was created before its handle could be bound", { cause: error });
|
|
137
|
-
throw error;
|
|
138
|
-
}
|
|
139
|
-
return { handle: childRaw, status };
|
|
140
|
-
};
|
|
141
|
-
return {
|
|
142
|
-
close: () => {
|
|
143
|
-
if (windows.closeHandle(raw) === false)
|
|
144
|
-
throw (0, nativeError_1.nativeError)("unable to close scaffold parent", windows.getLastError());
|
|
145
|
-
},
|
|
146
|
-
createExclusive: (childName) => {
|
|
147
|
-
let created;
|
|
148
|
-
try {
|
|
149
|
-
created = openChild(childName, FILE_CREATE);
|
|
150
|
-
}
|
|
151
|
-
catch (error) {
|
|
152
|
-
if (error instanceof ScaffoldCreatedSlotError)
|
|
153
|
-
return { error, status: "partial" };
|
|
154
|
-
return { error, reason: "create-failed", status: "refused" };
|
|
155
|
-
}
|
|
156
|
-
if (created.handle !== undefined)
|
|
157
|
-
return {
|
|
158
|
-
child: windowsChild(windows, created.handle),
|
|
159
|
-
status: "opened",
|
|
160
|
-
};
|
|
161
|
-
return {
|
|
162
|
-
error: (0, nativeError_1.nativeError)("unable to create scaffold child", created.status),
|
|
163
|
-
reason: created.status === STATUS_OBJECT_NAME_COLLISION
|
|
164
|
-
? "target-competitor"
|
|
165
|
-
: "create-failed",
|
|
166
|
-
status: "refused",
|
|
167
|
-
};
|
|
168
|
-
},
|
|
169
|
-
inspect: () => windows.inspectParent(raw),
|
|
170
|
-
openResident: (childName) => {
|
|
171
|
-
const opened = openChild(childName, FILE_OPEN);
|
|
172
|
-
if (opened.handle === undefined)
|
|
173
|
-
throw (0, nativeError_1.nativeError)("unable to reopen scaffold child", opened.status);
|
|
174
|
-
return windowsChild(windows, opened.handle);
|
|
175
|
-
},
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
exports.openWindowsParent = openWindowsParent;
|
|
179
|
-
const windowsChild = (windows, handle) => {
|
|
180
|
-
const seek = (position) => {
|
|
181
|
-
if (windows.setFilePointer(handle, position) === false)
|
|
182
|
-
throw (0, nativeError_1.nativeError)("unable to position scaffold child", windows.getLastError());
|
|
183
|
-
};
|
|
184
|
-
return {
|
|
185
|
-
close: () => {
|
|
186
|
-
if (windows.closeHandle(handle) === false)
|
|
187
|
-
throw (0, nativeError_1.nativeError)("unable to close scaffold child", windows.getLastError());
|
|
188
|
-
},
|
|
189
|
-
read: (target, offset, length, position) => {
|
|
190
|
-
seek(position);
|
|
191
|
-
const read = windows.readFile(handle, target.subarray(offset, offset + length), length);
|
|
192
|
-
if (read === null)
|
|
193
|
-
throw (0, nativeError_1.nativeError)("unable to read scaffold child", windows.getLastError());
|
|
194
|
-
return read;
|
|
195
|
-
},
|
|
196
|
-
status: () => {
|
|
197
|
-
const information = windows.inspectFile(handle);
|
|
198
|
-
const reparse = (information.attributes & FILE_ATTRIBUTE_REPARSE_POINT) !== 0;
|
|
199
|
-
return {
|
|
200
|
-
link: reparse,
|
|
201
|
-
links: BigInt(information.links),
|
|
202
|
-
regular: reparse === false &&
|
|
203
|
-
(information.attributes & FILE_ATTRIBUTE_DIRECTORY_1.FILE_ATTRIBUTE_DIRECTORY) === 0,
|
|
204
|
-
size: information.size,
|
|
205
|
-
version: `${information.identity}:${information.size}:${information.lastWrite}`,
|
|
206
|
-
};
|
|
207
|
-
},
|
|
208
|
-
sync: () => {
|
|
209
|
-
if (windows.flushFileBuffers(handle) === false)
|
|
210
|
-
throw (0, nativeError_1.nativeError)("unable to flush scaffold child", windows.getLastError());
|
|
211
|
-
},
|
|
212
|
-
write: (source, offset, length, position) => {
|
|
213
|
-
seek(position);
|
|
214
|
-
const written = windows.writeFile(handle, source.subarray(offset, offset + length), length);
|
|
215
|
-
if (written === null)
|
|
216
|
-
throw (0, nativeError_1.nativeError)("unable to write scaffold child", windows.getLastError());
|
|
217
|
-
return written;
|
|
218
|
-
},
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
/** Null, or `INVALID_HANDLE_VALUE` (all bits set) at the handle's width. */
|
|
222
|
-
const invalidWindowsHandle = (handle, handleType) => handle === null ||
|
|
223
|
-
BigInt.asIntN(koffi_1.default.sizeof(handleType) * 8, koffi_1.default.address(handle)) === -1n;
|
|
224
|
-
//# sourceMapping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,CAAC,EAAE,eAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type IScaffoldFileSnapshot } from "./IScaffoldFileSnapshot";
|
|
2
|
-
import { type IScaffoldPhysicalDirectory } from "./IScaffoldPhysicalDirectory";
|
|
3
|
-
import { type ScaffoldFilePublicationOutcome } from "./ScaffoldFilePublicationOutcome";
|
|
4
|
-
/**
|
|
5
|
-
* Replace one existing ordinary single-link scaffold file in place.
|
|
6
|
-
*
|
|
7
|
-
* The link count is read from the descriptor this operation writes through rather than from a pathname stat, so the decision and the write look at the same file. Rewriting the inode is admissible only while exactly one entry names it, because every other name would observe the write.
|
|
8
|
-
*
|
|
9
|
-
* @evidence contracts/development/implementation.md#principled-implementation One ordinary single-link file descriptor is verified against pathname generations before truncation, after write/readback and after close.
|
|
10
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The replacement owner groups positioned writing and resident verification while shared ownership and snapshot helpers define identity.
|
|
11
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No retry or deletion hides a failed replacement; pre-truncation failures refuse and post-truncation failures retain partial bytes. A concurrent new hard link after the link-count check remains the documented limitation.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states in-place semantics, descriptor-based link admission and effects on other names of the inode.
|
|
13
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One full write and readback are linear in bytes, with a fixed number of stat and resident-open operations.
|
|
14
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Replacement is an effect that repeats per request; snapshots are fresh observations and no previous successful write is reused.
|
|
15
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The owner attempts writer and temporary resident descriptor close on every exit, combining close failures with earlier failures; failed close leaves actual release unproven. Readback storage is bounded by file bytes and released with the call.
|
|
16
|
-
*/
|
|
17
|
-
export declare const overwriteScaffoldFile: (props: {
|
|
18
|
-
base: IScaffoldPhysicalDirectory;
|
|
19
|
-
bytes: Uint8Array;
|
|
20
|
-
existing: IScaffoldFileSnapshot;
|
|
21
|
-
parent: IScaffoldPhysicalDirectory;
|
|
22
|
-
}) => ScaffoldFilePublicationOutcome;
|