@automovie/template 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +37 -2
- package/build/resolveTemplateVersions.ts +92 -0
- package/build/syncScaffoldInstructions.ts +28 -0
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.d.ts +14 -0
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js +52 -0
- package/lib/AUTOMOVIE_TEMPLATE_CATALOGS.js.map +1 -0
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.d.ts +2 -0
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js +42 -0
- package/lib/AUTOMOVIE_TEMPLATE_VERSIONS.js.map +1 -0
- package/lib/AutoMovieScaffoldLayer.d.ts +15 -0
- package/lib/AutoMovieScaffoldLayer.js +3 -0
- package/lib/AutoMovieScaffoldLayer.js.map +1 -0
- package/lib/FILE_ATTRIBUTE_DIRECTORY.d.ts +2 -0
- package/lib/FILE_ATTRIBUTE_DIRECTORY.js +6 -0
- package/lib/FILE_ATTRIBUTE_DIRECTORY.js.map +1 -0
- package/lib/IAutoMovieCatalogVersionProps.d.ts +16 -0
- package/lib/IAutoMovieCatalogVersionProps.js +3 -0
- package/lib/IAutoMovieCatalogVersionProps.js.map +1 -0
- package/lib/IAutoMovieScaffoldProps.d.ts +14 -0
- package/lib/IAutoMovieScaffoldProps.js +3 -0
- package/lib/IAutoMovieScaffoldProps.js.map +1 -0
- package/lib/IAutoMovieScaffoldSourceEntry.d.ts +18 -0
- package/lib/IAutoMovieScaffoldSourceEntry.js +3 -0
- package/lib/IAutoMovieScaffoldSourceEntry.js.map +1 -0
- package/lib/IAutoMovieTemplateDependencyVersionsProps.d.ts +17 -0
- package/lib/IAutoMovieTemplateDependencyVersionsProps.js +3 -0
- package/lib/IAutoMovieTemplateDependencyVersionsProps.js.map +1 -0
- package/lib/IAutoMovieWorkspacePackageVersions.d.ts +34 -0
- package/lib/IAutoMovieWorkspacePackageVersions.js +3 -0
- package/lib/IAutoMovieWorkspacePackageVersions.js.map +1 -0
- package/lib/IBoundChild.d.ts +71 -0
- package/lib/IBoundChild.js +3 -0
- package/lib/IBoundChild.js.map +1 -0
- package/lib/IBoundChildStatus.d.ts +20 -0
- package/lib/IBoundChildStatus.js +3 -0
- package/lib/IBoundChildStatus.js.map +1 -0
- package/lib/IBoundParent.d.ts +61 -0
- package/lib/IBoundParent.js +3 -0
- package/lib/IBoundParent.js.map +1 -0
- package/lib/IBoundParentStatus.d.ts +14 -0
- package/lib/IBoundParentStatus.js +3 -0
- package/lib/IBoundParentStatus.js.map +1 -0
- package/lib/ICreateResult.d.ts +27 -0
- package/lib/ICreateResult.js +3 -0
- package/lib/ICreateResult.js.map +1 -0
- package/lib/IScaffoldCompletedFilePublicationOutcome.d.ts +16 -0
- package/lib/IScaffoldCompletedFilePublicationOutcome.js +3 -0
- package/lib/IScaffoldCompletedFilePublicationOutcome.js.map +1 -0
- package/lib/IScaffoldCompletedPublication.d.ts +15 -0
- package/lib/IScaffoldCompletedPublication.js +3 -0
- package/lib/IScaffoldCompletedPublication.js.map +1 -0
- package/lib/IScaffoldFileSnapshot.d.ts +24 -0
- package/lib/IScaffoldFileSnapshot.js +3 -0
- package/lib/IScaffoldFileSnapshot.js.map +1 -0
- package/lib/IScaffoldParentPublicationRequest.d.ts +26 -0
- package/lib/IScaffoldParentPublicationRequest.js +3 -0
- package/lib/IScaffoldParentPublicationRequest.js.map +1 -0
- package/lib/IScaffoldPartialFilePublicationOutcome.d.ts +22 -0
- package/lib/IScaffoldPartialFilePublicationOutcome.js +3 -0
- package/lib/IScaffoldPartialFilePublicationOutcome.js.map +1 -0
- package/lib/IScaffoldPhysicalDirectory.d.ts +20 -0
- package/lib/IScaffoldPhysicalDirectory.js +3 -0
- package/lib/IScaffoldPhysicalDirectory.js.map +1 -0
- package/lib/IScaffoldPosixConstants.d.ts +24 -0
- package/lib/IScaffoldPosixConstants.js +3 -0
- package/lib/IScaffoldPosixConstants.js.map +1 -0
- package/lib/IScaffoldPublicationEntry.d.ts +20 -0
- package/lib/IScaffoldPublicationEntry.js +3 -0
- package/lib/IScaffoldPublicationEntry.js.map +1 -0
- package/lib/IScaffoldPublicationFailure.d.ts +18 -0
- package/lib/IScaffoldPublicationFailure.js +3 -0
- package/lib/IScaffoldPublicationFailure.js.map +1 -0
- package/lib/IScaffoldPublicationOptions.d.ts +17 -0
- package/lib/IScaffoldPublicationOptions.js +3 -0
- package/lib/IScaffoldPublicationOptions.js.map +1 -0
- package/lib/IScaffoldPublicationReceipt.d.ts +25 -0
- package/lib/IScaffoldPublicationReceipt.js +3 -0
- package/lib/IScaffoldPublicationReceipt.js.map +1 -0
- package/lib/IScaffoldRefusedFilePublicationOutcome.d.ts +18 -0
- package/lib/IScaffoldRefusedFilePublicationOutcome.js +3 -0
- package/lib/IScaffoldRefusedFilePublicationOutcome.js.map +1 -0
- package/lib/IScaffoldSyncPlan.d.ts +25 -0
- package/lib/IScaffoldSyncPlan.js +3 -0
- package/lib/IScaffoldSyncPlan.js.map +1 -0
- package/lib/IScaffoldSyncProps.d.ts +16 -0
- package/lib/IScaffoldSyncProps.js +3 -0
- package/lib/IScaffoldSyncProps.js.map +1 -0
- package/lib/IWindowsFileInformation.d.ts +20 -0
- package/lib/IWindowsFileInformation.js +3 -0
- package/lib/IWindowsFileInformation.js.map +1 -0
- package/lib/IWindowsLibrary.d.ts +127 -0
- package/lib/IWindowsLibrary.js +3 -0
- package/lib/IWindowsLibrary.js.map +1 -0
- package/lib/SCAFFOLD_SYNC_STATE_FILE.d.ts +4 -0
- package/lib/SCAFFOLD_SYNC_STATE_FILE.js +8 -0
- package/lib/SCAFFOLD_SYNC_STATE_FILE.js.map +1 -0
- package/lib/ScaffoldFilePublicationOutcome.d.ts +14 -0
- package/lib/ScaffoldFilePublicationOutcome.js +3 -0
- package/lib/ScaffoldFilePublicationOutcome.js.map +1 -0
- package/lib/ScaffoldParentChangedError.d.ts +11 -0
- package/lib/ScaffoldParentChangedError.js +19 -0
- package/lib/ScaffoldParentChangedError.js.map +1 -0
- package/lib/ScaffoldPublicationError.d.ts +17 -0
- package/lib/ScaffoldPublicationError.js +46 -0
- package/lib/ScaffoldPublicationError.js.map +1 -0
- package/lib/assertOrdinaryFile.d.ts +13 -0
- package/lib/assertOrdinaryFile.js +20 -0
- package/lib/assertOrdinaryFile.js.map +1 -0
- package/lib/assertOrdinarySingleLinkFile.d.ts +13 -0
- package/lib/assertOrdinarySingleLinkFile.js +22 -0
- package/lib/assertOrdinarySingleLinkFile.js.map +1 -0
- package/lib/assertScaffoldOwnership.d.ts +13 -0
- package/lib/assertScaffoldOwnership.js +24 -0
- package/lib/assertScaffoldOwnership.js.map +1 -0
- package/lib/assertScaffoldPhysicalDirectory.d.ts +16 -0
- package/lib/assertScaffoldPhysicalDirectory.js +26 -0
- package/lib/assertScaffoldPhysicalDirectory.js.map +1 -0
- package/lib/assertScaffoldProjectName.d.ts +18 -0
- package/lib/assertScaffoldProjectName.js +34 -0
- package/lib/assertScaffoldProjectName.js.map +1 -0
- package/lib/attachScaffoldSyncState.d.ts +18 -0
- package/lib/attachScaffoldSyncState.js +30 -0
- package/lib/attachScaffoldSyncState.js.map +1 -0
- package/lib/captureEmptyScaffoldPhysicalDirectory.d.ts +13 -0
- package/lib/captureEmptyScaffoldPhysicalDirectory.js +69 -0
- package/lib/captureEmptyScaffoldPhysicalDirectory.js.map +1 -0
- package/lib/captureScaffoldFile.d.ts +13 -0
- package/lib/captureScaffoldFile.js +67 -0
- package/lib/captureScaffoldFile.js.map +1 -0
- package/lib/captureScaffoldPhysicalDirectory.d.ts +13 -0
- package/lib/captureScaffoldPhysicalDirectory.js +63 -0
- package/lib/captureScaffoldPhysicalDirectory.js.map +1 -0
- package/lib/combineScaffoldFailures.d.ts +19 -0
- package/lib/combineScaffoldFailures.js +32 -0
- package/lib/combineScaffoldFailures.js.map +1 -0
- package/lib/createAutoMovieCatalogVersionResolver.d.ts +17 -0
- package/lib/createAutoMovieCatalogVersionResolver.js +64 -0
- package/lib/createAutoMovieCatalogVersionResolver.js.map +1 -0
- package/lib/createScaffoldSyncState.d.ts +12 -0
- package/lib/createScaffoldSyncState.js +26 -0
- package/lib/createScaffoldSyncState.js.map +1 -0
- package/lib/createScaffoldVariables.d.ts +25 -0
- package/lib/createScaffoldVariables.js +41 -0
- package/lib/createScaffoldVariables.js.map +1 -0
- package/lib/ensureScaffoldBaseDirectory.d.ts +19 -0
- package/lib/ensureScaffoldBaseDirectory.js +89 -0
- package/lib/ensureScaffoldBaseDirectory.js.map +1 -0
- package/lib/ensureScaffoldFileDirectory.d.ts +25 -0
- package/lib/ensureScaffoldFileDirectory.js +103 -0
- package/lib/ensureScaffoldFileDirectory.js.map +1 -0
- package/lib/index.d.ts +47 -0
- package/lib/index.js +64 -0
- package/lib/index.js.map +1 -0
- package/lib/inside.d.ts +12 -0
- package/lib/inside.js +57 -0
- package/lib/inside.js.map +1 -0
- package/lib/isScaffoldInstruction.d.ts +12 -0
- package/lib/isScaffoldInstruction.js +29 -0
- package/lib/isScaffoldInstruction.js.map +1 -0
- package/lib/listAutoMovieScaffoldFiles.d.ts +17 -0
- package/lib/listAutoMovieScaffoldFiles.js +87 -0
- package/lib/listAutoMovieScaffoldFiles.js.map +1 -0
- package/lib/loadWindowsLibrary.d.ts +13 -0
- package/lib/loadWindowsLibrary.js +180 -0
- package/lib/loadWindowsLibrary.js.map +1 -0
- package/lib/mergeScaffoldFiles.d.ts +18 -0
- package/lib/mergeScaffoldFiles.js +37 -0
- package/lib/mergeScaffoldFiles.js.map +1 -0
- package/lib/missingPath.d.ts +12 -0
- package/lib/missingPath.js +18 -0
- package/lib/missingPath.js.map +1 -0
- package/lib/nativeError.d.ts +12 -0
- package/lib/nativeError.js +17 -0
- package/lib/nativeError.js.map +1 -0
- package/lib/openPosixParent.d.ts +13 -0
- package/lib/openPosixParent.js +135 -0
- package/lib/openPosixParent.js.map +1 -0
- package/lib/openWindowsParent.d.ts +13 -0
- package/lib/openWindowsParent.js +224 -0
- package/lib/openWindowsParent.js.map +1 -0
- package/lib/overwriteScaffoldFile.d.ts +22 -0
- package/lib/overwriteScaffoldFile.js +214 -0
- package/lib/overwriteScaffoldFile.js.map +1 -0
- package/lib/physicalDirectoryIdentity.d.ts +15 -0
- package/lib/physicalDirectoryIdentity.js +65 -0
- package/lib/physicalDirectoryIdentity.js.map +1 -0
- package/lib/physicalVersion.d.ts +13 -0
- package/lib/physicalVersion.js +18 -0
- package/lib/physicalVersion.js.map +1 -0
- package/lib/planScaffoldPublication.d.ts +22 -0
- package/lib/planScaffoldPublication.js +100 -0
- package/lib/planScaffoldPublication.js.map +1 -0
- package/lib/planScaffoldSync.d.ts +14 -0
- package/lib/planScaffoldSync.js +102 -0
- package/lib/planScaffoldSync.js.map +1 -0
- package/lib/publishFiles.d.ts +23 -0
- package/lib/publishFiles.js +124 -0
- package/lib/publishFiles.js.map +1 -0
- package/lib/publishNativeScaffoldFile.d.ts +21 -0
- package/lib/publishNativeScaffoldFile.js +211 -0
- package/lib/publishNativeScaffoldFile.js.map +1 -0
- package/lib/publishScaffoldCandidate.d.ts +24 -0
- package/lib/publishScaffoldCandidate.js +70 -0
- package/lib/publishScaffoldCandidate.js.map +1 -0
- package/lib/readAutoMovieScaffoldSources.d.ts +20 -0
- package/lib/readAutoMovieScaffoldSources.js +103 -0
- package/lib/readAutoMovieScaffoldSources.js.map +1 -0
- package/lib/readScaffoldSyncFile.d.ts +16 -0
- package/lib/readScaffoldSyncFile.js +64 -0
- package/lib/readScaffoldSyncFile.js.map +1 -0
- package/lib/renderScaffold.d.ts +19 -0
- package/lib/renderScaffold.js +33 -0
- package/lib/renderScaffold.js.map +1 -0
- package/lib/renderScaffoldEntries.d.ts +20 -0
- package/lib/renderScaffoldEntries.js +106 -0
- package/lib/renderScaffoldEntries.js.map +1 -0
- package/lib/renderScaffoldInstructions.d.ts +17 -0
- package/lib/renderScaffoldInstructions.js +23 -0
- package/lib/renderScaffoldInstructions.js.map +1 -0
- package/lib/renderScaffoldLayer.d.ts +20 -0
- package/lib/renderScaffoldLayer.js +28 -0
- package/lib/renderScaffoldLayer.js.map +1 -0
- package/lib/renderTemplate.d.ts +19 -0
- package/lib/renderTemplate.js +56 -0
- package/lib/renderTemplate.js.map +1 -0
- package/lib/renderWorkspaceProductionScaffold.d.ts +19 -0
- package/lib/renderWorkspaceProductionScaffold.js +30 -0
- package/lib/renderWorkspaceProductionScaffold.js.map +1 -0
- package/lib/renderWorkspaceScaffold.d.ts +19 -0
- package/lib/renderWorkspaceScaffold.js +33 -0
- package/lib/renderWorkspaceScaffold.js.map +1 -0
- package/lib/replaceSharedScaffoldFile.d.ts +30 -0
- package/lib/replaceSharedScaffoldFile.js +106 -0
- package/lib/replaceSharedScaffoldFile.js.map +1 -0
- package/lib/resolveAutoMovieCatalogVersion.d.ts +19 -0
- package/lib/resolveAutoMovieCatalogVersion.js +24 -0
- package/lib/resolveAutoMovieCatalogVersion.js.map +1 -0
- package/lib/resolveAutoMovieTemplateDependencyVersions.d.ts +19 -0
- package/lib/resolveAutoMovieTemplateDependencyVersions.js +62 -0
- package/lib/resolveAutoMovieTemplateDependencyVersions.js.map +1 -0
- package/lib/resolveScaffoldPosixConstants.d.ts +13 -0
- package/lib/resolveScaffoldPosixConstants.js +44 -0
- package/lib/resolveScaffoldPosixConstants.js.map +1 -0
- package/lib/scaffoldAssetDirectory.d.ts +19 -0
- package/lib/scaffoldAssetDirectory.js +63 -0
- package/lib/scaffoldAssetDirectory.js.map +1 -0
- package/lib/scaffoldPhysicalIdentity.d.ts +18 -0
- package/lib/scaffoldPhysicalIdentity.js +22 -0
- package/lib/scaffoldPhysicalIdentity.js.map +1 -0
- package/lib/scaffoldSharedSkillDirectory.d.ts +17 -0
- package/lib/scaffoldSharedSkillDirectory.js +62 -0
- package/lib/scaffoldSharedSkillDirectory.js.map +1 -0
- package/lib/scaffoldSharedSkillPath.d.ts +17 -0
- package/lib/scaffoldSharedSkillPath.js +66 -0
- package/lib/scaffoldSharedSkillPath.js.map +1 -0
- package/lib/skills/3d-modeling/conditioning.md +82 -0
- package/lib/skills/3d-modeling/crafting.md +82 -0
- package/lib/skills/3d-modeling/diffusion.md +34 -0
- package/lib/skills/3d-modeling/inspection.md +54 -0
- package/lib/skills/3d-modeling/lofting.md +43 -0
- package/lib/skills/3d-modeling/modularization.md +31 -0
- package/lib/skills/3d-modeling/recovery.md +29 -0
- package/lib/skills/3d-modeling/rigging.md +97 -0
- package/lib/skills/3d-modeling/sources.md +29 -0
- package/lib/skills/contracts/development/common.md +13 -0
- package/lib/skills/contracts/development/design.md +28 -0
- package/lib/skills/contracts/development/implementation.md +49 -0
- package/lib/skills/contracts/development/testing.md +27 -0
- package/lib/skills/development/repair.md +13 -0
- package/lib/skills/documentation/SKILL.md +25 -0
- package/lib/skills/documentation/writing.md +51 -0
- package/lib/skills/motion/authoring.md +51 -0
- package/lib/skills/motion/contacts.md +39 -0
- package/lib/skills/motion/laws.md +23 -0
- package/lib/skills/motion/layers.md +7 -0
- package/lib/skills/motion/transitions.md +27 -0
- package/lib/skills/motion/variation.md +23 -0
- package/lib/skills/motion/verification.md +36 -0
- package/lib/skills/prompting/SKILL.md +80 -0
- package/lib/skills/visual-debugging/capture.md +60 -0
- package/lib/skills/visual-debugging/comparison.md +35 -0
- package/lib/skills/visual-debugging/correction-rounds.md +34 -0
- package/lib/skills/visual-debugging/passes.md +29 -0
- package/lib/skills/visual-debugging/rendering-cost.md +5 -0
- package/lib/syncScaffold.d.ts +19 -0
- package/lib/syncScaffold.js +28 -0
- package/lib/syncScaffold.js.map +1 -0
- package/lib/writeFiles.d.ts +20 -0
- package/lib/writeFiles.js +33 -0
- package/lib/writeFiles.js.map +1 -0
- package/lib/writeScaffoldFile.d.ts +35 -0
- package/lib/writeScaffoldFile.js +107 -0
- package/lib/writeScaffoldFile.js.map +1 -0
- package/lib/writtenVersion.d.ts +13 -0
- package/lib/writtenVersion.js +18 -0
- package/lib/writtenVersion.js.map +1 -0
- package/package.json +59 -3
- package/scaffold/instructions/.agents/skills/$documentation +0 -0
- package/scaffold/instructions/.agents/skills/$prompting +0 -0
- package/scaffold/instructions/.agents/skills/3d-modeling/$conditioning.md +0 -0
- package/scaffold/instructions/.agents/skills/3d-modeling/$crafting.md +0 -0
- package/scaffold/instructions/.agents/skills/3d-modeling/$diffusion.md +0 -0
- package/scaffold/instructions/.agents/skills/3d-modeling/$inspection.md +0 -0
- package/scaffold/instructions/.agents/skills/3d-modeling/$lofting.md +0 -0
- package/scaffold/instructions/.agents/skills/3d-modeling/$modularization.md +0 -0
- package/scaffold/instructions/.agents/skills/3d-modeling/$recovery.md +0 -0
- package/scaffold/instructions/.agents/skills/3d-modeling/$rigging.md +0 -0
- package/scaffold/instructions/.agents/skills/3d-modeling/$sources.md +0 -0
- package/scaffold/instructions/.agents/skills/3d-modeling/SKILL.md +32 -0
- package/scaffold/instructions/.agents/skills/3d-modeling/coarse-forms.md +25 -0
- package/scaffold/instructions/.agents/skills/audio/SKILL.md +28 -0
- package/scaffold/instructions/.agents/skills/audio/acquisition.md +25 -0
- package/scaffold/instructions/.agents/skills/audio/local-speech.md +11 -0
- package/scaffold/instructions/.agents/skills/audio/sound-effects.md +29 -0
- package/scaffold/instructions/.agents/skills/contracts/SKILL.md +41 -0
- package/scaffold/instructions/.agents/skills/contracts/development/$common.md +0 -0
- package/scaffold/instructions/.agents/skills/contracts/development/$design.md +0 -0
- package/scaffold/instructions/.agents/skills/contracts/development/$implementation.md +0 -0
- package/scaffold/instructions/.agents/skills/contracts/development/$testing.md +0 -0
- package/scaffold/instructions/.agents/skills/contracts/development/SKILL.md +22 -0
- package/scaffold/instructions/.agents/skills/contracts/development/behaviors.md +25 -0
- package/scaffold/instructions/.agents/skills/contracts/development/composition.md +29 -0
- package/scaffold/instructions/.agents/skills/contracts/development/entities.md +27 -0
- package/scaffold/instructions/.agents/skills/contracts/development/statements/behaviors.md +42 -0
- package/scaffold/instructions/.agents/skills/contracts/development/statements/composition.md +32 -0
- package/scaffold/instructions/.agents/skills/contracts/development/statements/entities.md +34 -0
- package/scaffold/instructions/.agents/skills/contracts/story/SKILL.md +44 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/brief.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/common.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/narratives.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/screenplay.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/scripts.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/settings.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/discovery/treatments.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/common.md +17 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/common.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/realized.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/screenplay.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/obligations/scripts.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/realized.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/screenplay.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/naturalness/scripts.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/brief.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/common.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/index.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/narratives.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/review.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/screenplay.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/scripts.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/settings.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/obligations/treatments.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/brief.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/common.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/index.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/narratives.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/realized.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/research.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/review.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/screenplay.md +17 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/scripts.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/settings.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/principles/treatments.md +13 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/brief.md +21 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/common.md +42 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/narratives.md +8 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/screenplay.md +15 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/scripts.md +11 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/settings.md +25 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/discovery/treatments.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/common.md +94 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/common.md +20 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/realized.md +15 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/screenplay.md +11 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/obligations/scripts.md +17 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/realized.md +19 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/screenplay.md +25 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/naturalness/scripts.md +19 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/brief.md +17 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/common.md +31 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/index.md +15 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/narratives.md +43 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/review.md +37 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/screenplay.md +26 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/scripts.md +26 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/settings.md +38 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/obligations/treatments.md +31 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/brief.md +21 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/common.md +15 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/index.md +17 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/narratives.md +41 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/realized.md +17 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/research.md +34 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/review.md +37 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/screenplay.md +82 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/scripts.md +45 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/settings.md +34 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/principles/treatments.md +27 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/screenplay.md +14 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/scripts.md +12 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/statements/upstream/treatments.md +10 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/screenplay.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/scripts.md +9 -0
- package/scaffold/instructions/.agents/skills/contracts/story/shared/upstream/treatments.md +9 -0
- package/scaffold/instructions/.agents/skills/development/$repair.md +0 -0
- package/scaffold/instructions/.agents/skills/development/SKILL.md +33 -0
- package/scaffold/instructions/.agents/skills/development/entities.md +43 -0
- package/scaffold/instructions/.agents/skills/development/reuse.md +47 -0
- package/scaffold/instructions/.agents/skills/development/source-layout.md +69 -0
- package/scaffold/instructions/.agents/skills/development/testing.md +27 -0
- package/scaffold/instructions/.agents/skills/evidence/SKILL.md +16 -0
- package/scaffold/instructions/.agents/skills/evidence/adoption.md +11 -0
- package/scaffold/instructions/.agents/skills/evidence/answering.md +11 -0
- package/scaffold/instructions/.agents/skills/evidence/configuration.md +23 -0
- package/scaffold/instructions/.agents/skills/image/SKILL.md +69 -0
- package/scaffold/instructions/.agents/skills/motion/$authoring.md +0 -0
- package/scaffold/instructions/.agents/skills/motion/$contacts.md +0 -0
- package/scaffold/instructions/.agents/skills/motion/$laws.md +0 -0
- package/scaffold/instructions/.agents/skills/motion/$layers.md +0 -0
- package/scaffold/instructions/.agents/skills/motion/$transitions.md +0 -0
- package/scaffold/instructions/.agents/skills/motion/$variation.md +0 -0
- package/scaffold/instructions/.agents/skills/motion/$verification.md +0 -0
- package/scaffold/instructions/.agents/skills/motion/SKILL.md +55 -0
- package/scaffold/instructions/.agents/skills/motion/catalog-cases.md +11 -0
- package/scaffold/instructions/.agents/skills/motion/control-channels.md +19 -0
- package/scaffold/instructions/.agents/skills/motion/frame-evaluation.md +25 -0
- package/scaffold/instructions/.agents/skills/motion/method-references.md +23 -0
- package/scaffold/instructions/.agents/skills/motion/physical-feedback.md +31 -0
- package/scaffold/instructions/.agents/skills/motion/retargeting.md +23 -0
- package/scaffold/instructions/.agents/skills/motion/segment-review.md +17 -0
- package/scaffold/instructions/.agents/skills/motion/staging.md +29 -0
- package/scaffold/instructions/.agents/skills/production/SKILL.md +45 -0
- package/scaffold/instructions/.agents/skills/production/assembly.md +30 -0
- package/scaffold/instructions/.agents/skills/production/media-records.md +29 -0
- package/scaffold/instructions/.agents/skills/production/project-context.md +25 -0
- package/scaffold/instructions/.agents/skills/production/stage-caches.md +30 -0
- package/scaffold/instructions/.agents/skills/production/sustained-runs.md +21 -0
- package/scaffold/instructions/.agents/skills/production/sync-and-reorganization.md +21 -0
- package/scaffold/instructions/.agents/skills/review/SKILL.md +24 -0
- package/scaffold/instructions/.agents/skills/review/delivery-review.md +65 -0
- package/scaffold/instructions/.agents/skills/review/estimation.md +48 -0
- package/scaffold/instructions/.agents/skills/review/independent-reading.md +39 -0
- package/scaffold/instructions/.agents/skills/review/narrative-rounds.md +53 -0
- package/scaffold/instructions/.agents/skills/review/source-review.md +31 -0
- package/scaffold/instructions/.agents/skills/story/SKILL.md +20 -0
- package/scaffold/instructions/.agents/skills/story/correction/SKILL.md +13 -0
- package/scaffold/instructions/.agents/skills/story/correction/inspection.md +29 -0
- package/scaffold/instructions/.agents/skills/story/correction/repair.md +35 -0
- package/scaffold/instructions/.agents/skills/story/document-layout.md +38 -0
- package/scaffold/instructions/.agents/skills/story/evidence/SKILL.md +13 -0
- package/scaffold/instructions/.agents/skills/story/evidence/answer-placement.md +13 -0
- package/scaffold/instructions/.agents/skills/story/evidence/answer-writing.md +23 -0
- package/scaffold/instructions/.agents/skills/story/layers/SKILL.md +17 -0
- package/scaffold/instructions/.agents/skills/story/layers/brief.md +29 -0
- package/scaffold/instructions/.agents/skills/story/layers/notation.md +34 -0
- package/scaffold/instructions/.agents/skills/story/layers/screenplay.md +15 -0
- package/scaffold/instructions/.agents/skills/story/layers/scripts.md +11 -0
- package/scaffold/instructions/.agents/skills/story/layers/settings.md +39 -0
- package/scaffold/instructions/.agents/skills/story/layers/treatments.md +9 -0
- package/scaffold/instructions/.agents/skills/story/naturalness/SKILL.md +13 -0
- package/scaffold/instructions/.agents/skills/story/naturalness/rewriting.md +17 -0
- package/scaffold/instructions/.agents/skills/story/naturalness/transfer.md +11 -0
- package/scaffold/instructions/.agents/skills/story/planning/SKILL.md +15 -0
- package/scaffold/instructions/.agents/skills/story/planning/direction.md +14 -0
- package/scaffold/instructions/.agents/skills/story/planning/discovery.md +20 -0
- package/scaffold/instructions/.agents/skills/story/planning/requirements.md +25 -0
- package/scaffold/instructions/.agents/skills/story/planning/research.md +25 -0
- package/scaffold/instructions/.agents/skills/story/workflow.md +61 -0
- package/scaffold/instructions/.agents/skills/video/SKILL.md +29 -0
- package/scaffold/instructions/.agents/skills/video/diffusion.md +33 -0
- package/scaffold/instructions/.agents/skills/video/generation.md +27 -0
- package/scaffold/instructions/.agents/skills/video/prompts.md +51 -0
- package/scaffold/instructions/.agents/skills/visual-debugging/$capture.md +0 -0
- package/scaffold/instructions/.agents/skills/visual-debugging/$comparison.md +0 -0
- package/scaffold/instructions/.agents/skills/visual-debugging/$correction-rounds.md +0 -0
- package/scaffold/instructions/.agents/skills/visual-debugging/$passes.md +0 -0
- package/scaffold/instructions/.agents/skills/visual-debugging/$rendering-cost.md +0 -0
- package/scaffold/instructions/.agents/skills/visual-debugging/SKILL.md +30 -0
- package/scaffold/instructions/AGENTS.md +96 -0
- package/scaffold/instructions/CLAUDE.md +1 -0
- package/scaffold/production/PROJECT.md +3 -0
- package/scaffold/production/README.md +146 -0
- package/scaffold/production/_gitignore +20 -0
- package/scaffold/production/evidence.config.ts +12 -0
- package/scaffold/production/index.html +20 -0
- package/scaffold/production/lint.config.ts +46 -0
- package/scaffold/production/package.json +54 -0
- package/scaffold/production/src/IFilm.ts +41 -0
- package/scaffold/production/src/IFilmProduction.ts +80 -0
- package/scaffold/production/src/clampProductionSeconds.ts +21 -0
- package/scaffold/production/src/composition/films/index.ts +10 -0
- package/scaffold/production/src/composition/films/starter.ts +45 -0
- package/scaffold/production/src/executable/capture.ts +489 -0
- package/scaffold/production/src/executable/physics.ts +48 -0
- package/scaffold/production/src/executable/planCaptureStills.ts +65 -0
- package/scaffold/production/src/executable/recovery/node/artifact/archiveAutoMovieRecoveryModel.ts +171 -0
- package/scaffold/production/src/executable/recovery/node/artifact/createAutoMovieRecoveryArtifact.ts +268 -0
- package/scaffold/production/src/executable/recovery/node/artifact/index.ts +3 -0
- package/scaffold/production/src/executable/recovery/node/artifact/writeAutoMovieRecoveryArtifact.ts +303 -0
- package/scaffold/production/src/executable/recovery/node/cli.ts +12 -0
- package/scaffold/production/src/executable/recovery/node/index.ts +9 -0
- package/scaffold/production/src/executable/recovery/node/internal/IAutoMovieRecoveryMemoryUsage.ts +25 -0
- package/scaffold/production/src/executable/recovery/node/internal/RecoveryFileVectorTable.ts +95 -0
- package/scaffold/production/src/executable/recovery/node/internal/RecoveryFileVectorTableInput.ts +50 -0
- package/scaffold/production/src/executable/recovery/node/internal/createRecoveryFileVectorTable.ts +181 -0
- package/scaffold/production/src/executable/recovery/node/internal/observeRecoveryAtlas.ts +492 -0
- package/scaffold/production/src/executable/recovery/node/internal/readAutoMovieRecoveryBoundedFile.ts +57 -0
- package/scaffold/production/src/executable/recovery/node/internal/readRecoveryCameraImages.ts +80 -0
- package/scaffold/production/src/executable/recovery/node/internal/readRecoveryFixedReference.ts +26 -0
- package/scaffold/production/src/executable/recovery/node/internal/recovery.ts +272 -0
- package/scaffold/production/src/executable/recovery/node/internal/recoveryAtlas.ts +152 -0
- package/scaffold/production/src/executable/recovery/node/internal/recoveryCameraMap.ts +113 -0
- package/scaffold/production/src/executable/recovery/node/internal/recoveryCameraScene.ts +117 -0
- package/scaffold/production/src/executable/recovery/node/internal/recoveryCameras.ts +158 -0
- package/scaffold/production/src/executable/recovery/node/internal/recoveryContourPath.ts +185 -0
- package/scaffold/production/src/executable/recovery/node/internal/recoveryImages.ts +176 -0
- package/scaffold/production/src/executable/recovery/node/internal/recoveryLocal.ts +151 -0
- package/scaffold/production/src/executable/recovery/node/internal/recoveryOpen.ts +237 -0
- package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryContourFileMesh.ts +265 -0
- package/scaffold/production/src/executable/recovery/node/mesh/createAutoMovieRecoveryMeshSpool.ts +252 -0
- package/scaffold/production/src/executable/recovery/node/mesh/index.ts +3 -0
- package/scaffold/production/src/executable/recovery/node/mesh/readAutoMovieRecoveryMeshFrontier.ts +239 -0
- package/scaffold/production/src/executable/recovery/node/publishAutoMovieRecoveryArtifact.ts +63 -0
- package/scaffold/production/src/executable/recovery/node/reconstruction/index.ts +1 -0
- package/scaffold/production/src/executable/recovery/node/reconstruction/reconstructAutoMovieRecoveryLocal.ts +473 -0
- package/scaffold/production/src/executable/recovery/node/runAutoMovieRecoveryCommand.ts +148 -0
- package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureError.ts +1 -0
- package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessCaptureErrorCode.ts +1 -0
- package/scaffold/production/src/executable/render/headlessCapture/AutoMovieHeadlessWaitUntil.ts +1 -0
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureOptions.ts +79 -0
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessCaptureSession.ts +39 -0
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessFrameWriter.ts +20 -0
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessLocator.ts +1 -0
- package/scaffold/production/src/executable/render/headlessCapture/IAutoMovieHeadlessPage.ts +1 -0
- package/scaffold/production/src/executable/render/headlessCapture/createHeadlessCaptureAdapter.ts +92 -0
- package/scaffold/production/src/executable/render/headlessCapture/index.ts +9 -0
- package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoOptions.ts +128 -0
- package/scaffold/production/src/executable/render/node/IAutoMovieViewerVideoResult.ts +43 -0
- package/scaffold/production/src/executable/render/node/IProductionRenditionClip.ts +44 -0
- package/scaffold/production/src/executable/render/node/acquireViewerBrowser.ts +24 -0
- package/scaffold/production/src/executable/render/node/addProductionMp4Sample.ts +89 -0
- package/scaffold/production/src/executable/render/node/appendLosslessVideoClip.ts +62 -0
- package/scaffold/production/src/executable/render/node/assembleProductionChunkVideoMp4.ts +167 -0
- package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionClips.ts +184 -0
- package/scaffold/production/src/executable/render/node/assertProductionFeatureUsesRenditionVideo.ts +127 -0
- package/scaffold/production/src/executable/render/node/assertProductionRenditionClipDelivery.ts +102 -0
- package/scaffold/production/src/executable/render/node/cache/IAutoMovieDirectoryArtifactStore.ts +59 -0
- package/scaffold/production/src/executable/render/node/cache/IAutoMovieViewerFrameCacheReport.ts +30 -0
- package/scaffold/production/src/executable/render/node/cache/cacheViewerCaptureSession.ts +187 -0
- package/scaffold/production/src/executable/render/node/cache/composeViewerFrameKeys.ts +55 -0
- package/scaffold/production/src/executable/render/node/cache/createAutoMovieArtifactMiddleware.ts +107 -0
- package/scaffold/production/src/executable/render/node/cache/createAutoMovieDirectoryArtifactStore.ts +203 -0
- package/scaffold/production/src/executable/render/node/cache/digestAutoMovieSourceTree.ts +66 -0
- package/scaffold/production/src/executable/render/node/cache/readViewerFrameStates.ts +95 -0
- package/scaffold/production/src/executable/render/node/capture/DEFAULT_CHROME_EXECUTABLE.ts +11 -0
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageOperationFailure.ts +13 -0
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeArtifact.ts +30 -0
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageRenderAndSeeOptions.ts +51 -0
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceMetadata.ts +27 -0
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderArtifact.ts +44 -0
- package/scaffold/production/src/executable/render/node/capture/IAutoMoviePageSequenceRenderOptions.ts +43 -0
- package/scaffold/production/src/executable/render/node/capture/IAutoMovieSequenceDissolvePixelCheck.ts +39 -0
- package/scaffold/production/src/executable/render/node/capture/captureRenderAndSee.ts +233 -0
- package/scaffold/production/src/executable/render/node/capture/captureSequenceRenderAndSee.ts +377 -0
- package/scaffold/production/src/executable/render/node/capture/index.ts +14 -0
- package/scaffold/production/src/executable/render/node/capture/preserveCleanupFailure.ts +34 -0
- package/scaffold/production/src/executable/render/node/capture/renderAndSeeCommand.ts +169 -0
- package/scaffold/production/src/executable/render/node/capture/renderSequenceAndSeeCommand.ts +165 -0
- package/scaffold/production/src/executable/render/node/capture/verifySequenceDissolvePixels.ts +179 -0
- package/scaffold/production/src/executable/render/node/conformProductionRenditionVideoMp4.ts +86 -0
- package/scaffold/production/src/executable/render/node/conformProductionVisualDeliveryVideoMp4.ts +230 -0
- package/scaffold/production/src/executable/render/node/decodeAutoMovieDelivery.ts +253 -0
- package/scaffold/production/src/executable/render/node/equalRational.ts +36 -0
- package/scaffold/production/src/executable/render/node/exactProductionClockProduct.ts +26 -0
- package/scaffold/production/src/executable/render/node/exportModelToGLB.ts +267 -0
- package/scaffold/production/src/executable/render/node/index.ts +27 -0
- package/scaffold/production/src/executable/render/node/loadModelGltfCore.ts +18 -0
- package/scaffold/production/src/executable/render/node/mixAutoMovieAudioCues.ts +74 -0
- package/scaffold/production/src/executable/render/node/muxProductionFeatureMp4.ts +170 -0
- package/scaffold/production/src/executable/render/node/neutralTrackPresentation.ts +59 -0
- package/scaffold/production/src/executable/render/node/normalizeProductionH264Mp4.ts +110 -0
- package/scaffold/production/src/executable/render/node/openLosslessVideoTrack.ts +81 -0
- package/scaffold/production/src/executable/render/node/parseMp4.ts +46 -0
- package/scaffold/production/src/executable/render/node/parseProductionMp4Output.ts +70 -0
- package/scaffold/production/src/executable/render/node/parseProductionRenditionClip.ts +92 -0
- package/scaffold/production/src/executable/render/node/planViewerVideo.ts +140 -0
- package/scaffold/production/src/executable/render/node/probeParsedProductionVideoMp4.ts +48 -0
- package/scaffold/production/src/executable/render/node/probeProductionPngPicture.ts +223 -0
- package/scaffold/production/src/executable/render/node/probeProductionRenderedMedia.ts +355 -0
- package/scaffold/production/src/executable/render/node/probeProductionVideoMp4.ts +27 -0
- package/scaffold/production/src/executable/render/node/probeVideoTrack.ts +220 -0
- package/scaffold/production/src/executable/render/node/productionRenditionVideoPlan.ts +149 -0
- package/scaffold/production/src/executable/render/node/recordViewerPlayback.ts +137 -0
- package/scaffold/production/src/executable/render/node/renderViewerFrames.ts +139 -0
- package/scaffold/production/src/executable/render/node/renderViewerVideo.ts +301 -0
- package/scaffold/production/src/executable/render/node/renderViewerVideoSession.ts +75 -0
- package/scaffold/production/src/executable/render/node/residentMp4Box.ts +36 -0
- package/scaffold/production/src/executable/render/node/residentPngJs.ts +26 -0
- package/scaffold/production/src/executable/render/node/runViewerVideoEncoder.ts +58 -0
- package/scaffold/production/src/executable/render/node/sameSampleDescription.ts +43 -0
- package/scaffold/production/src/executable/render/node/sameSampleFlags.ts +28 -0
- package/scaffold/production/src/executable/render/node/sampleBytes.ts +46 -0
- package/scaffold/production/src/executable/render/node/sampleDescription.ts +40 -0
- package/scaffold/production/src/executable/render/node/sampleOptions.ts +37 -0
- package/scaffold/production/src/executable/render/node/serializeDescriptionBox.ts +29 -0
- package/scaffold/production/src/executable/render/node/trimProductionAudioPresentation.ts +115 -0
- package/scaffold/production/src/executable/render/node/verifySampleStorage.ts +86 -0
- package/scaffold/production/src/executable/render/node/writeViewerFrameSheet.ts +101 -0
- package/scaffold/production/src/executable/render.ts +92 -0
- package/scaffold/production/src/executable/review.ts +54 -0
- package/scaffold/production/src/executable/viewer/inspection/createViewerDiskSource.ts +119 -0
- package/scaffold/production/src/executable/viewer/inspection/readViewerMaintainedSourceFiles.ts +64 -0
- package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureError.ts +41 -0
- package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessCaptureErrorCode.ts +22 -0
- package/scaffold/production/src/executable/viewer/node/capture/AutoMovieHeadlessWaitUntil.ts +18 -0
- package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessLocator.ts +32 -0
- package/scaffold/production/src/executable/viewer/node/capture/IAutoMovieHeadlessPage.ts +130 -0
- package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureOptions.ts +38 -0
- package/scaffold/production/src/executable/viewer/node/capture/IViewerCaptureSession.ts +41 -0
- package/scaffold/production/src/executable/viewer/node/capture/createViewerCaptureSession.ts +154 -0
- package/scaffold/production/src/executable/viewer/node/capture/index.ts +8 -0
- package/scaffold/production/src/executable/viewer/node/index.ts +2 -0
- package/scaffold/production/src/executable/viewer/process/ProcessOwnership.ts +102 -0
- package/scaffold/production/src/executable/viewer/process/internal/IProcessChildObservation.ts +18 -0
- package/scaffold/production/src/executable/viewer/process/internal/IProcessOwnershipHost.ts +70 -0
- package/scaffold/production/src/executable/viewer/process/internal/ProcessOwnershipController.ts +125 -0
- package/scaffold/production/src/executable/viewer/process/internal/WindowsProcessOwnershipPrograms.ts +52 -0
- package/scaffold/production/src/executable/viewer/process/internal/createNodeProcessOwnershipHost.ts +41 -0
- package/scaffold/production/src/executable/viewer/process/internal/decodeLinuxProcessIdentity.ts +22 -0
- package/scaffold/production/src/executable/viewer/process/internal/decodePosixProcessIdentity.ts +24 -0
- package/scaffold/production/src/executable/viewer/process/internal/decodeWindowsProcessResult.ts +24 -0
- package/scaffold/production/src/executable/viewer/process/internal/readNativeProcessIdentity.ts +45 -0
- package/scaffold/production/src/executable/viewer/process/internal/requireProcessId.ts +15 -0
- package/scaffold/production/src/executable/viewer/process/internal/resolveProcessIdentityReadError.ts +15 -0
- package/scaffold/production/src/executable/viewer/process/internal/runWindowsProcessOperation.ts +41 -0
- package/scaffold/production/src/executable/viewer/process/internal/selectProcessOwnershipTree.ts +68 -0
- package/scaffold/production/src/main.ts +197 -0
- package/scaffold/production/src/selectFilm.ts +34 -0
- package/scaffold/production/test/features/executable/test_plan_capture_stills.ts +75 -0
- package/scaffold/production/test/features/test_clamp_production_seconds.ts +39 -0
- package/scaffold/production/test/features/test_select_film.ts +59 -0
- package/scaffold/production/test/features/testing/test_test_execution.ts +57 -0
- package/scaffold/production/test/features/testing/test_test_selection.ts +78 -0
- package/scaffold/production/test/helpers/assessTestExecution.ts +22 -0
- package/scaffold/production/test/helpers/selectTestFiles.ts +79 -0
- package/scaffold/production/test/index.ts +64 -0
- package/scaffold/production/test/tsconfig.json +6 -0
- package/scaffold/production/tsconfig.json +34 -0
- package/scaffold/production/tsconfig.test.json +9 -0
- package/scaffold/production/vite.config.ts +35 -0
- package/scaffold/workspace/README.md +42 -0
- package/scaffold/workspace/_gitignore +9 -0
- package/scaffold/workspace/package.json +19 -0
- package/scaffold/workspace/pnpm-workspace.yaml +46 -0
- package/src/AUTOMOVIE_TEMPLATE_CATALOGS.ts +48 -0
- package/src/AUTOMOVIE_TEMPLATE_VERSIONS.ts +39 -0
- package/src/AutoMovieScaffoldLayer.ts +18 -0
- package/src/FILE_ATTRIBUTE_DIRECTORY.ts +2 -0
- package/src/IAutoMovieCatalogVersionProps.ts +18 -0
- package/src/IAutoMovieScaffoldProps.ts +14 -0
- package/src/IAutoMovieScaffoldSourceEntry.ts +19 -0
- package/src/IAutoMovieTemplateDependencyVersionsProps.ts +19 -0
- package/src/IAutoMovieWorkspacePackageVersions.ts +44 -0
- package/src/IBoundChild.ts +86 -0
- package/src/IBoundChildStatus.ts +24 -0
- package/src/IBoundParent.ts +65 -0
- package/src/IBoundParentStatus.ts +15 -0
- package/src/ICreateResult.ts +35 -0
- package/src/IScaffoldCompletedFilePublicationOutcome.ts +17 -0
- package/src/IScaffoldCompletedPublication.ts +17 -0
- package/src/IScaffoldFileSnapshot.ts +28 -0
- package/src/IScaffoldParentPublicationRequest.ts +29 -0
- package/src/IScaffoldPartialFilePublicationOutcome.ts +25 -0
- package/src/IScaffoldPhysicalDirectory.ts +22 -0
- package/src/IScaffoldPosixConstants.ts +30 -0
- package/src/IScaffoldPublicationEntry.ts +22 -0
- package/src/IScaffoldPublicationFailure.ts +18 -0
- package/src/IScaffoldPublicationOptions.ts +19 -0
- package/src/IScaffoldPublicationReceipt.ts +29 -0
- package/src/IScaffoldRefusedFilePublicationOutcome.ts +20 -0
- package/src/IScaffoldSyncPlan.ts +26 -0
- package/src/IScaffoldSyncProps.ts +16 -0
- package/src/IWindowsFileInformation.ts +24 -0
- package/src/IWindowsLibrary.ts +148 -0
- package/src/SCAFFOLD_SYNC_STATE_FILE.ts +5 -0
- package/src/ScaffoldFilePublicationOutcome.ts +18 -0
- package/src/ScaffoldParentChangedError.ts +14 -0
- package/src/ScaffoldPublicationError.ts +58 -0
- package/src/assertOrdinaryFile.ts +20 -0
- package/src/assertOrdinarySingleLinkFile.ts +26 -0
- package/src/assertScaffoldOwnership.ts +29 -0
- package/src/assertScaffoldPhysicalDirectory.ts +29 -0
- package/src/assertScaffoldProjectName.ts +34 -0
- package/src/attachScaffoldSyncState.ts +30 -0
- package/src/captureEmptyScaffoldPhysicalDirectory.ts +45 -0
- package/src/captureScaffoldFile.ts +34 -0
- package/src/captureScaffoldPhysicalDirectory.ts +34 -0
- package/src/combineScaffoldFailures.ts +35 -0
- package/src/createAutoMovieCatalogVersionResolver.ts +117 -0
- package/src/createScaffoldSyncState.ts +33 -0
- package/src/createScaffoldVariables.ts +50 -0
- package/src/ensureScaffoldBaseDirectory.ts +55 -0
- package/src/ensureScaffoldFileDirectory.ts +75 -0
- package/src/index.ts +48 -0
- package/src/inside.ts +25 -0
- package/src/isScaffoldInstruction.ts +29 -0
- package/src/listAutoMovieScaffoldFiles.ts +56 -0
- package/src/loadWindowsLibrary.ts +277 -0
- package/src/mergeScaffoldFiles.ts +39 -0
- package/src/missingPath.ts +16 -0
- package/src/nativeError.ts +15 -0
- package/src/openPosixParent.ts +155 -0
- package/src/openWindowsParent.ts +305 -0
- package/src/overwriteScaffoldFile.ts +262 -0
- package/src/physicalDirectoryIdentity.ts +33 -0
- package/src/physicalVersion.ts +18 -0
- package/src/planScaffoldPublication.ts +100 -0
- package/src/planScaffoldSync.ts +122 -0
- package/src/publishFiles.ts +120 -0
- package/src/publishNativeScaffoldFile.ts +287 -0
- package/src/publishScaffoldCandidate.ts +94 -0
- package/src/readAutoMovieScaffoldSources.ts +82 -0
- package/src/readScaffoldSyncFile.ts +66 -0
- package/src/renderScaffold.ts +43 -0
- package/src/renderScaffoldEntries.ts +110 -0
- package/src/renderScaffoldInstructions.ts +22 -0
- package/src/renderScaffoldLayer.ts +38 -0
- package/src/renderTemplate.ts +62 -0
- package/src/renderWorkspaceProductionScaffold.ts +35 -0
- package/src/renderWorkspaceScaffold.ts +43 -0
- package/src/replaceSharedScaffoldFile.ts +88 -0
- package/src/resolveAutoMovieCatalogVersion.ts +27 -0
- package/src/resolveAutoMovieTemplateDependencyVersions.ts +70 -0
- package/src/resolveScaffoldPosixConstants.ts +50 -0
- package/src/scaffoldAssetDirectory.ts +30 -0
- package/src/scaffoldPhysicalIdentity.ts +21 -0
- package/src/scaffoldSharedSkillDirectory.ts +25 -0
- package/src/scaffoldSharedSkillPath.ts +31 -0
- package/src/syncScaffold.ts +38 -0
- package/src/writeFiles.ts +48 -0
- package/src/writeScaffoldFile.ts +88 -0
- package/src/writtenVersion.ts +19 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type IAutoMovieCatalogVersionProps } from "./IAutoMovieCatalogVersionProps";
|
|
2
|
+
/**
|
|
3
|
+
* Read one dependency specifier from a pnpm workspace catalog.
|
|
4
|
+
*
|
|
5
|
+
* This is a single lookup through {@link createAutoMovieCatalogVersionResolver}, with the same direct-ownership rule and refusals; a caller with several lookups over one manifest should create the resolver once instead.
|
|
6
|
+
*
|
|
7
|
+
* @param props The manifest and the entry to read.
|
|
8
|
+
* @returns The specifier exactly as written, such as `^1.2.3`.
|
|
9
|
+
* @throws With a message naming the catalog and dependency when the manifest is invalid YAML or the entry is missing, misplaced, or not a non-blank string.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/implementation.md#principled-implementation The lookup inherits the structural YAML reading of the resolver, so a commented, quoted, anchored, or CRLF entry resolves to its interpreted value.
|
|
12
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The function is a one-line adapter from a props record to the resolver, so single and repeated lookups share one implementation.
|
|
13
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every refusal of the resolver propagates unchanged, with nothing caught or defaulted here.
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states the relation to the resolver, when to use the resolver instead, the return form, and every failure.
|
|
15
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One manifest parse is followed by scans of the direct root, catalogs and selected-catalog keys, plus alias resolution when used. Total work depends on manifest size, and repeated lookups should share the resolver rather than repeat this parse.
|
|
16
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A single lookup has nothing to share; repeated lookups belong on one resolver.
|
|
17
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The parsed document becomes unreachable when the call returns, and no handle is opened.
|
|
18
|
+
*/
|
|
19
|
+
export declare const resolveAutoMovieCatalogVersion: (props: IAutoMovieCatalogVersionProps) => string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveAutoMovieCatalogVersion = void 0;
|
|
4
|
+
const createAutoMovieCatalogVersionResolver_1 = require("./createAutoMovieCatalogVersionResolver");
|
|
5
|
+
/**
|
|
6
|
+
* Read one dependency specifier from a pnpm workspace catalog.
|
|
7
|
+
*
|
|
8
|
+
* This is a single lookup through {@link createAutoMovieCatalogVersionResolver}, with the same direct-ownership rule and refusals; a caller with several lookups over one manifest should create the resolver once instead.
|
|
9
|
+
*
|
|
10
|
+
* @param props The manifest and the entry to read.
|
|
11
|
+
* @returns The specifier exactly as written, such as `^1.2.3`.
|
|
12
|
+
* @throws With a message naming the catalog and dependency when the manifest is invalid YAML or the entry is missing, misplaced, or not a non-blank string.
|
|
13
|
+
*
|
|
14
|
+
* @evidence contracts/development/implementation.md#principled-implementation The lookup inherits the structural YAML reading of the resolver, so a commented, quoted, anchored, or CRLF entry resolves to its interpreted value.
|
|
15
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The function is a one-line adapter from a props record to the resolver, so single and repeated lookups share one implementation.
|
|
16
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Every refusal of the resolver propagates unchanged, with nothing caught or defaulted here.
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states the relation to the resolver, when to use the resolver instead, the return form, and every failure.
|
|
18
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One manifest parse is followed by scans of the direct root, catalogs and selected-catalog keys, plus alias resolution when used. Total work depends on manifest size, and repeated lookups should share the resolver rather than repeat this parse.
|
|
19
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A single lookup has nothing to share; repeated lookups belong on one resolver.
|
|
20
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The parsed document becomes unreachable when the call returns, and no handle is opened.
|
|
21
|
+
*/
|
|
22
|
+
const resolveAutoMovieCatalogVersion = (props) => (0, createAutoMovieCatalogVersionResolver_1.createAutoMovieCatalogVersionResolver)(props.workspace)(props.catalog, props.dependency);
|
|
23
|
+
exports.resolveAutoMovieCatalogVersion = resolveAutoMovieCatalogVersion;
|
|
24
|
+
//# sourceMappingURL=resolveAutoMovieCatalogVersion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveAutoMovieCatalogVersion.js","sourceRoot":"","sources":["../src/resolveAutoMovieCatalogVersion.ts"],"names":[],"mappings":";;;AACA,mGAAgG;AAEhG;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,8BAA8B,GAE7B,CAAC,KAAoC,EAAU,EAAE,CAC7D,IAAA,6EAAqC,EAAC,KAAK,CAAC,SAAS,CAAC,CACpD,KAAK,CAAC,OAAO,EACb,KAAK,CAAC,UAAU,CACjB,CAAC;AANS,QAAA,8BAA8B,GAA9B,8BAA8B,CAMvC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IAutoMovieTemplateDependencyVersionsProps } from "./IAutoMovieTemplateDependencyVersionsProps";
|
|
2
|
+
/**
|
|
3
|
+
* Build the version table behind the scaffold's `{{version:<key>}}` tokens.
|
|
4
|
+
*
|
|
5
|
+
* Workspace package ranges are copied unchanged. Every external dependency is read from the pnpm catalog that owns it: `media` for the media and runtime libraries, `three`, `gltf` for the model exporter, `vite`, `utils` for `@types/node`, `samchon` for the compiler, lint, evidence and test tools, and `typescript`. For `@huggingface/transformers`, `kokoro-js`, and `onnxruntime-node`, whose runtime graphs must agree on one exact version, a leading `^` or `~` is removed; any other range form is kept as written.
|
|
6
|
+
*
|
|
7
|
+
* @param props The manifest text and the workspace package ranges.
|
|
8
|
+
* @returns The table keyed by token name, such as `engine` or `kokoroJs`.
|
|
9
|
+
* @throws When any catalog entry is missing or invalid, naming it.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/implementation.md#principled-implementation Removing only a leading caret or tilde turns an npm range anchored on one version into that exact version, which is the semver meaning of both markers; the premise is that those three catalog entries are written as `^x.y.z`, `~x.y.z`, or `x.y.z`, which the workspace manifest does.
|
|
12
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The function owns only the mapping from token names to catalog entries; YAML reading belongs to `createAutoMovieCatalogVersionResolver`, and file access to the build script.
|
|
13
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The exact-version rule applies to the three named runtime packages by their catalog names because their graphs need one version, and no value is hard-coded; every version comes from the inputs.
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states which catalog owns each group, which entries become exact and how, the keys of the result, and what throws.
|
|
15
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The manifest is parsed once; each of twenty-two lookups scans the direct keys of the root, catalogs mapping and requested catalog, including alias resolution where needed. The fixed lookup count keeps total work linear in manifest size, with one parsed document and thirty-three result strings.
|
|
16
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work All twenty-two lookups share one resolver and therefore one parsed document of `props.workspace`, the only input they depend on; nothing outlives the call, so no invalidation is needed.
|
|
17
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The resolver and its parsed document are released when the function returns; only the result table, thirty-three strings, is retained by the caller.
|
|
18
|
+
*/
|
|
19
|
+
export declare const resolveAutoMovieTemplateDependencyVersions: (props: IAutoMovieTemplateDependencyVersionsProps) => Record<string, string>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveAutoMovieTemplateDependencyVersions = void 0;
|
|
4
|
+
const createAutoMovieCatalogVersionResolver_1 = require("./createAutoMovieCatalogVersionResolver");
|
|
5
|
+
/**
|
|
6
|
+
* Build the version table behind the scaffold's `{{version:<key>}}` tokens.
|
|
7
|
+
*
|
|
8
|
+
* Workspace package ranges are copied unchanged. Every external dependency is read from the pnpm catalog that owns it: `media` for the media and runtime libraries, `three`, `gltf` for the model exporter, `vite`, `utils` for `@types/node`, `samchon` for the compiler, lint, evidence and test tools, and `typescript`. For `@huggingface/transformers`, `kokoro-js`, and `onnxruntime-node`, whose runtime graphs must agree on one exact version, a leading `^` or `~` is removed; any other range form is kept as written.
|
|
9
|
+
*
|
|
10
|
+
* @param props The manifest text and the workspace package ranges.
|
|
11
|
+
* @returns The table keyed by token name, such as `engine` or `kokoroJs`.
|
|
12
|
+
* @throws When any catalog entry is missing or invalid, naming it.
|
|
13
|
+
*
|
|
14
|
+
* @evidence contracts/development/implementation.md#principled-implementation Removing only a leading caret or tilde turns an npm range anchored on one version into that exact version, which is the semver meaning of both markers; the premise is that those three catalog entries are written as `^x.y.z`, `~x.y.z`, or `x.y.z`, which the workspace manifest does.
|
|
15
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The function owns only the mapping from token names to catalog entries; YAML reading belongs to `createAutoMovieCatalogVersionResolver`, and file access to the build script.
|
|
16
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The exact-version rule applies to the three named runtime packages by their catalog names because their graphs need one version, and no value is hard-coded; every version comes from the inputs.
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states which catalog owns each group, which entries become exact and how, the keys of the result, and what throws.
|
|
18
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms The manifest is parsed once; each of twenty-two lookups scans the direct keys of the root, catalogs mapping and requested catalog, including alias resolution where needed. The fixed lookup count keeps total work linear in manifest size, with one parsed document and thirty-three result strings.
|
|
19
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work All twenty-two lookups share one resolver and therefore one parsed document of `props.workspace`, the only input they depend on; nothing outlives the call, so no invalidation is needed.
|
|
20
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The resolver and its parsed document are released when the function returns; only the result table, thirty-three strings, is retained by the caller.
|
|
21
|
+
*/
|
|
22
|
+
const resolveAutoMovieTemplateDependencyVersions = (props) => {
|
|
23
|
+
const catalogVersion = (0, createAutoMovieCatalogVersionResolver_1.createAutoMovieCatalogVersionResolver)(props.workspace);
|
|
24
|
+
const exactCatalogVersion = (catalog, dependency) => catalogVersion(catalog, dependency).replace(/^[~^]/u, "");
|
|
25
|
+
return {
|
|
26
|
+
cli: props.packages.cli,
|
|
27
|
+
engine: props.packages.engine,
|
|
28
|
+
evidence: props.packages.evidence,
|
|
29
|
+
human: props.packages.human,
|
|
30
|
+
ingest: props.packages.ingest,
|
|
31
|
+
interface: props.packages.interface,
|
|
32
|
+
motions: props.packages.motions,
|
|
33
|
+
recovery: props.packages.recovery,
|
|
34
|
+
render: props.packages.render,
|
|
35
|
+
template: props.packages.template,
|
|
36
|
+
viewer: props.packages.viewer,
|
|
37
|
+
huggingFaceTransformers: exactCatalogVersion("media", "@huggingface/transformers"),
|
|
38
|
+
h264Mp4Encoder: catalogVersion("media", "h264-mp4-encoder"),
|
|
39
|
+
ffmpegStatic: catalogVersion("media", "ffmpeg-static"),
|
|
40
|
+
kokoroJs: exactCatalogVersion("media", "kokoro-js"),
|
|
41
|
+
libopusWasm: catalogVersion("media", "libopus-wasm"),
|
|
42
|
+
mp4box: catalogVersion("media", "mp4box"),
|
|
43
|
+
onnxruntimeNode: exactCatalogVersion("media", "onnxruntime-node"),
|
|
44
|
+
playwright: catalogVersion("media", "playwright"),
|
|
45
|
+
playwrightCore: catalogVersion("media", "playwright-core"),
|
|
46
|
+
pngjs: catalogVersion("media", "pngjs"),
|
|
47
|
+
pngjsTypes: catalogVersion("media", "@types/pngjs"),
|
|
48
|
+
three: catalogVersion("three", "three"),
|
|
49
|
+
gltfTransformCore: catalogVersion("gltf", "@gltf-transform/core"),
|
|
50
|
+
threeTypes: catalogVersion("three", "@types/three"),
|
|
51
|
+
vite: catalogVersion("vite", "vite"),
|
|
52
|
+
nodeTypes: catalogVersion("utils", "@types/node"),
|
|
53
|
+
nestiaE2e: catalogVersion("samchon", "@nestia/e2e"),
|
|
54
|
+
ttsc: catalogVersion("samchon", "ttsc"),
|
|
55
|
+
ttscLint: catalogVersion("samchon", "@ttsc/lint"),
|
|
56
|
+
evidenceCli: catalogVersion("samchon", "@wrtnlabs/evidence"),
|
|
57
|
+
evidenceLint: catalogVersion("samchon", "@ttsc/evidence"),
|
|
58
|
+
typescript: catalogVersion("typescript", "typescript"),
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
exports.resolveAutoMovieTemplateDependencyVersions = resolveAutoMovieTemplateDependencyVersions;
|
|
62
|
+
//# sourceMappingURL=resolveAutoMovieTemplateDependencyVersions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveAutoMovieTemplateDependencyVersions.js","sourceRoot":"","sources":["../src/resolveAutoMovieTemplateDependencyVersions.ts"],"names":[],"mappings":";;;AACA,mGAAgG;AAEhG;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,0CAA0C,GAEzB,CAC5B,KAAgD,EACxB,EAAE;IAC1B,MAAM,cAAc,GAClB,IAAA,6EAAqC,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,mBAAmB,GAAoD,CAC3E,OAAe,EACf,UAAkB,EACV,EAAE,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IACvE,OAAO;QACL,GAAG,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG;QACvB,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM;QAC7B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,QAAQ;QACjC,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK;QAC3B,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM;QAC7B,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,SAAS;QACnC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,OAAO;QAC/B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,QAAQ;QACjC,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM;QAC7B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,QAAQ;QACjC,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM;QAC7B,uBAAuB,EAAE,mBAAmB,CAC1C,OAAO,EACP,2BAA2B,CAC5B;QACD,cAAc,EAAE,cAAc,CAAC,OAAO,EAAE,kBAAkB,CAAC;QAC3D,YAAY,EAAE,cAAc,CAAC,OAAO,EAAE,eAAe,CAAC;QACtD,QAAQ,EAAE,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC;QACnD,WAAW,EAAE,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC;QACpD,MAAM,EAAE,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC;QACzC,eAAe,EAAE,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,CAAC;QACjE,UAAU,EAAE,cAAc,CAAC,OAAO,EAAE,YAAY,CAAC;QACjD,cAAc,EAAE,cAAc,CAAC,OAAO,EAAE,iBAAiB,CAAC;QAC1D,KAAK,EAAE,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC;QACvC,UAAU,EAAE,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC;QACnD,KAAK,EAAE,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC;QACvC,iBAAiB,EAAE,cAAc,CAAC,MAAM,EAAE,sBAAsB,CAAC;QACjE,UAAU,EAAE,cAAc,CAAC,OAAO,EAAE,cAAc,CAAC;QACnD,IAAI,EAAE,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;QACpC,SAAS,EAAE,cAAc,CAAC,OAAO,EAAE,aAAa,CAAC;QACjD,SAAS,EAAE,cAAc,CAAC,SAAS,EAAE,aAAa,CAAC;QACnD,IAAI,EAAE,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC;QACvC,QAAQ,EAAE,cAAc,CAAC,SAAS,EAAE,YAAY,CAAC;QACjD,WAAW,EAAE,cAAc,CAAC,SAAS,EAAE,oBAAoB,CAAC;QAC5D,YAAY,EAAE,cAAc,CAAC,SAAS,EAAE,gBAAgB,CAAC;QACzD,UAAU,EAAE,cAAc,CAAC,YAAY,EAAE,YAAY,CAAC;KACvD,CAAC;AACJ,CAAC,CAAC;AAjDW,QAAA,0CAA0C,GAA1C,0CAA0C,CAiDrD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IScaffoldPosixConstants } from "./IScaffoldPosixConstants";
|
|
2
|
+
/**
|
|
3
|
+
* Resolve the running POSIX system's open flags before binding libc. Native constants take precedence; missing required flags refuse rather than becoming zero. Linux and Android use the generic Linux close-on-exec bit and Darwin uses its XNU bit when Node omits it. Other systems without that native bit refuse.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Supplied native bits retain their ABI meaning; missing close-on-exec uses Linux UAPI's 1<<19 for Linux/Android or Apple XNU's 0x01000000 for Darwin, while an unknown ABI refuses. Both primary headers are linked beside their constants.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Flag resolution is pure and separate from libc loading so platform admission finishes before a library or descriptor is acquired.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The platform branch names supported native ABI differences, with no substituted filesystem or test-only path.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states input precedence, unsupported-platform refusal and that all required native bits must exist.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Seven constant-key reads and one platform choice take fixed time and return one seven-field record.
|
|
10
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This resolver performs fixed scalar work once during lazy libc initialization; it coordinates no repeated request.
|
|
11
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Pure flag resolution acquires no library, descriptor or asynchronous task and retains no input object.
|
|
12
|
+
*/
|
|
13
|
+
export declare function resolveScaffoldPosixConstants(platform: NodeJS.Platform, constants: Readonly<Partial<IScaffoldPosixConstants>>): IScaffoldPosixConstants;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveScaffoldPosixConstants = resolveScaffoldPosixConstants;
|
|
4
|
+
/** Generic Linux UAPI open flag: https://github.com/torvalds/linux/blob/master/include/uapi/asm-generic/fcntl.h. */
|
|
5
|
+
const LINUX_O_CLOEXEC = 1 << 19;
|
|
6
|
+
/** Darwin open flag: https://github.com/apple-oss-distributions/xnu/blob/main/bsd/sys/fcntl.h. */
|
|
7
|
+
const DARWIN_O_CLOEXEC = 0x01000000;
|
|
8
|
+
/**
|
|
9
|
+
* Resolve the running POSIX system's open flags before binding libc. Native constants take precedence; missing required flags refuse rather than becoming zero. Linux and Android use the generic Linux close-on-exec bit and Darwin uses its XNU bit when Node omits it. Other systems without that native bit refuse.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/implementation.md#principled-implementation Supplied native bits retain their ABI meaning; missing close-on-exec uses Linux UAPI's 1<<19 for Linux/Android or Apple XNU's 0x01000000 for Darwin, while an unknown ABI refuses. Both primary headers are linked beside their constants.
|
|
12
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Flag resolution is pure and separate from libc loading so platform admission finishes before a library or descriptor is acquired.
|
|
13
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The platform branch names supported native ABI differences, with no substituted filesystem or test-only path.
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states input precedence, unsupported-platform refusal and that all required native bits must exist.
|
|
15
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Seven constant-key reads and one platform choice take fixed time and return one seven-field record.
|
|
16
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work This resolver performs fixed scalar work once during lazy libc initialization; it coordinates no repeated request.
|
|
17
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Pure flag resolution acquires no library, descriptor or asynchronous task and retains no input object.
|
|
18
|
+
*/
|
|
19
|
+
function resolveScaffoldPosixConstants(platform, constants) {
|
|
20
|
+
const read = (name) => {
|
|
21
|
+
const value = constants[name];
|
|
22
|
+
if (value === undefined)
|
|
23
|
+
throw new Error(`supported POSIX runtime omitted ${name}`);
|
|
24
|
+
return value;
|
|
25
|
+
};
|
|
26
|
+
const closeOnExec = constants.O_CLOEXEC ??
|
|
27
|
+
(platform === "darwin"
|
|
28
|
+
? DARWIN_O_CLOEXEC
|
|
29
|
+
: platform === "linux" || platform === "android"
|
|
30
|
+
? LINUX_O_CLOEXEC
|
|
31
|
+
: undefined);
|
|
32
|
+
if (closeOnExec === undefined)
|
|
33
|
+
throw new Error("supported POSIX runtime omitted O_CLOEXEC");
|
|
34
|
+
return {
|
|
35
|
+
O_CLOEXEC: closeOnExec,
|
|
36
|
+
O_CREAT: read("O_CREAT"),
|
|
37
|
+
O_DIRECTORY: read("O_DIRECTORY"),
|
|
38
|
+
O_EXCL: read("O_EXCL"),
|
|
39
|
+
O_NOFOLLOW: read("O_NOFOLLOW"),
|
|
40
|
+
O_RDONLY: read("O_RDONLY"),
|
|
41
|
+
O_RDWR: read("O_RDWR"),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=resolveScaffoldPosixConstants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveScaffoldPosixConstants.js","sourceRoot":"","sources":["../src/resolveScaffoldPosixConstants.ts"],"names":[],"mappings":";;;AAEA,oHAAoH;AACpH,MAAM,eAAe,GAAW,CAAC,IAAI,EAAE,CAAC;AAExC,kGAAkG;AAClG,MAAM,gBAAgB,GAAW,UAAU,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,uCACE,QAAyB,EACzB,SAAqD;IAErD,MAAM,IAAI,GAAoD,CAC5D,IAAmC,EAC3B,EAAE;QACV,MAAM,KAAK,GAAuB,SAAS,CAAC,IAAI,CAAC,CAAC;QAClD,IAAI,KAAK,KAAK,SAAS;YACrB,MAAM,IAAI,KAAK,CAAC,mCAAmC,IAAI,EAAE,CAAC,CAAC;QAC7D,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IACF,MAAM,WAAW,GACf,SAAS,CAAC,SAAS;QACnB,CAAC,QAAQ,KAAK,QAAQ;YACpB,CAAC,CAAC,gBAAgB;YAClB,CAAC,CAAC,QAAQ,KAAK,OAAO,IAAI,QAAQ,KAAK,SAAS;gBAC9C,CAAC,CAAC,eAAe;gBACjB,CAAC,CAAC,SAAS,CAAC,CAAC;IACnB,IAAI,WAAW,KAAK,SAAS;QAC3B,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC/D,OAAO;QACL,SAAS,EAAE,WAAW;QACtB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;QAChC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;QAC9B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;KACvB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AutoMovieScaffoldLayer } from "./AutoMovieScaffoldLayer";
|
|
2
|
+
/**
|
|
3
|
+
* Absolute path of one bundled scaffold layer, `scaffold/<layer>`.
|
|
4
|
+
*
|
|
5
|
+
* The directory is resolved from this module's own location, one level up, so the same code finds it from `src` under `ttsx` and from the published `lib`, which the package ships next to `scaffold`.
|
|
6
|
+
*
|
|
7
|
+
* @param layer The layer to locate.
|
|
8
|
+
* @returns The absolute layer directory.
|
|
9
|
+
* @throws When nothing exists at that path, naming the path, which means the package was installed or built without that part of its `scaffold` folder.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/implementation.md#principled-implementation `__dirname` is the CommonJS location of the compiled module, and both `src` and `lib` sit directly under the package root next to `scaffold`, which `package.json` lists in `files`; the premise fails only for a bundler that relocates the module, which the package does not use.
|
|
12
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns where the assets are, so the renderers read a layer without knowing the package layout; the closed layer union is its only input.
|
|
13
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The path comes only from the module location and the layer name, with no environment override or test hook, and a missing directory throws instead of falling back to another location.
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states how the path is derived, why it holds for both `src` and `lib`, and what a missing directory means.
|
|
15
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One path resolution and one existence check per call, independent of the scaffold's size.
|
|
16
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The result is recomputed on each call because the existence check must observe the installed package, and each render calls it once per layer.
|
|
17
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function returns a string and opens no handle.
|
|
18
|
+
*/
|
|
19
|
+
export declare const scaffoldAssetDirectory: (layer: AutoMovieScaffoldLayer) => string;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.scaffoldAssetDirectory = void 0;
|
|
37
|
+
const fs = __importStar(require("node:fs"));
|
|
38
|
+
const path = __importStar(require("node:path"));
|
|
39
|
+
/**
|
|
40
|
+
* Absolute path of one bundled scaffold layer, `scaffold/<layer>`.
|
|
41
|
+
*
|
|
42
|
+
* The directory is resolved from this module's own location, one level up, so the same code finds it from `src` under `ttsx` and from the published `lib`, which the package ships next to `scaffold`.
|
|
43
|
+
*
|
|
44
|
+
* @param layer The layer to locate.
|
|
45
|
+
* @returns The absolute layer directory.
|
|
46
|
+
* @throws When nothing exists at that path, naming the path, which means the package was installed or built without that part of its `scaffold` folder.
|
|
47
|
+
*
|
|
48
|
+
* @evidence contracts/development/implementation.md#principled-implementation `__dirname` is the CommonJS location of the compiled module, and both `src` and `lib` sit directly under the package root next to `scaffold`, which `package.json` lists in `files`; the premise fails only for a bundler that relocates the module, which the package does not use.
|
|
49
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns where the assets are, so the renderers read a layer without knowing the package layout; the closed layer union is its only input.
|
|
50
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The path comes only from the module location and the layer name, with no environment override or test hook, and a missing directory throws instead of falling back to another location.
|
|
51
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states how the path is derived, why it holds for both `src` and `lib`, and what a missing directory means.
|
|
52
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One path resolution and one existence check per call, independent of the scaffold's size.
|
|
53
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The result is recomputed on each call because the existence check must observe the installed package, and each render calls it once per layer.
|
|
54
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function returns a string and opens no handle.
|
|
55
|
+
*/
|
|
56
|
+
const scaffoldAssetDirectory = (layer) => {
|
|
57
|
+
const directory = path.resolve(__dirname, "..", "scaffold", layer);
|
|
58
|
+
if (!fs.existsSync(directory))
|
|
59
|
+
throw new Error(`scaffold assets are missing: ${directory}`);
|
|
60
|
+
return directory;
|
|
61
|
+
};
|
|
62
|
+
exports.scaffoldAssetDirectory = scaffoldAssetDirectory;
|
|
63
|
+
//# sourceMappingURL=scaffoldAssetDirectory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffoldAssetDirectory.js","sourceRoot":"","sources":["../src/scaffoldAssetDirectory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAC9B,MAAY,IAAI,sCAAkB;AAIlC;;;;;;;;;;;;;;;;GAgBG;AACI,MAAM,sBAAsB,GAErB,CAAC,KAA6B,EAAU,EAAE;IACtD,MAAM,SAAS,GAAW,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;IAC3E,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,gCAAgC,SAAS,EAAE,CAAC,CAAC;IAC/D,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAPW,QAAA,sBAAsB,GAAtB,sBAAsB,CAOjC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as fs from "node:fs";
|
|
2
|
+
/**
|
|
3
|
+
* Physical identity of a file or directory, formatted `<device>:<inode>` from a bigint stat.
|
|
4
|
+
*
|
|
5
|
+
* Captured directory identities and the identity a held native parent handle reports are compared as these strings. On POSIX both come from `fstat` via this function. On Windows, Node reports the volume serial number as `dev` and the file index as `ino`, which is the pair the native adapter reads from `GetFileInformationByHandle` and formats the same way.
|
|
6
|
+
*
|
|
7
|
+
* @param status Stat taken with `{ bigint: true }`.
|
|
8
|
+
* @returns The identity string.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation The device and inode pair is the POSIX definition of file identity, and bigint stats keep both exact beyond 2^53; on Windows the premise is libuv's mapping of volume serial and file index to `dev` and `ino`, and a ReFS file whose 128-bit identifier does not fit the 64-bit index is the unresolved limitation.
|
|
11
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure physicalDirectoryIdentity and the POSIX native adapter share this format; the Windows binding assembles the same device and index pair from BY_HANDLE_FILE_INFORMATION for the coordinator's comparison.
|
|
12
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The function formats exactly the stat it receives, with no platform branch or substituted value.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states the format, which stat it needs, and the cross-platform equivalence the comparisons rely on.
|
|
14
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Formatting two bigints is constant time per stat.
|
|
15
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each stat is a separate observation of the file system, and identity checks exist to observe change, so caching a result would defeat them.
|
|
16
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure formatter that returns a string and keeps nothing.
|
|
17
|
+
*/
|
|
18
|
+
export declare const scaffoldPhysicalIdentity: (status: fs.BigIntStats) => string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scaffoldPhysicalIdentity = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Physical identity of a file or directory, formatted `<device>:<inode>` from a bigint stat.
|
|
6
|
+
*
|
|
7
|
+
* Captured directory identities and the identity a held native parent handle reports are compared as these strings. On POSIX both come from `fstat` via this function. On Windows, Node reports the volume serial number as `dev` and the file index as `ino`, which is the pair the native adapter reads from `GetFileInformationByHandle` and formats the same way.
|
|
8
|
+
*
|
|
9
|
+
* @param status Stat taken with `{ bigint: true }`.
|
|
10
|
+
* @returns The identity string.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/implementation.md#principled-implementation The device and inode pair is the POSIX definition of file identity, and bigint stats keep both exact beyond 2^53; on Windows the premise is libuv's mapping of volume serial and file index to `dev` and `ino`, and a ReFS file whose 128-bit identifier does not fit the 64-bit index is the unresolved limitation.
|
|
13
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure physicalDirectoryIdentity and the POSIX native adapter share this format; the Windows binding assembles the same device and index pair from BY_HANDLE_FILE_INFORMATION for the coordinator's comparison.
|
|
14
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The function formats exactly the stat it receives, with no platform branch or substituted value.
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states the format, which stat it needs, and the cross-platform equivalence the comparisons rely on.
|
|
16
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Formatting two bigints is constant time per stat.
|
|
17
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each stat is a separate observation of the file system, and identity checks exist to observe change, so caching a result would defeat them.
|
|
18
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources A pure formatter that returns a string and keeps nothing.
|
|
19
|
+
*/
|
|
20
|
+
const scaffoldPhysicalIdentity = (status) => `${status.dev}:${status.ino}`;
|
|
21
|
+
exports.scaffoldPhysicalIdentity = scaffoldPhysicalIdentity;
|
|
22
|
+
//# sourceMappingURL=scaffoldPhysicalIdentity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffoldPhysicalIdentity.js","sourceRoot":"","sources":["../src/scaffoldPhysicalIdentity.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;GAeG;AACI,MAAM,wBAAwB,GAAuC,CAC1E,MAAsB,EACd,EAAE,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,GAAG,EAAE,CAAC;AAF9B,QAAA,wBAAwB,GAAxB,wBAAwB,CAEM"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Absolute path of the repository skills the scaffold ships in place of its `$<name>.md` placeholders.
|
|
3
|
+
*
|
|
4
|
+
* The build's instruction step copies each repository skill a placeholder names, verbatim, into `lib/skills/<name>`, and the path is resolved from this module's own location one level up, so the same code finds it from `src` under `ttsx` and from the published `lib`. The copy lives under `lib` because `lib` is already ignored by git and already listed in the package's `files`, so neither the scaffold nor the repository holds a second tracked or ignored copy.
|
|
5
|
+
*
|
|
6
|
+
* @returns The absolute shared-skill directory.
|
|
7
|
+
* @throws When nothing exists at that path, naming the path, which means the package was installed or built without running its `build:instructions` step.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/development/implementation.md#principled-implementation `__dirname` is the CommonJS location of the compiled module, and both `src` and `lib` sit directly under the package root, so `../lib/skills` names one directory from either; the premise fails only for a bundler that relocates the module, which the package does not use.
|
|
10
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns where the shared skills are, beside `scaffoldAssetDirectory`, so the source reader expands placeholders without knowing the package layout; it takes no parameter because no caller needs another root.
|
|
11
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The path comes only from the module location, with no environment override, test hook or fallback to the repository's own `.agents/skills`, and a missing directory throws.
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states what the directory holds, which build step fills it, how the path is derived for `src` and `lib`, why it lives under `lib`, and what a missing directory means.
|
|
13
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One path resolution and one existence check per call, independent of the skills' size.
|
|
14
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The result is recomputed on each call because the existence check must observe the installed package, and a render calls it once.
|
|
15
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function returns a string and opens no handle.
|
|
16
|
+
*/
|
|
17
|
+
export declare const scaffoldSharedSkillDirectory: () => string;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.scaffoldSharedSkillDirectory = void 0;
|
|
37
|
+
const fs = __importStar(require("node:fs"));
|
|
38
|
+
const path = __importStar(require("node:path"));
|
|
39
|
+
/**
|
|
40
|
+
* Absolute path of the repository skills the scaffold ships in place of its `$<name>.md` placeholders.
|
|
41
|
+
*
|
|
42
|
+
* The build's instruction step copies each repository skill a placeholder names, verbatim, into `lib/skills/<name>`, and the path is resolved from this module's own location one level up, so the same code finds it from `src` under `ttsx` and from the published `lib`. The copy lives under `lib` because `lib` is already ignored by git and already listed in the package's `files`, so neither the scaffold nor the repository holds a second tracked or ignored copy.
|
|
43
|
+
*
|
|
44
|
+
* @returns The absolute shared-skill directory.
|
|
45
|
+
* @throws When nothing exists at that path, naming the path, which means the package was installed or built without running its `build:instructions` step.
|
|
46
|
+
*
|
|
47
|
+
* @evidence contracts/development/implementation.md#principled-implementation `__dirname` is the CommonJS location of the compiled module, and both `src` and `lib` sit directly under the package root, so `../lib/skills` names one directory from either; the premise fails only for a bundler that relocates the module, which the package does not use.
|
|
48
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One function owns where the shared skills are, beside `scaffoldAssetDirectory`, so the source reader expands placeholders without knowing the package layout; it takes no parameter because no caller needs another root.
|
|
49
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The path comes only from the module location, with no environment override, test hook or fallback to the repository's own `.agents/skills`, and a missing directory throws.
|
|
50
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment states what the directory holds, which build step fills it, how the path is derived for `src` and `lib`, why it lives under `lib`, and what a missing directory means.
|
|
51
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One path resolution and one existence check per call, independent of the skills' size.
|
|
52
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The result is recomputed on each call because the existence check must observe the installed package, and a render calls it once.
|
|
53
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The function returns a string and opens no handle.
|
|
54
|
+
*/
|
|
55
|
+
const scaffoldSharedSkillDirectory = () => {
|
|
56
|
+
const directory = path.resolve(__dirname, "..", "lib", "skills");
|
|
57
|
+
if (!fs.existsSync(directory))
|
|
58
|
+
throw new Error(`scaffold shared skills are missing: ${directory}`);
|
|
59
|
+
return directory;
|
|
60
|
+
};
|
|
61
|
+
exports.scaffoldSharedSkillDirectory = scaffoldSharedSkillDirectory;
|
|
62
|
+
//# sourceMappingURL=scaffoldSharedSkillDirectory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffoldSharedSkillDirectory.js","sourceRoot":"","sources":["../src/scaffoldSharedSkillDirectory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,EAAE,oCAAgB;AAC9B,MAAY,IAAI,sCAAkB;AAElC;;;;;;;;;;;;;;;GAeG;AACI,MAAM,4BAA4B,GAAiB,GAAW,EAAE;IACrE,MAAM,SAAS,GAAW,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IACzE,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,uCAAuC,SAAS,EAAE,CAAC,CAAC;IACtE,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AALW,QAAA,4BAA4B,GAA5B,4BAA4B,CAKvC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The repository skill path a scaffold placeholder stands for, or `null` when the file is not a placeholder.
|
|
3
|
+
*
|
|
4
|
+
* A placeholder is a file under the scaffold's `.agents/skills` whose name is `$` followed by the name of a repository item at the same place under the repository's `.agents/skills`: `$documentation` stands for the whole `documentation` folder and `development/$repair.md` for the single `development/repair.md` file. The placeholder holds no text; the build copies the item it names and the scaffold reader ships that item in its place, so each shared text has one source.
|
|
5
|
+
*
|
|
6
|
+
* @param relative Scaffold-relative file path with the host's separator, as {@link listAutoMovieScaffoldFiles} returns it.
|
|
7
|
+
* @returns The named item's path relative to `.agents/skills`, with `/` separators and the `$` removed, or `null`.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/development/implementation.md#principled-implementation The path is split on the host separator that the listing uses, and the item path keeps every directory between `.agents/skills` and the placeholder, so a placeholder at any depth names the item at the same depth; the name must be one portable segment other than `.` or `..`, so the result cannot leave `.agents/skills`.
|
|
10
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate owns the placeholder rule for both the build step that copies the named items and the reader that ships them, so the two cannot disagree on which files are placeholders.
|
|
11
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The rule depends only on the `$` prefix and the location under `.agents/skills`, with no list of particular skills or files.
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment defines a placeholder, gives both the folder and file forms, states what the build and the reader do with it, and describes the parameter's separator and the result's form.
|
|
13
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Splitting the path and testing one name is linear in the path length.
|
|
14
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call classifies one path from its text alone; there is no shared work to reuse.
|
|
15
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only call-local component arrays are allocated; no filesystem resource is acquired.
|
|
16
|
+
*/
|
|
17
|
+
export declare const scaffoldSharedSkillPath: (relative: string) => string | null;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.scaffoldSharedSkillPath = void 0;
|
|
37
|
+
const path = __importStar(require("node:path"));
|
|
38
|
+
/** A placeholder's file name: `$` followed by one portable path segment. */
|
|
39
|
+
const PLACEHOLDER = /^\$([a-zA-Z0-9_-][a-zA-Z0-9_.-]*)$/u;
|
|
40
|
+
/**
|
|
41
|
+
* The repository skill path a scaffold placeholder stands for, or `null` when the file is not a placeholder.
|
|
42
|
+
*
|
|
43
|
+
* A placeholder is a file under the scaffold's `.agents/skills` whose name is `$` followed by the name of a repository item at the same place under the repository's `.agents/skills`: `$documentation` stands for the whole `documentation` folder and `development/$repair.md` for the single `development/repair.md` file. The placeholder holds no text; the build copies the item it names and the scaffold reader ships that item in its place, so each shared text has one source.
|
|
44
|
+
*
|
|
45
|
+
* @param relative Scaffold-relative file path with the host's separator, as {@link listAutoMovieScaffoldFiles} returns it.
|
|
46
|
+
* @returns The named item's path relative to `.agents/skills`, with `/` separators and the `$` removed, or `null`.
|
|
47
|
+
*
|
|
48
|
+
* @evidence contracts/development/implementation.md#principled-implementation The path is split on the host separator that the listing uses, and the item path keeps every directory between `.agents/skills` and the placeholder, so a placeholder at any depth names the item at the same depth; the name must be one portable segment other than `.` or `..`, so the result cannot leave `.agents/skills`.
|
|
49
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate owns the placeholder rule for both the build step that copies the named items and the reader that ships them, so the two cannot disagree on which files are placeholders.
|
|
50
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The rule depends only on the `$` prefix and the location under `.agents/skills`, with no list of particular skills or files.
|
|
51
|
+
* @evidence contracts/development/common.md#meaningful-documentation The comment defines a placeholder, gives both the folder and file forms, states what the build and the reader do with it, and describes the parameter's separator and the result's form.
|
|
52
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Splitting the path and testing one name is linear in the path length.
|
|
53
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call classifies one path from its text alone; there is no shared work to reuse.
|
|
54
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only call-local component arrays are allocated; no filesystem resource is acquired.
|
|
55
|
+
*/
|
|
56
|
+
const scaffoldSharedSkillPath = (relative) => {
|
|
57
|
+
const parts = relative.split(path.sep);
|
|
58
|
+
if (parts.length < 3 || parts[0] !== ".agents" || parts[1] !== "skills")
|
|
59
|
+
return null;
|
|
60
|
+
const match = PLACEHOLDER.exec(parts.at(-1));
|
|
61
|
+
if (match === null || match[1] === "." || match[1] === "..")
|
|
62
|
+
return null;
|
|
63
|
+
return [...parts.slice(2, -1), match[1]].join("/");
|
|
64
|
+
};
|
|
65
|
+
exports.scaffoldSharedSkillPath = scaffoldSharedSkillPath;
|
|
66
|
+
//# sourceMappingURL=scaffoldSharedSkillPath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffoldSharedSkillPath.js","sourceRoot":"","sources":["../src/scaffoldSharedSkillPath.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,IAAI,sCAAkB;AAElC,4EAA4E;AAC5E,MAAM,WAAW,GAAW,qCAAqC,CAAC;AAElE;;;;;;;;;;;;;;;GAeG;AACI,MAAM,uBAAuB,GAAwC,CAC1E,QAAgB,EACD,EAAE;IACjB,MAAM,KAAK,GAAa,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACjD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,SAAS,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ;QACrE,OAAO,IAAI,CAAC;IACd,MAAM,KAAK,GAA2B,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC;IACtE,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACzE,OAAO,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC,CAAC;AATW,QAAA,uBAAuB,GAAvB,uBAAuB,CASlC"}
|