@automovie/template 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -18
- package/generated/pnpm-workspace.json +54 -0
- package/{lib → generated}/skills/3d-modeling/conditioning.md +24 -27
- package/generated/skills/3d-modeling/crafting/SKILL.md +16 -0
- package/generated/skills/3d-modeling/crafting/construction.md +70 -0
- package/generated/skills/3d-modeling/crafting/lofting.md +73 -0
- package/generated/skills/3d-modeling/crafting/recovery.md +25 -0
- package/generated/skills/3d-modeling/diffusion/image-hints.md +30 -0
- package/generated/skills/3d-modeling/diffusion/models.md +27 -0
- package/generated/skills/3d-modeling/diffusion/prompts.md +9 -0
- package/generated/skills/3d-modeling/diffusion/request.md +16 -0
- package/generated/skills/3d-modeling/diffusion/shape-hints.md +31 -0
- package/generated/skills/3d-modeling/inspection.md +55 -0
- package/generated/skills/3d-modeling/modularization.md +25 -0
- package/{lib → generated}/skills/3d-modeling/rigging.md +21 -27
- package/{lib → generated}/skills/3d-modeling/sources.md +6 -6
- package/{lib → generated}/skills/contracts/development/design.md +2 -3
- package/{lib → generated}/skills/contracts/development/implementation.md +4 -4
- package/{lib → generated}/skills/contracts/development/testing.md +1 -1
- package/generated/skills/development/repair.md +13 -0
- package/{lib → generated}/skills/documentation/SKILL.md +2 -8
- package/generated/skills/documentation/writing.md +63 -0
- package/{lib/skills/motion → generated/skills/motion/laws}/authoring.md +13 -9
- package/{lib/skills/motion → generated/skills/motion/laws}/contacts.md +3 -1
- package/{lib/skills/motion/laws.md → generated/skills/motion/laws/declaration.md} +8 -8
- package/generated/skills/motion/laws/transitions.md +37 -0
- package/{lib/skills/motion → generated/skills/motion/laws}/variation.md +5 -5
- package/{lib/skills/motion → generated/skills/motion/laws}/verification.md +7 -13
- package/generated/skills/prompting/SKILL.md +82 -0
- package/{lib → generated}/skills/visual-debugging/capture.md +13 -11
- package/{lib → generated}/skills/visual-debugging/comparison.md +7 -9
- package/{lib → generated}/skills/visual-debugging/correction-rounds.md +13 -13
- package/{lib → generated}/skills/visual-debugging/passes.md +9 -9
- package/lib/IAutoMovieScaffoldProps.d.ts +14 -6
- package/lib/assertScaffoldProjectName.d.ts +1 -1
- package/lib/assertScaffoldProjectName.js +1 -1
- package/lib/createAutoMovieScaffold.d.ts +27 -0
- package/lib/createAutoMovieScaffold.js +145 -0
- package/lib/createAutoMovieScaffold.js.map +1 -0
- package/lib/index.d.ts +1 -45
- package/lib/index.js +1 -45
- package/lib/index.js.map +1 -1
- package/lib/listAutoMovieScaffoldFiles.d.ts +2 -2
- package/lib/listAutoMovieScaffoldFiles.js +2 -2
- package/package.json +9 -12
- package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +14 -11
- package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +7 -9
- package/scaffold/instructions/.agents/skills/3d-modeling/diffusion/SKILL.md +20 -0
- package/scaffold/instructions/.agents/skills/audio/SKILL.md +10 -21
- package/scaffold/instructions/.agents/skills/audio/acquisition.md +24 -12
- package/scaffold/instructions/.agents/skills/audio/film-sound.md +25 -0
- package/scaffold/instructions/.agents/skills/audio/generated-sound.md +15 -0
- package/scaffold/instructions/.agents/skills/audio/sound-effects.md +11 -17
- package/scaffold/instructions/.agents/skills/audio/soundtrack.md +5 -0
- package/scaffold/instructions/.agents/skills/contracts/SKILL.md +10 -16
- package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +5 -7
- package/scaffold/instructions/.agents/skills/contracts/development/composition.md +12 -8
- package/scaffold/instructions/.agents/skills/contracts/development/entities.md +7 -6
- package/scaffold/instructions/.agents/skills/contracts/development/statements/behaviors.md +20 -20
- package/scaffold/instructions/.agents/skills/contracts/development/statements/composition.md +18 -16
- package/scaffold/instructions/.agents/skills/contracts/development/statements/entities.md +13 -12
- package/scaffold/instructions/.agents/skills/contracts/story/SKILL.md +13 -15
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/brief.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/common.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/narratives.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/screenplay.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/scripts.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/settings.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/treatments.md +1 -1
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/common.md +6 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/common.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/realized.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/scripts.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/realized.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/brief.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/common.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/index.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/narratives.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/review.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/screenplay.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/scripts.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/settings.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/treatments.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/brief.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/common.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/index.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/narratives.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/realized.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/research.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/review.md +5 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/screenplay.md +5 -9
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/scripts.md +3 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/settings.md +2 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/treatments.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/brief.md +4 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/common.md +7 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/narratives.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/screenplay.md +3 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/scripts.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/settings.md +5 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/treatments.md +2 -2
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/common.md +37 -44
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/common.md +7 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/realized.md +4 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/scripts.md +5 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/realized.md +12 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/brief.md +12 -12
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/common.md +16 -16
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/index.md +7 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/narratives.md +14 -14
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/review.md +16 -20
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/screenplay.md +7 -10
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/scripts.md +5 -6
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/settings.md +29 -22
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/treatments.md +13 -15
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/brief.md +9 -17
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/common.md +4 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/index.md +8 -7
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/narratives.md +29 -25
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/realized.md +11 -10
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/research.md +18 -18
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/review.md +13 -25
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/screenplay.md +41 -45
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/scripts.md +16 -16
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/settings.md +8 -24
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/treatments.md +12 -17
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/screenplay.md +7 -8
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/scripts.md +4 -5
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/treatments.md +3 -4
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/screenplay.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/scripts.md +3 -3
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/treatments.md +3 -3
- package/scaffold/instructions/.agents/skills/development/SKILL.md +5 -7
- package/scaffold/instructions/.agents/skills/development/entities.md +20 -20
- package/scaffold/instructions/.agents/skills/development/reuse.md +19 -18
- package/scaffold/instructions/.agents/skills/development/source-layout.md +32 -24
- package/scaffold/instructions/.agents/skills/development/testing.md +13 -10
- package/scaffold/instructions/.agents/skills/direct-film/SKILL.md +51 -0
- package/scaffold/instructions/.agents/skills/evidence/SKILL.md +1 -1
- package/scaffold/instructions/.agents/skills/evidence/adoption.md +4 -4
- package/scaffold/instructions/.agents/skills/evidence/answering.md +2 -4
- package/scaffold/instructions/.agents/skills/evidence/configuration.md +8 -8
- package/scaffold/instructions/.agents/skills/image/SKILL.md +16 -58
- package/scaffold/instructions/.agents/skills/image/canon-references.md +27 -0
- package/scaffold/instructions/.agents/skills/image/conditioning.md +27 -0
- package/scaffold/instructions/.agents/skills/image/consistency.md +23 -0
- package/scaffold/instructions/.agents/skills/image/editing.md +15 -0
- package/scaffold/instructions/.agents/skills/image/finishing.md +11 -0
- package/scaffold/instructions/.agents/skills/image/models.md +18 -0
- package/scaffold/instructions/.agents/skills/image/prompting.md +25 -0
- package/scaffold/instructions/.agents/skills/image/turnaround-views.md +13 -0
- package/scaffold/instructions/.agents/skills/motion/SKILL.md +31 -47
- package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +24 -4
- package/scaffold/instructions/.agents/skills/motion/compose/composition.md +58 -0
- package/scaffold/instructions/.agents/skills/motion/compose/refusals.md +15 -0
- package/scaffold/instructions/.agents/skills/motion/control-channels.md +20 -8
- package/scaffold/instructions/.agents/skills/motion/diffusion/SKILL.md +24 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/clips.md +17 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/hints.md +37 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/models.md +24 -0
- package/scaffold/instructions/.agents/skills/motion/diffusion/tracing.md +53 -0
- package/scaffold/instructions/.agents/skills/motion/frame-evaluation.md +8 -12
- package/scaffold/instructions/.agents/skills/motion/laws/$verification.md +0 -0
- package/scaffold/instructions/.agents/skills/motion/laws/SKILL.md +19 -0
- package/scaffold/instructions/.agents/skills/motion/laws/extension.md +35 -0
- package/scaffold/instructions/.agents/skills/motion/laws/method-references.md +21 -0
- package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +16 -16
- package/scaffold/instructions/.agents/skills/motion/retargeting.md +8 -10
- package/scaffold/instructions/.agents/skills/motion/segment-review.md +4 -6
- package/scaffold/instructions/.agents/skills/motion/staging.md +21 -13
- package/scaffold/instructions/.agents/skills/production/SKILL.md +19 -19
- package/scaffold/instructions/.agents/skills/production/assembly.md +14 -12
- package/scaffold/instructions/.agents/skills/production/captions.md +15 -0
- package/scaffold/instructions/.agents/skills/production/media-records.md +13 -12
- package/scaffold/instructions/.agents/skills/production/project-context.md +33 -12
- package/scaffold/instructions/.agents/skills/production/reorganization.md +13 -0
- package/scaffold/instructions/.agents/skills/production/stage-caches.md +11 -11
- package/scaffold/instructions/.agents/skills/production/sustained-runs.md +9 -9
- package/scaffold/instructions/.agents/skills/review/SKILL.md +3 -5
- package/scaffold/instructions/.agents/skills/review/delivery-review.md +25 -29
- package/scaffold/instructions/.agents/skills/review/estimation.md +10 -10
- package/scaffold/instructions/.agents/skills/review/independent-reading.md +10 -18
- package/scaffold/instructions/.agents/skills/review/narrative-rounds.md +10 -36
- package/scaffold/instructions/.agents/skills/review/source-review.md +6 -18
- package/scaffold/instructions/.agents/skills/story/SKILL.md +11 -11
- package/scaffold/instructions/.agents/skills/story/answers.md +27 -0
- package/scaffold/instructions/.agents/skills/story/correction/inspection.md +8 -12
- package/scaffold/instructions/.agents/skills/story/correction/repair.md +8 -12
- package/scaffold/instructions/.agents/skills/story/document-layout.md +9 -12
- package/scaffold/instructions/.agents/skills/story/layers/SKILL.md +10 -9
- package/scaffold/instructions/.agents/skills/story/layers/brief.md +7 -19
- package/scaffold/instructions/.agents/skills/story/layers/notation.md +25 -16
- package/scaffold/instructions/.agents/skills/story/layers/screenplay.md +23 -7
- package/scaffold/instructions/.agents/skills/story/layers/scripts.md +4 -4
- package/scaffold/instructions/.agents/skills/story/layers/settings.md +10 -16
- package/scaffold/instructions/.agents/skills/story/layers/shots.md +27 -0
- package/scaffold/instructions/.agents/skills/story/layers/treatments.md +4 -4
- package/scaffold/instructions/.agents/skills/story/planning/SKILL.md +4 -4
- package/scaffold/instructions/.agents/skills/story/planning/direction.md +4 -4
- package/scaffold/instructions/.agents/skills/story/planning/discovery.md +8 -7
- package/scaffold/instructions/.agents/skills/story/planning/requirements.md +11 -11
- package/scaffold/instructions/.agents/skills/story/planning/research.md +24 -11
- package/scaffold/instructions/.agents/skills/story/workflow/SKILL.md +14 -0
- package/scaffold/instructions/.agents/skills/story/workflow/long.md +38 -0
- package/scaffold/instructions/.agents/skills/story/workflow/routes.md +40 -0
- package/scaffold/instructions/.agents/skills/story/workflow/short.md +33 -0
- package/scaffold/instructions/.agents/skills/video/SKILL.md +12 -21
- package/scaffold/instructions/.agents/skills/video/diffusion/SKILL.md +21 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/continuity.md +21 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/hints.md +14 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/models.md +26 -0
- package/scaffold/instructions/.agents/skills/video/diffusion/prompts.md +45 -0
- package/scaffold/instructions/.agents/skills/video/finishing.md +44 -0
- package/scaffold/instructions/.agents/skills/video/generation.md +24 -13
- package/scaffold/instructions/.agents/skills/video/requests.md +46 -0
- package/scaffold/instructions/.agents/skills/visual-debugging/SKILL.md +5 -6
- package/scaffold/instructions/AGENTS.md +30 -56
- package/scaffold/production/PROJECT.md +1 -1
- package/scaffold/production/README.md +50 -96
- package/scaffold/production/_gitignore +1 -2
- package/scaffold/production/index.html +4 -8
- package/scaffold/production/lint.config.ts +1 -1
- package/scaffold/production/package.json +31 -31
- package/scaffold/production/src/IFilm.ts +3 -3
- package/scaffold/production/src/IFilmProduction.ts +16 -5
- package/scaffold/production/src/composition/films/index.ts +3 -2
- package/scaffold/production/src/composition/films/starter.ts +2 -2
- package/scaffold/production/src/main.ts +9 -195
- package/scaffold/production/src/markFilmProduction.ts +43 -0
- package/scaffold/production/src/selectFilm.ts +3 -5
- package/scaffold/production/src/subjects.ts +59 -0
- package/scaffold/production/vite.config.ts +4 -2
- package/scaffold/workspace/README.md +5 -7
- package/scaffold/workspace/package.json +1 -1
- package/src/IAutoMovieScaffoldProps.ts +15 -6
- package/src/assertScaffoldProjectName.ts +1 -1
- package/src/createAutoMovieScaffold.ts +152 -0
- package/src/index.ts +1 -46
- package/src/listAutoMovieScaffoldFiles.ts +2 -2
- package/build/resolveTemplateVersions.ts +0 -92
- package/build/syncScaffoldInstructions.ts +0 -28
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.d.ts +0 -14
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js +0 -52
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js.map +0 -1
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.d.ts +0 -2
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js +0 -42
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js.map +0 -1
- package/lib/AutoMovieScaffoldLayer.d.ts +0 -15
- package/lib/AutoMovieScaffoldLayer.js +0 -3
- package/lib/AutoMovieScaffoldLayer.js.map +0 -1
- package/lib/FILE_ATTRIBUTE_DIRECTORY.d.ts +0 -2
- package/lib/FILE_ATTRIBUTE_DIRECTORY.js +0 -6
- package/lib/FILE_ATTRIBUTE_DIRECTORY.js.map +0 -1
- package/lib/IAutoMovieCatalogVersionProps.d.ts +0 -16
- package/lib/IAutoMovieCatalogVersionProps.js +0 -3
- package/lib/IAutoMovieCatalogVersionProps.js.map +0 -1
- package/lib/IAutoMovieScaffoldSourceEntry.d.ts +0 -18
- package/lib/IAutoMovieScaffoldSourceEntry.js +0 -3
- package/lib/IAutoMovieScaffoldSourceEntry.js.map +0 -1
- package/lib/IAutoMovieTemplateDependencyVersionsProps.d.ts +0 -17
- package/lib/IAutoMovieTemplateDependencyVersionsProps.js +0 -3
- package/lib/IAutoMovieTemplateDependencyVersionsProps.js.map +0 -1
- package/lib/IAutoMovieWorkspacePackageVersions.d.ts +0 -34
- package/lib/IAutoMovieWorkspacePackageVersions.js +0 -3
- package/lib/IAutoMovieWorkspacePackageVersions.js.map +0 -1
- package/lib/IBoundChild.d.ts +0 -71
- package/lib/IBoundChild.js +0 -3
- package/lib/IBoundChild.js.map +0 -1
- package/lib/IBoundChildStatus.d.ts +0 -20
- package/lib/IBoundChildStatus.js +0 -3
- package/lib/IBoundChildStatus.js.map +0 -1
- package/lib/IBoundParent.d.ts +0 -61
- package/lib/IBoundParent.js +0 -3
- package/lib/IBoundParent.js.map +0 -1
- package/lib/IBoundParentStatus.d.ts +0 -14
- package/lib/IBoundParentStatus.js +0 -3
- package/lib/IBoundParentStatus.js.map +0 -1
- package/lib/ICreateResult.d.ts +0 -27
- package/lib/ICreateResult.js +0 -3
- package/lib/ICreateResult.js.map +0 -1
- package/lib/IScaffoldCompletedFilePublicationOutcome.d.ts +0 -16
- package/lib/IScaffoldCompletedFilePublicationOutcome.js +0 -3
- package/lib/IScaffoldCompletedFilePublicationOutcome.js.map +0 -1
- package/lib/IScaffoldCompletedPublication.d.ts +0 -15
- package/lib/IScaffoldCompletedPublication.js +0 -3
- package/lib/IScaffoldCompletedPublication.js.map +0 -1
- package/lib/IScaffoldFileSnapshot.d.ts +0 -24
- package/lib/IScaffoldFileSnapshot.js +0 -3
- package/lib/IScaffoldFileSnapshot.js.map +0 -1
- package/lib/IScaffoldParentPublicationRequest.d.ts +0 -26
- package/lib/IScaffoldParentPublicationRequest.js +0 -3
- package/lib/IScaffoldParentPublicationRequest.js.map +0 -1
- package/lib/IScaffoldPartialFilePublicationOutcome.d.ts +0 -22
- package/lib/IScaffoldPartialFilePublicationOutcome.js +0 -3
- package/lib/IScaffoldPartialFilePublicationOutcome.js.map +0 -1
- package/lib/IScaffoldPhysicalDirectory.d.ts +0 -20
- package/lib/IScaffoldPhysicalDirectory.js +0 -3
- package/lib/IScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/IScaffoldPosixConstants.d.ts +0 -24
- package/lib/IScaffoldPosixConstants.js +0 -3
- package/lib/IScaffoldPosixConstants.js.map +0 -1
- package/lib/IScaffoldPublicationEntry.d.ts +0 -20
- package/lib/IScaffoldPublicationEntry.js +0 -3
- package/lib/IScaffoldPublicationEntry.js.map +0 -1
- package/lib/IScaffoldPublicationFailure.d.ts +0 -18
- package/lib/IScaffoldPublicationFailure.js +0 -3
- package/lib/IScaffoldPublicationFailure.js.map +0 -1
- package/lib/IScaffoldPublicationOptions.d.ts +0 -17
- package/lib/IScaffoldPublicationOptions.js +0 -3
- package/lib/IScaffoldPublicationOptions.js.map +0 -1
- package/lib/IScaffoldPublicationReceipt.d.ts +0 -25
- package/lib/IScaffoldPublicationReceipt.js +0 -3
- package/lib/IScaffoldPublicationReceipt.js.map +0 -1
- package/lib/IScaffoldRefusedFilePublicationOutcome.d.ts +0 -18
- package/lib/IScaffoldRefusedFilePublicationOutcome.js +0 -3
- package/lib/IScaffoldRefusedFilePublicationOutcome.js.map +0 -1
- package/lib/IScaffoldSyncPlan.d.ts +0 -25
- package/lib/IScaffoldSyncPlan.js +0 -3
- package/lib/IScaffoldSyncPlan.js.map +0 -1
- package/lib/IScaffoldSyncProps.d.ts +0 -16
- package/lib/IScaffoldSyncProps.js +0 -3
- package/lib/IScaffoldSyncProps.js.map +0 -1
- package/lib/IWindowsFileInformation.d.ts +0 -20
- package/lib/IWindowsFileInformation.js +0 -3
- package/lib/IWindowsFileInformation.js.map +0 -1
- package/lib/IWindowsLibrary.d.ts +0 -127
- package/lib/IWindowsLibrary.js +0 -3
- package/lib/IWindowsLibrary.js.map +0 -1
- package/lib/SCAFFOLD_SYNC_STATE_FILE.d.ts +0 -4
- package/lib/SCAFFOLD_SYNC_STATE_FILE.js +0 -8
- package/lib/SCAFFOLD_SYNC_STATE_FILE.js.map +0 -1
- package/lib/ScaffoldFilePublicationOutcome.d.ts +0 -14
- package/lib/ScaffoldFilePublicationOutcome.js +0 -3
- package/lib/ScaffoldFilePublicationOutcome.js.map +0 -1
- package/lib/ScaffoldParentChangedError.d.ts +0 -11
- package/lib/ScaffoldParentChangedError.js +0 -19
- package/lib/ScaffoldParentChangedError.js.map +0 -1
- package/lib/ScaffoldPublicationError.d.ts +0 -17
- package/lib/ScaffoldPublicationError.js +0 -46
- package/lib/ScaffoldPublicationError.js.map +0 -1
- package/lib/assertOrdinaryFile.d.ts +0 -13
- package/lib/assertOrdinaryFile.js +0 -20
- package/lib/assertOrdinaryFile.js.map +0 -1
- package/lib/assertOrdinarySingleLinkFile.d.ts +0 -13
- package/lib/assertOrdinarySingleLinkFile.js +0 -22
- package/lib/assertOrdinarySingleLinkFile.js.map +0 -1
- package/lib/assertScaffoldOwnership.d.ts +0 -13
- package/lib/assertScaffoldOwnership.js +0 -24
- package/lib/assertScaffoldOwnership.js.map +0 -1
- package/lib/assertScaffoldPhysicalDirectory.d.ts +0 -16
- package/lib/assertScaffoldPhysicalDirectory.js +0 -26
- package/lib/assertScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/attachScaffoldSyncState.d.ts +0 -18
- package/lib/attachScaffoldSyncState.js +0 -30
- package/lib/attachScaffoldSyncState.js.map +0 -1
- package/lib/captureEmptyScaffoldPhysicalDirectory.d.ts +0 -13
- package/lib/captureEmptyScaffoldPhysicalDirectory.js +0 -69
- package/lib/captureEmptyScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/captureScaffoldFile.d.ts +0 -13
- package/lib/captureScaffoldFile.js +0 -67
- package/lib/captureScaffoldFile.js.map +0 -1
- package/lib/captureScaffoldPhysicalDirectory.d.ts +0 -13
- package/lib/captureScaffoldPhysicalDirectory.js +0 -63
- package/lib/captureScaffoldPhysicalDirectory.js.map +0 -1
- package/lib/combineScaffoldFailures.d.ts +0 -19
- package/lib/combineScaffoldFailures.js +0 -32
- package/lib/combineScaffoldFailures.js.map +0 -1
- package/lib/createAutoMovieCatalogVersionResolver.d.ts +0 -17
- package/lib/createAutoMovieCatalogVersionResolver.js +0 -64
- package/lib/createAutoMovieCatalogVersionResolver.js.map +0 -1
- package/lib/createScaffoldSyncState.d.ts +0 -12
- package/lib/createScaffoldSyncState.js +0 -26
- package/lib/createScaffoldSyncState.js.map +0 -1
- package/lib/createScaffoldVariables.d.ts +0 -25
- package/lib/createScaffoldVariables.js +0 -41
- package/lib/createScaffoldVariables.js.map +0 -1
- package/lib/ensureScaffoldBaseDirectory.d.ts +0 -19
- package/lib/ensureScaffoldBaseDirectory.js +0 -89
- package/lib/ensureScaffoldBaseDirectory.js.map +0 -1
- package/lib/ensureScaffoldFileDirectory.d.ts +0 -25
- package/lib/ensureScaffoldFileDirectory.js +0 -103
- package/lib/ensureScaffoldFileDirectory.js.map +0 -1
- package/lib/inside.d.ts +0 -12
- package/lib/inside.js +0 -57
- package/lib/inside.js.map +0 -1
- package/lib/isScaffoldInstruction.d.ts +0 -12
- package/lib/isScaffoldInstruction.js +0 -29
- package/lib/isScaffoldInstruction.js.map +0 -1
- package/lib/loadWindowsLibrary.d.ts +0 -13
- package/lib/loadWindowsLibrary.js +0 -180
- package/lib/loadWindowsLibrary.js.map +0 -1
- package/lib/mergeScaffoldFiles.d.ts +0 -18
- package/lib/mergeScaffoldFiles.js +0 -37
- package/lib/mergeScaffoldFiles.js.map +0 -1
- package/lib/missingPath.d.ts +0 -12
- package/lib/missingPath.js +0 -18
- package/lib/missingPath.js.map +0 -1
- package/lib/nativeError.d.ts +0 -12
- package/lib/nativeError.js +0 -17
- package/lib/nativeError.js.map +0 -1
- package/lib/openPosixParent.d.ts +0 -13
- package/lib/openPosixParent.js +0 -135
- package/lib/openPosixParent.js.map +0 -1
- package/lib/openWindowsParent.d.ts +0 -13
- package/lib/openWindowsParent.js +0 -224
- package/lib/openWindowsParent.js.map +0 -1
- package/lib/overwriteScaffoldFile.d.ts +0 -22
- package/lib/overwriteScaffoldFile.js +0 -214
- package/lib/overwriteScaffoldFile.js.map +0 -1
- package/lib/physicalDirectoryIdentity.d.ts +0 -15
- package/lib/physicalDirectoryIdentity.js +0 -65
- package/lib/physicalDirectoryIdentity.js.map +0 -1
- package/lib/physicalVersion.d.ts +0 -13
- package/lib/physicalVersion.js +0 -18
- package/lib/physicalVersion.js.map +0 -1
- package/lib/planScaffoldPublication.d.ts +0 -22
- package/lib/planScaffoldPublication.js +0 -100
- package/lib/planScaffoldPublication.js.map +0 -1
- package/lib/planScaffoldSync.d.ts +0 -14
- package/lib/planScaffoldSync.js +0 -102
- package/lib/planScaffoldSync.js.map +0 -1
- package/lib/publishFiles.d.ts +0 -23
- package/lib/publishFiles.js +0 -124
- package/lib/publishFiles.js.map +0 -1
- package/lib/publishNativeScaffoldFile.d.ts +0 -21
- package/lib/publishNativeScaffoldFile.js +0 -211
- package/lib/publishNativeScaffoldFile.js.map +0 -1
- package/lib/publishScaffoldCandidate.d.ts +0 -24
- package/lib/publishScaffoldCandidate.js +0 -70
- package/lib/publishScaffoldCandidate.js.map +0 -1
- package/lib/readAutoMovieScaffoldSources.d.ts +0 -20
- package/lib/readAutoMovieScaffoldSources.js +0 -103
- package/lib/readAutoMovieScaffoldSources.js.map +0 -1
- package/lib/readScaffoldSyncFile.d.ts +0 -16
- package/lib/readScaffoldSyncFile.js +0 -64
- package/lib/readScaffoldSyncFile.js.map +0 -1
- package/lib/renderScaffold.d.ts +0 -19
- package/lib/renderScaffold.js +0 -33
- package/lib/renderScaffold.js.map +0 -1
- package/lib/renderScaffoldEntries.d.ts +0 -20
- package/lib/renderScaffoldEntries.js +0 -106
- package/lib/renderScaffoldEntries.js.map +0 -1
- package/lib/renderScaffoldInstructions.d.ts +0 -17
- package/lib/renderScaffoldInstructions.js +0 -23
- package/lib/renderScaffoldInstructions.js.map +0 -1
- package/lib/renderScaffoldLayer.d.ts +0 -20
- package/lib/renderScaffoldLayer.js +0 -28
- package/lib/renderScaffoldLayer.js.map +0 -1
- package/lib/renderTemplate.d.ts +0 -19
- package/lib/renderTemplate.js +0 -56
- package/lib/renderTemplate.js.map +0 -1
- package/lib/renderWorkspaceProductionScaffold.d.ts +0 -19
- package/lib/renderWorkspaceProductionScaffold.js +0 -30
- package/lib/renderWorkspaceProductionScaffold.js.map +0 -1
- package/lib/renderWorkspaceScaffold.d.ts +0 -19
- package/lib/renderWorkspaceScaffold.js +0 -33
- package/lib/renderWorkspaceScaffold.js.map +0 -1
- package/lib/replaceSharedScaffoldFile.d.ts +0 -30
- package/lib/replaceSharedScaffoldFile.js +0 -106
- package/lib/replaceSharedScaffoldFile.js.map +0 -1
- package/lib/resolveAutoMovieCatalogVersion.d.ts +0 -19
- package/lib/resolveAutoMovieCatalogVersion.js +0 -24
- package/lib/resolveAutoMovieCatalogVersion.js.map +0 -1
- package/lib/resolveAutoMovieTemplateDependencyVersions.d.ts +0 -19
- package/lib/resolveAutoMovieTemplateDependencyVersions.js +0 -62
- package/lib/resolveAutoMovieTemplateDependencyVersions.js.map +0 -1
- package/lib/resolveScaffoldPosixConstants.d.ts +0 -13
- package/lib/resolveScaffoldPosixConstants.js +0 -44
- package/lib/resolveScaffoldPosixConstants.js.map +0 -1
- package/lib/scaffoldAssetDirectory.d.ts +0 -19
- package/lib/scaffoldAssetDirectory.js +0 -63
- package/lib/scaffoldAssetDirectory.js.map +0 -1
- package/lib/scaffoldPhysicalIdentity.d.ts +0 -18
- package/lib/scaffoldPhysicalIdentity.js +0 -22
- package/lib/scaffoldPhysicalIdentity.js.map +0 -1
- package/lib/scaffoldSharedSkillDirectory.d.ts +0 -17
- package/lib/scaffoldSharedSkillDirectory.js +0 -62
- package/lib/scaffoldSharedSkillDirectory.js.map +0 -1
- package/lib/skills/3d-modeling/crafting.md +0 -82
- package/lib/skills/3d-modeling/diffusion.md +0 -34
- package/lib/skills/3d-modeling/inspection.md +0 -54
- package/lib/skills/3d-modeling/lofting.md +0 -43
- package/lib/skills/3d-modeling/modularization.md +0 -31
- package/lib/skills/3d-modeling/recovery.md +0 -29
- package/lib/skills/development/repair.md +0 -13
- package/lib/skills/documentation/writing.md +0 -51
- package/lib/skills/motion/layers.md +0 -7
- package/lib/skills/motion/transitions.md +0 -27
- package/lib/skills/prompting/SKILL.md +0 -80
- package/lib/syncScaffold.d.ts +0 -19
- package/lib/syncScaffold.js +0 -28
- package/lib/syncScaffold.js.map +0 -1
- package/lib/writeFiles.d.ts +0 -20
- package/lib/writeFiles.js +0 -33
- package/lib/writeFiles.js.map +0 -1
- package/lib/writeScaffoldFile.d.ts +0 -35
- package/lib/writeScaffoldFile.js +0 -107
- package/lib/writeScaffoldFile.js.map +0 -1
- package/lib/writtenVersion.d.ts +0 -13
- package/lib/writtenVersion.js +0 -18
- package/lib/writtenVersion.js.map +0 -1
- package/scaffold/instructions/.agents/skills/audio/local-speech.md +0 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/screenplay.md +0 -9
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/screenplay.md +0 -13
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/screenplay.md +0 -11
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/screenplay.md +0 -25
- package/scaffold/instructions/.agents/skills/motion/method-references.md +0 -23
- package/scaffold/instructions/.agents/skills/production/sync-and-reorganization.md +0 -21
- package/scaffold/instructions/.agents/skills/story/correction/SKILL.md +0 -13
- package/scaffold/instructions/.agents/skills/story/evidence/SKILL.md +0 -13
- package/scaffold/instructions/.agents/skills/story/evidence/answer-placement.md +0 -13
- package/scaffold/instructions/.agents/skills/story/evidence/answer-writing.md +0 -23
- package/scaffold/instructions/.agents/skills/story/naturalness/SKILL.md +0 -13
- package/scaffold/instructions/.agents/skills/story/naturalness/rewriting.md +0 -17
- package/scaffold/instructions/.agents/skills/story/naturalness/transfer.md +0 -11
- package/scaffold/instructions/.agents/skills/story/workflow.md +0 -61
- package/scaffold/instructions/.agents/skills/video/diffusion.md +0 -33
- package/scaffold/instructions/.agents/skills/video/prompts.md +0 -51
- package/scaffold/production/evidence.config.ts +0 -12
- package/scaffold/production/src/executable/capture.ts +0 -489
- package/scaffold/production/src/executable/planCaptureStills.ts +0 -65
- package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureError.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureErrorCode.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessWaitUntil.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureOptions.ts +0 -79
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureSession.ts +0 -39
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessFrameWriter.ts +0 -20
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessLocator.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessPage.ts +0 -1
- package/scaffold/production/src/executable/render/headlessCapture/createHeadlessCaptureAdapter.ts +0 -92
- package/scaffold/production/src/executable/render/headlessCapture/index.ts +0 -9
- package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoOptions.ts +0 -128
- package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoResult.ts +0 -43
- package/scaffold/production/src/executable/render/node/IProductionRenditionClip.ts +0 -44
- package/scaffold/production/src/executable/render/node/acquireViewerBrowser.ts +0 -24
- package/scaffold/production/src/executable/render/node/addProductionMp4Sample.ts +0 -89
- package/scaffold/production/src/executable/render/node/appendLosslessVideoClip.ts +0 -62
- package/scaffold/production/src/executable/render/node/assembleProductionChunkVideoMp4.ts +0 -167
- package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionClips.ts +0 -184
- package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionVideo.ts +0 -127
- package/scaffold/production/src/executable/render/node/assertProductionRenditionClipDelivery.ts +0 -102
- package/scaffold/production/src/executable/render/node/cache/IAutoMovieDirectoryArtifactStore.ts +0 -59
- package/scaffold/production/src/executable/render/node/cache/IAutoMovieViewerFrameCacheReport.ts +0 -30
- package/scaffold/production/src/executable/render/node/cache/cacheViewerCaptureSession.ts +0 -187
- package/scaffold/production/src/executable/render/node/cache/composeViewerFrameKeys.ts +0 -55
- package/scaffold/production/src/executable/render/node/cache/createAutoMovieArtifactMiddleware.ts +0 -107
- package/scaffold/production/src/executable/render/node/cache/createAutoMovieDirectoryArtifactStore.ts +0 -203
- package/scaffold/production/src/executable/render/node/cache/digestAutoMovieSourceTree.ts +0 -66
- package/scaffold/production/src/executable/render/node/cache/readViewerFrameStates.ts +0 -95
- package/scaffold/production/src/executable/render/node/capture/DEFAULT_CHROME_EXECUTABLE.ts +0 -11
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageOperationFailure.ts +0 -13
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeArtifact.ts +0 -30
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeOptions.ts +0 -51
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceMetadata.ts +0 -27
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderArtifact.ts +0 -44
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderOptions.ts +0 -43
- package/scaffold/production/src/executable/render/node/capture/IAutoMovieSequenceDissolvePixelCheck.ts +0 -39
- package/scaffold/production/src/executable/render/node/capture/captureRenderAndSee.ts +0 -233
- package/scaffold/production/src/executable/render/node/capture/captureSequenceRenderAndSee.ts +0 -377
- package/scaffold/production/src/executable/render/node/capture/index.ts +0 -14
- package/scaffold/production/src/executable/render/node/capture/preserveCleanupFailure.ts +0 -34
- package/scaffold/production/src/executable/render/node/capture/renderAndSeeCommand.ts +0 -169
- package/scaffold/production/src/executable/render/node/capture/renderSequenceAndSeeCommand.ts +0 -165
- package/scaffold/production/src/executable/render/node/capture/verifySequenceDissolvePixels.ts +0 -179
- package/scaffold/production/src/executable/render/node/conformProductionRenditionVideoMp4.ts +0 -86
- package/scaffold/production/src/executable/render/node/conformProductionVisualDeliveryVideoMp4.ts +0 -230
- package/scaffold/production/src/executable/render/node/decodeAutoMovieDelivery.ts +0 -253
- package/scaffold/production/src/executable/render/node/equalRational.ts +0 -36
- package/scaffold/production/src/executable/render/node/exactProductionClockProduct.ts +0 -26
- package/scaffold/production/src/executable/render/node/exportModelToGLB.ts +0 -267
- package/scaffold/production/src/executable/render/node/index.ts +0 -27
- package/scaffold/production/src/executable/render/node/loadModelGltfCore.ts +0 -18
- package/scaffold/production/src/executable/render/node/mixAutoMovieAudioCues.ts +0 -74
- package/scaffold/production/src/executable/render/node/muxProductionFeatureMp4.ts +0 -170
- package/scaffold/production/src/executable/render/node/neutralTrackPresentation.ts +0 -59
- package/scaffold/production/src/executable/render/node/normalizeProductionH264Mp4.ts +0 -110
- package/scaffold/production/src/executable/render/node/openLosslessVideoTrack.ts +0 -81
- package/scaffold/production/src/executable/render/node/parseMp4.ts +0 -46
- package/scaffold/production/src/executable/render/node/parseProductionMp4Output.ts +0 -70
- package/scaffold/production/src/executable/render/node/parseProductionRenditionClip.ts +0 -92
- package/scaffold/production/src/executable/render/node/planViewerVideo.ts +0 -140
- package/scaffold/production/src/executable/render/node/probeParsedProductionVideoMp4.ts +0 -48
- package/scaffold/production/src/executable/render/node/probeProductionPngPicture.ts +0 -223
- package/scaffold/production/src/executable/render/node/probeProductionRenderedMedia.ts +0 -355
- package/scaffold/production/src/executable/render/node/probeProductionVideoMp4.ts +0 -27
- package/scaffold/production/src/executable/render/node/probeVideoTrack.ts +0 -220
- package/scaffold/production/src/executable/render/node/productionRenditionVideoPlan.ts +0 -149
- package/scaffold/production/src/executable/render/node/recordViewerPlayback.ts +0 -137
- package/scaffold/production/src/executable/render/node/renderViewerFrames.ts +0 -139
- package/scaffold/production/src/executable/render/node/renderViewerVideo.ts +0 -301
- package/scaffold/production/src/executable/render/node/renderViewerVideoSession.ts +0 -75
- package/scaffold/production/src/executable/render/node/residentMp4Box.ts +0 -36
- package/scaffold/production/src/executable/render/node/residentPngJs.ts +0 -26
- package/scaffold/production/src/executable/render/node/runViewerVideoEncoder.ts +0 -58
- package/scaffold/production/src/executable/render/node/sameSampleDescription.ts +0 -43
- package/scaffold/production/src/executable/render/node/sameSampleFlags.ts +0 -28
- package/scaffold/production/src/executable/render/node/sampleBytes.ts +0 -46
- package/scaffold/production/src/executable/render/node/sampleDescription.ts +0 -40
- package/scaffold/production/src/executable/render/node/sampleOptions.ts +0 -37
- package/scaffold/production/src/executable/render/node/serializeDescriptionBox.ts +0 -29
- package/scaffold/production/src/executable/render/node/trimProductionAudioPresentation.ts +0 -115
- package/scaffold/production/src/executable/render/node/verifySampleStorage.ts +0 -86
- package/scaffold/production/src/executable/render/node/writeViewerFrameSheet.ts +0 -101
- package/scaffold/production/src/executable/render.ts +0 -92
- package/scaffold/production/src/executable/review.ts +0 -54
- package/scaffold/production/src/executable/viewer/inspection/createViewerDiskSource.ts +0 -119
- package/scaffold/production/src/executable/viewer/inspection/readViewerMaintainedSourceFiles.ts +0 -64
- package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureError.ts +0 -41
- package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureErrorCode.ts +0 -22
- package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessWaitUntil.ts +0 -18
- package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessLocator.ts +0 -32
- package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessPage.ts +0 -130
- package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureOptions.ts +0 -38
- package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureSession.ts +0 -41
- package/scaffold/production/src/executable/viewer/node/capture/createViewerCaptureSession.ts +0 -154
- package/scaffold/production/src/executable/viewer/node/capture/index.ts +0 -8
- package/scaffold/production/src/executable/viewer/node/index.ts +0 -2
- package/scaffold/production/src/executable/viewer/process/ProcessOwnership.ts +0 -102
- package/scaffold/production/src/executable/viewer/process/internal/IProcessChildObservation.ts +0 -18
- package/scaffold/production/src/executable/viewer/process/internal/IProcessOwnershipHost.ts +0 -70
- package/scaffold/production/src/executable/viewer/process/internal/ProcessOwnershipController.ts +0 -125
- package/scaffold/production/src/executable/viewer/process/internal/WindowsProcessOwnershipPrograms.ts +0 -52
- package/scaffold/production/src/executable/viewer/process/internal/createNodeProcessOwnershipHost.ts +0 -41
- package/scaffold/production/src/executable/viewer/process/internal/decodeLinuxProcessIdentity.ts +0 -22
- package/scaffold/production/src/executable/viewer/process/internal/decodePosixProcessIdentity.ts +0 -24
- package/scaffold/production/src/executable/viewer/process/internal/decodeWindowsProcessResult.ts +0 -24
- package/scaffold/production/src/executable/viewer/process/internal/readNativeProcessIdentity.ts +0 -45
- package/scaffold/production/src/executable/viewer/process/internal/requireProcessId.ts +0 -15
- package/scaffold/production/src/executable/viewer/process/internal/resolveProcessIdentityReadError.ts +0 -15
- package/scaffold/production/src/executable/viewer/process/internal/runWindowsProcessOperation.ts +0 -41
- package/scaffold/production/src/executable/viewer/process/internal/selectProcessOwnershipTree.ts +0 -68
- package/scaffold/production/test/features/executable/test_plan_capture_stills.ts +0 -75
- package/scaffold/workspace/pnpm-workspace.yaml +0 -46
- package/src/AUTOMOVIE_TEMPLATE_CATALOGS.ts +0 -48
- package/src/AUTOMOVIE_TEMPLATE_VERSIONS.ts +0 -39
- package/src/AutoMovieScaffoldLayer.ts +0 -18
- package/src/FILE_ATTRIBUTE_DIRECTORY.ts +0 -2
- package/src/IAutoMovieCatalogVersionProps.ts +0 -18
- package/src/IAutoMovieScaffoldSourceEntry.ts +0 -19
- package/src/IAutoMovieTemplateDependencyVersionsProps.ts +0 -19
- package/src/IAutoMovieWorkspacePackageVersions.ts +0 -44
- package/src/IBoundChild.ts +0 -86
- package/src/IBoundChildStatus.ts +0 -24
- package/src/IBoundParent.ts +0 -65
- package/src/IBoundParentStatus.ts +0 -15
- package/src/ICreateResult.ts +0 -35
- package/src/IScaffoldCompletedFilePublicationOutcome.ts +0 -17
- package/src/IScaffoldCompletedPublication.ts +0 -17
- package/src/IScaffoldFileSnapshot.ts +0 -28
- package/src/IScaffoldParentPublicationRequest.ts +0 -29
- package/src/IScaffoldPartialFilePublicationOutcome.ts +0 -25
- package/src/IScaffoldPhysicalDirectory.ts +0 -22
- package/src/IScaffoldPosixConstants.ts +0 -30
- package/src/IScaffoldPublicationEntry.ts +0 -22
- package/src/IScaffoldPublicationFailure.ts +0 -18
- package/src/IScaffoldPublicationOptions.ts +0 -19
- package/src/IScaffoldPublicationReceipt.ts +0 -29
- package/src/IScaffoldRefusedFilePublicationOutcome.ts +0 -20
- package/src/IScaffoldSyncPlan.ts +0 -26
- package/src/IScaffoldSyncProps.ts +0 -16
- package/src/IWindowsFileInformation.ts +0 -24
- package/src/IWindowsLibrary.ts +0 -148
- package/src/SCAFFOLD_SYNC_STATE_FILE.ts +0 -5
- package/src/ScaffoldFilePublicationOutcome.ts +0 -18
- package/src/ScaffoldParentChangedError.ts +0 -14
- package/src/ScaffoldPublicationError.ts +0 -58
- package/src/assertOrdinaryFile.ts +0 -20
- package/src/assertOrdinarySingleLinkFile.ts +0 -26
- package/src/assertScaffoldOwnership.ts +0 -29
- package/src/assertScaffoldPhysicalDirectory.ts +0 -29
- package/src/attachScaffoldSyncState.ts +0 -30
- package/src/captureEmptyScaffoldPhysicalDirectory.ts +0 -45
- package/src/captureScaffoldFile.ts +0 -34
- package/src/captureScaffoldPhysicalDirectory.ts +0 -34
- package/src/combineScaffoldFailures.ts +0 -35
- package/src/createAutoMovieCatalogVersionResolver.ts +0 -117
- package/src/createScaffoldSyncState.ts +0 -33
- package/src/createScaffoldVariables.ts +0 -50
- package/src/ensureScaffoldBaseDirectory.ts +0 -55
- package/src/ensureScaffoldFileDirectory.ts +0 -75
- package/src/inside.ts +0 -25
- package/src/isScaffoldInstruction.ts +0 -29
- package/src/loadWindowsLibrary.ts +0 -277
- package/src/mergeScaffoldFiles.ts +0 -39
- package/src/missingPath.ts +0 -16
- package/src/nativeError.ts +0 -15
- package/src/openPosixParent.ts +0 -155
- package/src/openWindowsParent.ts +0 -305
- package/src/overwriteScaffoldFile.ts +0 -262
- package/src/physicalDirectoryIdentity.ts +0 -33
- package/src/physicalVersion.ts +0 -18
- package/src/planScaffoldPublication.ts +0 -100
- package/src/planScaffoldSync.ts +0 -122
- package/src/publishFiles.ts +0 -120
- package/src/publishNativeScaffoldFile.ts +0 -287
- package/src/publishScaffoldCandidate.ts +0 -94
- package/src/readAutoMovieScaffoldSources.ts +0 -82
- package/src/readScaffoldSyncFile.ts +0 -66
- package/src/renderScaffold.ts +0 -43
- package/src/renderScaffoldEntries.ts +0 -110
- package/src/renderScaffoldInstructions.ts +0 -22
- package/src/renderScaffoldLayer.ts +0 -38
- package/src/renderTemplate.ts +0 -62
- package/src/renderWorkspaceProductionScaffold.ts +0 -35
- package/src/renderWorkspaceScaffold.ts +0 -43
- package/src/replaceSharedScaffoldFile.ts +0 -88
- package/src/resolveAutoMovieCatalogVersion.ts +0 -27
- package/src/resolveAutoMovieTemplateDependencyVersions.ts +0 -70
- package/src/resolveScaffoldPosixConstants.ts +0 -50
- package/src/scaffoldAssetDirectory.ts +0 -30
- package/src/scaffoldPhysicalIdentity.ts +0 -21
- package/src/scaffoldSharedSkillDirectory.ts +0 -25
- package/src/syncScaffold.ts +0 -38
- package/src/writeFiles.ts +0 -48
- package/src/writeScaffoldFile.ts +0 -88
- package/src/writtenVersion.ts +0 -19
- /package/{lib → generated}/skills/contracts/development/common.md +0 -0
- /package/{lib → generated}/skills/visual-debugging/rendering-cost.md +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$crafting.md → $crafting} +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$diffusion.md → diffusion/$image-hints.md} +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$lofting.md → diffusion/$models.md} +0 -0
- /package/scaffold/instructions/.agents/skills/3d-modeling/{$recovery.md → diffusion/$prompts.md} +0 -0
- /package/scaffold/instructions/.agents/skills/{motion/$authoring.md → 3d-modeling/diffusion/$request.md} +0 -0
- /package/scaffold/instructions/.agents/skills/{motion/$contacts.md → 3d-modeling/diffusion/$shape-hints.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$laws.md → laws/$authoring.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$layers.md → laws/$contacts.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$transitions.md → laws/$declaration.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$variation.md → laws/$transitions.md} +0 -0
- /package/scaffold/instructions/.agents/skills/motion/{$verification.md → laws/$variation.md} +0 -0
|
@@ -1,214 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.overwriteScaffoldFile = void 0;
|
|
37
|
-
const fs = __importStar(require("node:fs"));
|
|
38
|
-
const assertOrdinarySingleLinkFile_1 = require("./assertOrdinarySingleLinkFile");
|
|
39
|
-
const assertScaffoldOwnership_1 = require("./assertScaffoldOwnership");
|
|
40
|
-
const captureScaffoldFile_1 = require("./captureScaffoldFile");
|
|
41
|
-
const combineScaffoldFailures_1 = require("./combineScaffoldFailures");
|
|
42
|
-
const writtenVersion_1 = require("./writtenVersion");
|
|
43
|
-
/**
|
|
44
|
-
* Replace one existing ordinary single-link scaffold file in place.
|
|
45
|
-
*
|
|
46
|
-
* 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.
|
|
47
|
-
*
|
|
48
|
-
* @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.
|
|
49
|
-
* @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.
|
|
50
|
-
* @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.
|
|
51
|
-
* @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.
|
|
52
|
-
* @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.
|
|
53
|
-
* @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.
|
|
54
|
-
* @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.
|
|
55
|
-
*/
|
|
56
|
-
const overwriteScaffoldFile = (props) => {
|
|
57
|
-
const target = props.existing.path;
|
|
58
|
-
let descriptor;
|
|
59
|
-
try {
|
|
60
|
-
descriptor = fs.openSync(target, "r+");
|
|
61
|
-
}
|
|
62
|
-
catch (error) {
|
|
63
|
-
return Object.freeze({
|
|
64
|
-
error,
|
|
65
|
-
reason: "create-failed",
|
|
66
|
-
status: "refused",
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
const progress = { bytesWritten: 0 };
|
|
70
|
-
let failure = undefined;
|
|
71
|
-
let mutated = false;
|
|
72
|
-
let completedSnapshot;
|
|
73
|
-
try {
|
|
74
|
-
const opened = fs.fstatSync(descriptor, { bigint: true });
|
|
75
|
-
(0, assertOrdinarySingleLinkFile_1.assertOrdinarySingleLinkFile)(opened, target);
|
|
76
|
-
assertScaffoldFileDescriptor(props.existing, descriptor, (0, writtenVersion_1.writtenVersion)(opened));
|
|
77
|
-
(0, assertScaffoldOwnership_1.assertScaffoldOwnership)(props.base, props.parent);
|
|
78
|
-
fs.ftruncateSync(descriptor, 0);
|
|
79
|
-
mutated = true;
|
|
80
|
-
writeScaffoldDescriptor(descriptor, target, props.bytes, progress);
|
|
81
|
-
const completed = fs.fstatSync(descriptor, {
|
|
82
|
-
bigint: true,
|
|
83
|
-
});
|
|
84
|
-
if (completed.size !== BigInt(props.bytes.byteLength))
|
|
85
|
-
throw new Error(`scaffold file changed final size: ${target}`);
|
|
86
|
-
assertScaffoldFileDescriptor((0, captureScaffoldFile_1.captureScaffoldFile)(target), descriptor, (0, writtenVersion_1.writtenVersion)(completed));
|
|
87
|
-
assertScaffoldDescriptorBytes(descriptor, target, props.bytes);
|
|
88
|
-
const finalStatus = fs.fstatSync(descriptor, {
|
|
89
|
-
bigint: true,
|
|
90
|
-
});
|
|
91
|
-
if ((0, writtenVersion_1.writtenVersion)(finalStatus) !== (0, writtenVersion_1.writtenVersion)(completed))
|
|
92
|
-
throw new Error(`scaffold file changed after final readback: ${target}`);
|
|
93
|
-
const resident = (0, captureScaffoldFile_1.captureScaffoldFile)(target);
|
|
94
|
-
assertScaffoldFileDescriptor(resident, descriptor, (0, writtenVersion_1.writtenVersion)(finalStatus));
|
|
95
|
-
completedSnapshot = assertOpenedScaffoldFileSnapshot(resident);
|
|
96
|
-
(0, assertScaffoldOwnership_1.assertScaffoldOwnership)(props.base, props.parent);
|
|
97
|
-
}
|
|
98
|
-
catch (error) {
|
|
99
|
-
failure = error;
|
|
100
|
-
}
|
|
101
|
-
try {
|
|
102
|
-
fs.closeSync(descriptor);
|
|
103
|
-
}
|
|
104
|
-
catch (closeError) {
|
|
105
|
-
failure = (0, combineScaffoldFailures_1.combineScaffoldFailures)(failure, closeError, "overwritten scaffold file close");
|
|
106
|
-
}
|
|
107
|
-
if (failure === undefined)
|
|
108
|
-
try {
|
|
109
|
-
assertScaffoldFileSnapshot(completedSnapshot);
|
|
110
|
-
(0, assertScaffoldOwnership_1.assertScaffoldOwnership)(props.base, props.parent);
|
|
111
|
-
}
|
|
112
|
-
catch (error) {
|
|
113
|
-
failure = error;
|
|
114
|
-
}
|
|
115
|
-
if (failure !== undefined && mutated === false)
|
|
116
|
-
return Object.freeze({
|
|
117
|
-
error: failure,
|
|
118
|
-
reason: "create-failed",
|
|
119
|
-
status: "refused",
|
|
120
|
-
});
|
|
121
|
-
return failure === undefined
|
|
122
|
-
? Object.freeze({
|
|
123
|
-
parentIdentity: props.parent.identity,
|
|
124
|
-
status: "completed",
|
|
125
|
-
})
|
|
126
|
-
: Object.freeze({
|
|
127
|
-
bytesWritten: progress.bytesWritten,
|
|
128
|
-
error: failure,
|
|
129
|
-
parentIdentity: props.parent.identity,
|
|
130
|
-
status: "partial",
|
|
131
|
-
});
|
|
132
|
-
};
|
|
133
|
-
exports.overwriteScaffoldFile = overwriteScaffoldFile;
|
|
134
|
-
/**
|
|
135
|
-
* Verify a held descriptor against its captured pathname generation: the pathname still names the snapshot's file, the descriptor still shows `expectedWritten`, and a fresh pathname open shows the same written state.
|
|
136
|
-
*/
|
|
137
|
-
const assertScaffoldFileDescriptor = (snapshot, descriptor, expectedWritten) => {
|
|
138
|
-
assertOpenedScaffoldFileSnapshot(snapshot);
|
|
139
|
-
const opened = fs.fstatSync(descriptor, { bigint: true });
|
|
140
|
-
(0, assertOrdinarySingleLinkFile_1.assertOrdinarySingleLinkFile)(opened, snapshot.path);
|
|
141
|
-
if ((0, writtenVersion_1.writtenVersion)(opened) !== expectedWritten)
|
|
142
|
-
throw new Error(`scaffold file descriptor changed generation: ${snapshot.path}`);
|
|
143
|
-
const residentDescriptor = fs.openSync(snapshot.path, "r");
|
|
144
|
-
let failure = undefined;
|
|
145
|
-
try {
|
|
146
|
-
const resident = fs.fstatSync(residentDescriptor, {
|
|
147
|
-
bigint: true,
|
|
148
|
-
});
|
|
149
|
-
(0, assertOrdinarySingleLinkFile_1.assertOrdinarySingleLinkFile)(resident, snapshot.path);
|
|
150
|
-
if ((0, writtenVersion_1.writtenVersion)(resident) !== (0, writtenVersion_1.writtenVersion)(opened))
|
|
151
|
-
throw new Error(`scaffold file descriptor changed resident generation: ${snapshot.path}`);
|
|
152
|
-
assertOpenedScaffoldFileSnapshot(snapshot);
|
|
153
|
-
}
|
|
154
|
-
catch (error) {
|
|
155
|
-
failure = error;
|
|
156
|
-
}
|
|
157
|
-
try {
|
|
158
|
-
fs.closeSync(residentDescriptor);
|
|
159
|
-
}
|
|
160
|
-
catch (closeError) {
|
|
161
|
-
failure = (0, combineScaffoldFailures_1.combineScaffoldFailures)(failure, closeError, "resident scaffold file close");
|
|
162
|
-
}
|
|
163
|
-
if (failure !== undefined)
|
|
164
|
-
throw failure instanceof Error
|
|
165
|
-
? failure
|
|
166
|
-
: new Error(`scaffold file verification failed: ${snapshot.path}`, {
|
|
167
|
-
cause: failure,
|
|
168
|
-
});
|
|
169
|
-
};
|
|
170
|
-
/**
|
|
171
|
-
* Recapture a snapshot's pathname while this operation holds descriptors on it and require the same file and written state. The change time is left out: Windows advances it whenever any handle opens the path, including this module's own verification opens, while identity, size, and modification time still move only on a real change.
|
|
172
|
-
*/
|
|
173
|
-
const assertOpenedScaffoldFileSnapshot = (snapshot) => {
|
|
174
|
-
const current = (0, captureScaffoldFile_1.captureScaffoldFile)(snapshot.path);
|
|
175
|
-
if (current.identity !== snapshot.identity ||
|
|
176
|
-
current.written !== snapshot.written)
|
|
177
|
-
throw new Error(`scaffold file changed while its descriptor was open: ${snapshot.path}`);
|
|
178
|
-
return current;
|
|
179
|
-
};
|
|
180
|
-
/**
|
|
181
|
-
* Require the exact captured generation, change time included, after every descriptor of this operation has closed.
|
|
182
|
-
*/
|
|
183
|
-
const assertScaffoldFileSnapshot = (snapshot) => {
|
|
184
|
-
const current = (0, captureScaffoldFile_1.captureScaffoldFile)(snapshot.path);
|
|
185
|
-
if (current.identity !== snapshot.identity ||
|
|
186
|
-
current.version !== snapshot.version)
|
|
187
|
-
throw new Error(`scaffold file changed after descriptor close: ${snapshot.path}`);
|
|
188
|
-
};
|
|
189
|
-
/** Write `bytes` from offset 0 through `descriptor`, then flush it. */
|
|
190
|
-
const writeScaffoldDescriptor = (descriptor, target, bytes, progress) => {
|
|
191
|
-
let offset = 0;
|
|
192
|
-
while (offset < bytes.byteLength) {
|
|
193
|
-
const written = fs.writeSync(descriptor, bytes, offset, bytes.byteLength - offset, offset);
|
|
194
|
-
if (written === 0)
|
|
195
|
-
throw new Error(`scaffold file stopped while written: ${target}`);
|
|
196
|
-
offset += written;
|
|
197
|
-
progress.bytesWritten = offset;
|
|
198
|
-
}
|
|
199
|
-
fs.fsyncSync(descriptor);
|
|
200
|
-
};
|
|
201
|
-
/** Read the whole file back through `descriptor` and require `bytes` exactly. */
|
|
202
|
-
const assertScaffoldDescriptorBytes = (descriptor, target, bytes) => {
|
|
203
|
-
const readback = Buffer.alloc(bytes.byteLength);
|
|
204
|
-
let offset = 0;
|
|
205
|
-
while (offset < readback.length) {
|
|
206
|
-
const read = fs.readSync(descriptor, readback, offset, readback.length - offset, offset);
|
|
207
|
-
if (read === 0)
|
|
208
|
-
throw new Error(`scaffold file stopped during readback: ${target}`);
|
|
209
|
-
offset += read;
|
|
210
|
-
}
|
|
211
|
-
if (readback.equals(bytes) === false)
|
|
212
|
-
throw new Error(`scaffold file changed during readback: ${target}`);
|
|
213
|
-
};
|
|
214
|
-
//# sourceMappingURL=overwriteScaffoldFile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"overwriteScaffoldFile.js","sourceRoot":"","sources":["../src/overwriteScaffoldFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAK9B,iFAA8E;AAC9E,uEAAoE;AACpE,+DAA4D;AAC5D,uEAAoE;AACpE,qDAAkD;AAElD;;;;;;;;;;;;GAYG;AACI,MAAM,qBAAqB,GAKK,CAAC,KAKvC,EAAkC,EAAE;IACnC,MAAM,MAAM,GAAW,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC3C,IAAI,UAAkB,CAAC;IACvB,IAAI,CAAC;QACH,UAAU,GAAG,EAAE,CAAC,QAAQ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F,IAAI,IAAI,KAAK,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,0CAA0C,MAAM,EAAE,CAAC,CAAC;QACtE,MAAM,IAAI,IAAI,CAAC;IACjB,CAAC;IACD,IAAI,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,KAAK;QAClC,MAAM,IAAI,KAAK,CAAC,0CAA0C,MAAM,EAAE,CAAC,CAAC;AACxE,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as fs from "node:fs";
|
|
2
|
-
/**
|
|
3
|
-
* Derive a directory's physical identity from an opened descriptor.
|
|
4
|
-
*
|
|
5
|
-
* A path-based stat is not a reliable device source everywhere: Node on Windows can report device 0 for a directory reached by path while `fstat` on the opened directory reports the volume serial, which is also what the native parent handle reports at publication. The inode equality check pins the descriptor to the directory the caller just inspected.
|
|
6
|
-
*
|
|
7
|
-
* @evidence contracts/development/implementation.md#principled-implementation A directory opened for reading is fstat'ed and its inode is compared with the earlier lstat before device-and-inode formatting.
|
|
8
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Descriptor identity extraction has one owner shared by ordinary capture and new-empty-directory qualification.
|
|
9
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The opened descriptor supplies the actual Windows volume identity instead of trusting a pathname stat's possibly zero device number.
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the descriptor-versus-path distinction and the inode pin that connects both observations.
|
|
11
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One open, one fstat and one close plus two bigint conversions are fixed per directory and independent of its entry count.
|
|
12
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work A descriptor observation cannot be substituted by cached pathname identity when verifying a current capture.
|
|
13
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources One descriptor receives a close attempt in finally before return; successful return proves close completed, while a close error leaves release unproven and currently supersedes an earlier inspection error. No descriptor reference is cached.
|
|
14
|
-
*/
|
|
15
|
-
export declare const physicalDirectoryIdentity: (absolute: string, status: fs.BigIntStats) => string;
|
|
@@ -1,65 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.physicalDirectoryIdentity = void 0;
|
|
37
|
-
const fs = __importStar(require("node:fs"));
|
|
38
|
-
const scaffoldPhysicalIdentity_1 = require("./scaffoldPhysicalIdentity");
|
|
39
|
-
/**
|
|
40
|
-
* Derive a directory's physical identity from an opened descriptor.
|
|
41
|
-
*
|
|
42
|
-
* A path-based stat is not a reliable device source everywhere: Node on Windows can report device 0 for a directory reached by path while `fstat` on the opened directory reports the volume serial, which is also what the native parent handle reports at publication. The inode equality check pins the descriptor to the directory the caller just inspected.
|
|
43
|
-
*
|
|
44
|
-
* @evidence contracts/development/implementation.md#principled-implementation A directory opened for reading is fstat'ed and its inode is compared with the earlier lstat before device-and-inode formatting.
|
|
45
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Descriptor identity extraction has one owner shared by ordinary capture and new-empty-directory qualification.
|
|
46
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The opened descriptor supplies the actual Windows volume identity instead of trusting a pathname stat's possibly zero device number.
|
|
47
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the descriptor-versus-path distinction and the inode pin that connects both observations.
|
|
48
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One open, one fstat and one close plus two bigint conversions are fixed per directory and independent of its entry count.
|
|
49
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work A descriptor observation cannot be substituted by cached pathname identity when verifying a current capture.
|
|
50
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources One descriptor receives a close attempt in finally before return; successful return proves close completed, while a close error leaves release unproven and currently supersedes an earlier inspection error. No descriptor reference is cached.
|
|
51
|
-
*/
|
|
52
|
-
const physicalDirectoryIdentity = (absolute, status) => {
|
|
53
|
-
const descriptor = fs.openSync(absolute, fs.constants.O_RDONLY);
|
|
54
|
-
try {
|
|
55
|
-
const opened = fs.fstatSync(descriptor, { bigint: true });
|
|
56
|
-
if (opened.isDirectory() === false || opened.ino !== status.ino)
|
|
57
|
-
throw new Error(`scaffold directory changed while its identity was captured: ${absolute}`);
|
|
58
|
-
return (0, scaffoldPhysicalIdentity_1.scaffoldPhysicalIdentity)(opened);
|
|
59
|
-
}
|
|
60
|
-
finally {
|
|
61
|
-
fs.closeSync(descriptor);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
exports.physicalDirectoryIdentity = physicalDirectoryIdentity;
|
|
65
|
-
//# sourceMappingURL=physicalDirectoryIdentity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"physicalDirectoryIdentity.js","sourceRoot":"","sources":["../src/physicalDirectoryIdentity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAE9B,yEAAsE;AAEtE;;;;;;;;;;;;GAYG;AACI,MAAM,yBAAyB,GAGxB,CAAC,QAAgB,EAAE,MAAsB,EAAU,EAAE;IACjE,MAAM,UAAU,GAAW,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACxE,IAAI,CAAC;QACH,MAAM,MAAM,GAAmB,EAAE,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1E,IAAI,MAAM,CAAC,WAAW,EAAE,KAAK,KAAK,IAAI,MAAM,CAAC,GAAG,KAAK,MAAM,CAAC,GAAG;YAC7D,MAAM,IAAI,KAAK,CACb,+DAA+D,QAAQ,EAAE,CAC1E,CAAC;QACJ,OAAO,IAAA,mDAAwB,EAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;YAAS,CAAC;QACT,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC,CAAC;AAfW,QAAA,yBAAyB,GAAzB,yBAAyB,CAepC"}
|
package/lib/physicalVersion.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as fs from "node:fs";
|
|
2
|
-
/**
|
|
3
|
-
* `writtenVersion` plus the change time, which a rename also moves.
|
|
4
|
-
*
|
|
5
|
-
* @evidence contracts/development/implementation.md#principled-implementation The full file generation extends the shared written-state key with change-time nanoseconds, which can reveal a rename.
|
|
6
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This formatter adds only the change-time component to the single written-state definition.
|
|
7
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts It preserves the actual stat values without inventing a revision or suppressing a change-time difference.
|
|
8
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment distinguishes the full generation from content-oriented written state.
|
|
9
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of bigint encodings costs their digit count, independent of file bytes or directory contents.
|
|
10
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Each input stat is an independent observation; formatting shares the written-key implementation but caches no observation.
|
|
11
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned generation string belongs to the snapshot owner and no descriptor or task is acquired.
|
|
12
|
-
*/
|
|
13
|
-
export declare const physicalVersion: (status: fs.BigIntStats) => string;
|
package/lib/physicalVersion.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.physicalVersion = void 0;
|
|
4
|
-
const writtenVersion_1 = require("./writtenVersion");
|
|
5
|
-
/**
|
|
6
|
-
* `writtenVersion` plus the change time, which a rename also moves.
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/implementation.md#principled-implementation The full file generation extends the shared written-state key with change-time nanoseconds, which can reveal a rename.
|
|
9
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This formatter adds only the change-time component to the single written-state definition.
|
|
10
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts It preserves the actual stat values without inventing a revision or suppressing a change-time difference.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment distinguishes the full generation from content-oriented written state.
|
|
12
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of bigint encodings costs their digit count, independent of file bytes or directory contents.
|
|
13
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Each input stat is an independent observation; formatting shares the written-key implementation but caches no observation.
|
|
14
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned generation string belongs to the snapshot owner and no descriptor or task is acquired.
|
|
15
|
-
*/
|
|
16
|
-
const physicalVersion = (status) => `${(0, writtenVersion_1.writtenVersion)(status)}:${status.ctimeNs}`;
|
|
17
|
-
exports.physicalVersion = physicalVersion;
|
|
18
|
-
//# sourceMappingURL=physicalVersion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"physicalVersion.js","sourceRoot":"","sources":["../src/physicalVersion.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAElD;;;;;;;;;;GAUG;AACI,MAAM,eAAe,GAAuC,CACjE,MAAsB,EACd,EAAE,CAAC,GAAG,IAAA,+BAAc,EAAC,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;AAF9C,QAAA,eAAe,GAAf,eAAe,CAE+B"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type IScaffoldPublicationEntry } from "./IScaffoldPublicationEntry";
|
|
2
|
-
/**
|
|
3
|
-
* Validate a rendered file map and freeze it as a publication candidate, before any directory or file is touched.
|
|
4
|
-
*
|
|
5
|
-
* Throws when a value is not a string, a key contains NUL, a target resolves to the root or outside it, or two targets collide. Targets are compared after lower-casing, so `A.txt` and `a.txt` collide on every platform, and a file also collides with any file below it, such as `a` and `a/b`. Lower-casing approximates the case folding of Windows and macOS file systems and does not apply Unicode normalization.
|
|
6
|
-
*
|
|
7
|
-
* @param props.files UTF-8 text keyed by paths resolved against `root`; absolute keys are admitted when their targets remain below it.
|
|
8
|
-
* @param props.root Directory the candidate is published under.
|
|
9
|
-
* @returns Frozen entries in the map's insertion order.
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/implementation.md#principled-implementation Containment and the ancestor walk's root boundary both use `path.relative`, preserving Windows case-equivalent root spellings instead of looping at the drive root; empty, parent and absolute remainders refuse. Lower-cased target keys detect exact and file-ancestor collisions, approximating case-insensitive file systems without Unicode normalization.
|
|
12
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This owner validates and encodes with one private collision walk; publishFiles coordinates mutation, ensureScaffoldFileDirectory captures descendant directories, and writeScaffoldFile owns target admission.
|
|
13
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No path or file name is special-cased; case-only collisions are refused consistently on every platform without claiming complete filesystem-name validation. The runtime string check rejects non-text input from untyped callers rather than selecting a fixture.
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment lists every refusal, the case-folding rule and its limits, the parameters' meaning, and that entries keep insertion order.
|
|
15
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Encoding visits total content bytes; collision checks use one map lookup per file and per ancestor below the root, with path-relative, dirname, lower-casing and string-key costs driven by the visited path lengths. The local map holds one entry per file, and there is no pairwise file scan.
|
|
16
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The planner runs once per call over its own input and has no completed or in-flight work from another caller that could stand in for it.
|
|
17
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned candidate retains each file's bytes as a frozen array owned by the caller; the collision map is local and released on return, and no handle is opened.
|
|
18
|
-
*/
|
|
19
|
-
export declare const planScaffoldPublication: (props: {
|
|
20
|
-
files: Readonly<Record<string, string>>;
|
|
21
|
-
root: string;
|
|
22
|
-
}) => readonly IScaffoldPublicationEntry[];
|
|
@@ -1,100 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.planScaffoldPublication = void 0;
|
|
37
|
-
const path = __importStar(require("node:path"));
|
|
38
|
-
/**
|
|
39
|
-
* Validate a rendered file map and freeze it as a publication candidate, before any directory or file is touched.
|
|
40
|
-
*
|
|
41
|
-
* Throws when a value is not a string, a key contains NUL, a target resolves to the root or outside it, or two targets collide. Targets are compared after lower-casing, so `A.txt` and `a.txt` collide on every platform, and a file also collides with any file below it, such as `a` and `a/b`. Lower-casing approximates the case folding of Windows and macOS file systems and does not apply Unicode normalization.
|
|
42
|
-
*
|
|
43
|
-
* @param props.files UTF-8 text keyed by paths resolved against `root`; absolute keys are admitted when their targets remain below it.
|
|
44
|
-
* @param props.root Directory the candidate is published under.
|
|
45
|
-
* @returns Frozen entries in the map's insertion order.
|
|
46
|
-
*
|
|
47
|
-
* @evidence contracts/development/implementation.md#principled-implementation Containment and the ancestor walk's root boundary both use `path.relative`, preserving Windows case-equivalent root spellings instead of looping at the drive root; empty, parent and absolute remainders refuse. Lower-cased target keys detect exact and file-ancestor collisions, approximating case-insensitive file systems without Unicode normalization.
|
|
48
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This owner validates and encodes with one private collision walk; publishFiles coordinates mutation, ensureScaffoldFileDirectory captures descendant directories, and writeScaffoldFile owns target admission.
|
|
49
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No path or file name is special-cased; case-only collisions are refused consistently on every platform without claiming complete filesystem-name validation. The runtime string check rejects non-text input from untyped callers rather than selecting a fixture.
|
|
50
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment lists every refusal, the case-folding rule and its limits, the parameters' meaning, and that entries keep insertion order.
|
|
51
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Encoding visits total content bytes; collision checks use one map lookup per file and per ancestor below the root, with path-relative, dirname, lower-casing and string-key costs driven by the visited path lengths. The local map holds one entry per file, and there is no pairwise file scan.
|
|
52
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The planner runs once per call over its own input and has no completed or in-flight work from another caller that could stand in for it.
|
|
53
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned candidate retains each file's bytes as a frozen array owned by the caller; the collision map is local and released on return, and no handle is opened.
|
|
54
|
-
*/
|
|
55
|
-
const planScaffoldPublication = (props) => {
|
|
56
|
-
const root = path.resolve(props.root);
|
|
57
|
-
const entries = Object.entries(props.files).map(([relative, content]) => {
|
|
58
|
-
if (typeof content !== "string")
|
|
59
|
-
throw new Error(`scaffold content is not text: ${relative}`);
|
|
60
|
-
if (relative.includes("\0"))
|
|
61
|
-
throw new Error(`refusing invalid scaffold path: ${relative}`);
|
|
62
|
-
const target = path.resolve(root, relative);
|
|
63
|
-
const inside = path.relative(root, target);
|
|
64
|
-
if (inside.length === 0 ||
|
|
65
|
-
inside === ".." ||
|
|
66
|
-
inside.startsWith(`..${path.sep}`) ||
|
|
67
|
-
path.isAbsolute(inside))
|
|
68
|
-
throw new Error(`refusing to write outside "${root}": ${relative}`);
|
|
69
|
-
return Object.freeze({
|
|
70
|
-
bytes: Object.freeze(Array.from(Buffer.from(content, "utf8"))),
|
|
71
|
-
relative,
|
|
72
|
-
target,
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
assertDistinctScaffoldTargets(root, entries);
|
|
76
|
-
return Object.freeze(entries);
|
|
77
|
-
};
|
|
78
|
-
exports.planScaffoldPublication = planScaffoldPublication;
|
|
79
|
-
/**
|
|
80
|
-
* Throw when two entries name the same target, ignoring case, or when one entry's target is an ancestor directory of another's.
|
|
81
|
-
*/
|
|
82
|
-
const assertDistinctScaffoldTargets = (root, entries) => {
|
|
83
|
-
const owners = new Map();
|
|
84
|
-
for (const entry of entries) {
|
|
85
|
-
const key = canonicalScaffoldPath(entry.target);
|
|
86
|
-
const previous = owners.get(key);
|
|
87
|
-
if (previous !== undefined)
|
|
88
|
-
throw scaffoldPathCollision(previous, entry);
|
|
89
|
-
owners.set(key, entry);
|
|
90
|
-
}
|
|
91
|
-
for (const entry of entries)
|
|
92
|
-
for (let directory = path.dirname(entry.target); path.relative(root, directory).length !== 0; directory = path.dirname(directory)) {
|
|
93
|
-
const ancestor = owners.get(canonicalScaffoldPath(directory));
|
|
94
|
-
if (ancestor !== undefined)
|
|
95
|
-
throw scaffoldPathCollision(ancestor, entry);
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
const scaffoldPathCollision = (first, second) => new Error(`scaffold paths collide: ${first.relative}, ${second.relative}`);
|
|
99
|
-
const canonicalScaffoldPath = (value) => value.toLowerCase();
|
|
100
|
-
//# sourceMappingURL=planScaffoldPublication.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"planScaffoldPublication.js","sourceRoot":"","sources":["../src/planScaffoldPublication.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,IAAI,sCAAkB;AAIlC;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,uBAAuB,GAGS,CAAC,KAG7C,EAAwC,EAAE;IACzC,MAAM,IAAI,GAAW,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC9C,MAAM,OAAO,GAAgC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,CAC1E,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAmB,EAA6B,EAAE;QACnE,IAAI,OAAO,OAAO,KAAK,QAAQ;YAC7B,MAAM,IAAI,KAAK,CAAC,iCAAiC,QAAQ,EAAE,CAAC,CAAC;QAC/D,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,mCAAmC,QAAQ,EAAE,CAAC,CAAC;QACjE,MAAM,MAAM,GAAW,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACpD,MAAM,MAAM,GAAW,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACnD,IACE,MAAM,CAAC,MAAM,KAAK,CAAC;YACnB,MAAM,KAAK,IAAI;YACf,MAAM,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC,GAAG,EAAE,CAAC;YAClC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAEvB,MAAM,IAAI,KAAK,CAAC,8BAA8B,IAAI,MAAM,QAAQ,EAAE,CAAC,CAAC;QACtE,OAAO,MAAM,CAAC,MAAM,CAAC;YACnB,KAAK,EAAE,MAAM,CAAC,MAAM,C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3E,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAGd,CACX,KAAgC,EAChC,MAAiC,EAC1B,EAAE,CACT,IAAI,KAAK,CAAC,2BAA2B,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;AAE7E,MAAM,qBAAqB,GAA8B,CACvD,KAAa,EACL,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { IScaffoldSyncPlan } from "./IScaffoldSyncPlan";
|
|
2
|
-
import type { IScaffoldSyncProps } from "./IScaffoldSyncProps";
|
|
3
|
-
/**
|
|
4
|
-
* Plans a complete instruction sync without changing the production.
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/implementation.md#principled-implementation Current LF digests are compared with desired content and the prior baseline: an explicit baseline root's copy governs, else the stored digest; all conflicts are collected before publication.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The planner owns three-way comparison while rendering owns bundled inputs and publication owns writes.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No contracts, canon, reviews, project/configuration files or custom skills absent from the bundle are overwritten. Unknown legacy differences conflict instead of becoming guessed generated bytes.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The plan records changed/unchanged/conflicting/retired paths, exact write preconditions and a state file placed last.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Rendering and per-file reads/hash scans scale with bundle and existing instruction bytes, plus deterministic path ordering; no whole production body is scanned.
|
|
11
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Each file observation and digest is reused inside the plan; returned plans are not accepted as later filesystem proof by a separate apply API.
|
|
12
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The plan owns candidate text and snapshots; input reads close synchronously, and no background work or cross-call cache is retained.
|
|
13
|
-
*/
|
|
14
|
-
export declare function planScaffoldSync(props: IScaffoldSyncProps): IScaffoldSyncPlan;
|
package/lib/planScaffoldSync.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.planScaffoldSync = planScaffoldSync;
|
|
7
|
-
const node_crypto_1 = require("node:crypto");
|
|
8
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
9
|
-
const SCAFFOLD_SYNC_STATE_FILE_1 = require("./SCAFFOLD_SYNC_STATE_FILE");
|
|
10
|
-
const isScaffoldInstruction_1 = require("./isScaffoldInstruction");
|
|
11
|
-
const readScaffoldSyncFile_1 = require("./readScaffoldSyncFile");
|
|
12
|
-
const renderScaffoldInstructions_1 = require("./renderScaffoldInstructions");
|
|
13
|
-
/**
|
|
14
|
-
* Plans a complete instruction sync without changing the production.
|
|
15
|
-
*
|
|
16
|
-
* @evidence contracts/development/implementation.md#principled-implementation Current LF digests are compared with desired content and the prior baseline: an explicit baseline root's copy governs, else the stored digest; all conflicts are collected before publication.
|
|
17
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The planner owns three-way comparison while rendering owns bundled inputs and publication owns writes.
|
|
18
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No contracts, canon, reviews, project/configuration files or custom skills absent from the bundle are overwritten. Unknown legacy differences conflict instead of becoming guessed generated bytes.
|
|
19
|
-
* @evidence contracts/development/common.md#meaningful-documentation The plan records changed/unchanged/conflicting/retired paths, exact write preconditions and a state file placed last.
|
|
20
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Rendering and per-file reads/hash scans scale with bundle and existing instruction bytes, plus deterministic path ordering; no whole production body is scanned.
|
|
21
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Each file observation and digest is reused inside the plan; returned plans are not accepted as later filesystem proof by a separate apply API.
|
|
22
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The plan owns candidate text and snapshots; input reads close synchronously, and no background work or cross-call cache is retained.
|
|
23
|
-
*/
|
|
24
|
-
function planScaffoldSync(props) {
|
|
25
|
-
const location = node_path_1.default.resolve(props.location);
|
|
26
|
-
const bundle = (0, renderScaffoldInstructions_1.renderScaffoldInstructions)();
|
|
27
|
-
const state = (0, readScaffoldSyncFile_1.readScaffoldSyncFile)(location, SCAFFOLD_SYNC_STATE_FILE_1.SCAFFOLD_SYNC_STATE_FILE);
|
|
28
|
-
const previous = state === undefined ? {} : parseState(state.text);
|
|
29
|
-
const plan = {
|
|
30
|
-
location,
|
|
31
|
-
files: {},
|
|
32
|
-
expected: {},
|
|
33
|
-
changed: [],
|
|
34
|
-
unchanged: [],
|
|
35
|
-
conflicts: [],
|
|
36
|
-
retired: [],
|
|
37
|
-
};
|
|
38
|
-
const desired = {};
|
|
39
|
-
for (const [relative, content] of Object.entries(bundle)) {
|
|
40
|
-
if (!(0, isScaffoldInstruction_1.isScaffoldInstruction)(relative))
|
|
41
|
-
continue;
|
|
42
|
-
desired[relative] = digest(content);
|
|
43
|
-
const current = (0, readScaffoldSyncFile_1.readScaffoldSyncFile)(location, relative);
|
|
44
|
-
if (current !== undefined && digest(current.text) === desired[relative]) {
|
|
45
|
-
plan.unchanged.push(relative);
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
// An explicit baseline is the caller's assertion of the edition each supplied file came from, so it governs over the stored record; the record still covers every file the baseline lacks.
|
|
49
|
-
const baseline = (props.baseline === undefined
|
|
50
|
-
? undefined
|
|
51
|
-
: priorDigest(props.baseline, relative)) ?? previous[relative];
|
|
52
|
-
if (current !== undefined && digest(current.text) !== baseline) {
|
|
53
|
-
plan.conflicts.push(relative);
|
|
54
|
-
continue;
|
|
55
|
-
}
|
|
56
|
-
plan.changed.push(relative);
|
|
57
|
-
plan.files[relative] = content;
|
|
58
|
-
plan.expected[relative] = current?.snapshot ?? null;
|
|
59
|
-
}
|
|
60
|
-
plan.retired = Object.keys(previous).filter((relative) => !(relative in desired));
|
|
61
|
-
const next = JSON.stringify({ version: 1, files: { ...previous, ...desired } }, null, 2) + "\n";
|
|
62
|
-
// State is last: a stopped content publication must not advance its baseline.
|
|
63
|
-
if (state?.text !== next) {
|
|
64
|
-
plan.files[SCAFFOLD_SYNC_STATE_FILE_1.SCAFFOLD_SYNC_STATE_FILE] = next;
|
|
65
|
-
plan.expected[SCAFFOLD_SYNC_STATE_FILE_1.SCAFFOLD_SYNC_STATE_FILE] = state?.snapshot ?? null;
|
|
66
|
-
}
|
|
67
|
-
return plan;
|
|
68
|
-
}
|
|
69
|
-
/** Canonical line endings avoid treating checkout conversion as a local edit. */
|
|
70
|
-
function digest(text) {
|
|
71
|
-
return (0, node_crypto_1.createHash)("sha256")
|
|
72
|
-
.update(text.replaceAll("\r\n", "\n"))
|
|
73
|
-
.digest("hex");
|
|
74
|
-
}
|
|
75
|
-
/** Read the caller's explicit prior adopted instruction file without changing it. */
|
|
76
|
-
function priorDigest(root, relative) {
|
|
77
|
-
const source = (0, readScaffoldSyncFile_1.readScaffoldSyncFile)(root, relative);
|
|
78
|
-
return source === undefined ? undefined : digest(source.text);
|
|
79
|
-
}
|
|
80
|
-
/** Refuse malformed state and any path outside the generated instruction surface. */
|
|
81
|
-
function parseState(text) {
|
|
82
|
-
const state = JSON.parse(text);
|
|
83
|
-
if (typeof state !== "object" ||
|
|
84
|
-
state === null ||
|
|
85
|
-
!("version" in state) ||
|
|
86
|
-
state.version !== 1 ||
|
|
87
|
-
!("files" in state) ||
|
|
88
|
-
typeof state.files !== "object" ||
|
|
89
|
-
state.files === null ||
|
|
90
|
-
Array.isArray(state.files))
|
|
91
|
-
throw new Error("Invalid scaffold sync state.");
|
|
92
|
-
const files = {};
|
|
93
|
-
for (const [relative, value] of Object.entries(state.files)) {
|
|
94
|
-
if (!(0, isScaffoldInstruction_1.isScaffoldInstruction)(relative) ||
|
|
95
|
-
typeof value !== "string" ||
|
|
96
|
-
!/^[0-9a-f]{64}$/u.test(value))
|
|
97
|
-
throw new Error("Invalid scaffold sync baseline: " + relative);
|
|
98
|
-
files[relative] = value;
|
|
99
|
-
}
|
|
100
|
-
return files;
|
|
101
|
-
}
|
|
102
|
-
//# sourceMappingURL=planScaffoldSync.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"planScaffoldSync.js","sourceRoot":"","sources":["../src/planScaffoldSync.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAyC;AACzC,0DAA6B;AAI7B,yEAAsE;AACtE,mEAAgE;AAChE,iEAA8D;AAC9D,6EAA0E;AAE1E;;;;;;;;;;GAUG;AACH,0BAAiC,KAAyB;IACxD,MAAM,QAAQ,GAAW,mBAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACtD,MAAM,MAAM,GAA2B,IAAA,uDAA0B,GAAE,CAAC;IACpE,MAAM,KAAK,GAA4C,IAAA,2CAAoB,EACzE,QAAQ,EACR,mDAAwB,CACzB,CAAC;IACF,MAAM,QAAQ,GACZ,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,IAAI,GAAsB;QAC9B,QAAQ;QACR,KAAK,EAAE,EAAE;QACT,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,EAAE;QACX,SAAS,EAAE,EAAE;QACb,SAAS,EAAE,EAAE;QACb,OAAO,EAAE,EAAE;KACZ,CAAC;IACF,MAAM,OAAO,GAA2B,EAAE,CAAC;IAC3C,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QACzD,IAAI,CAAC,IAAA,6CAAqB,EAAC,QAAQ,CAAC;YAAE,SAAS;QAC/C,OAAO,CAAC,QAAQ,CAAC,GAAG,MAAM,CA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