@automovie/ingest 0.3.4 → 0.4.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.
Files changed (225) hide show
  1. package/README.md +9 -29
  2. package/lib/AUTOMOVIE_GLTF_MOTION_INTERPRETATION_PROFILE.d.ts +4 -1
  3. package/lib/AUTOMOVIE_GLTF_MOTION_INTERPRETATION_PROFILE.js +4 -1
  4. package/lib/AUTOMOVIE_GLTF_MOTION_INTERPRETATION_PROFILE.js.map +1 -1
  5. package/lib/AUTO_MOVIE_EXTERNAL_MODEL_INGEST_PROFILES.d.ts +4 -1
  6. package/lib/AUTO_MOVIE_EXTERNAL_MODEL_INGEST_PROFILES.js +4 -1
  7. package/lib/AUTO_MOVIE_EXTERNAL_MODEL_INGEST_PROFILES.js.map +1 -1
  8. package/lib/adoptAutoMovieExternalMotion.d.ts +21 -11
  9. package/lib/adoptAutoMovieExternalMotion.js +26 -12
  10. package/lib/adoptAutoMovieExternalMotion.js.map +1 -1
  11. package/lib/audio/admitProductionTtsReceipt.d.ts +25 -0
  12. package/lib/audio/admitProductionTtsReceipt.js +166 -0
  13. package/lib/audio/admitProductionTtsReceipt.js.map +1 -0
  14. package/lib/audio/decodeProductionAudioAsset.d.ts +42 -14
  15. package/lib/audio/decodeProductionAudioAsset.js +53 -30
  16. package/lib/audio/decodeProductionAudioAsset.js.map +1 -1
  17. package/lib/audio/index.d.ts +1 -0
  18. package/lib/audio/index.js +1 -0
  19. package/lib/audio/index.js.map +1 -1
  20. package/lib/audio/resampleProductionAudio.d.ts +22 -0
  21. package/lib/audio/resampleProductionAudio.js +103 -0
  22. package/lib/audio/resampleProductionAudio.js.map +1 -0
  23. package/lib/decodeAutoMoviePpmImage.d.ts +10 -18
  24. package/lib/decodeAutoMoviePpmImage.js +10 -18
  25. package/lib/decodeAutoMoviePpmImage.js.map +1 -1
  26. package/lib/font/TrueTypeByteReader.d.ts +34 -0
  27. package/lib/font/TrueTypeByteReader.js +67 -0
  28. package/lib/font/TrueTypeByteReader.js.map +1 -0
  29. package/lib/font/decodeAutoMovieTrueTypeFont.d.ts +31 -0
  30. package/lib/font/decodeAutoMovieTrueTypeFont.js +168 -0
  31. package/lib/font/decodeAutoMovieTrueTypeFont.js.map +1 -0
  32. package/lib/font/index.d.ts +1 -0
  33. package/lib/font/index.js +18 -0
  34. package/lib/font/index.js.map +1 -0
  35. package/lib/font/readTrueTypeCharacterMap.d.ts +23 -0
  36. package/lib/font/readTrueTypeCharacterMap.js +98 -0
  37. package/lib/font/readTrueTypeCharacterMap.js.map +1 -0
  38. package/lib/font/readTrueTypeGlyphOutline.d.ts +45 -0
  39. package/lib/font/readTrueTypeGlyphOutline.js +275 -0
  40. package/lib/font/readTrueTypeGlyphOutline.js.map +1 -0
  41. package/lib/font/readTrueTypeKerning.d.ts +19 -0
  42. package/lib/font/readTrueTypeKerning.js +63 -0
  43. package/lib/font/readTrueTypeKerning.js.map +1 -0
  44. package/lib/font/readTrueTypeNames.d.ts +20 -0
  45. package/lib/font/readTrueTypeNames.js +75 -0
  46. package/lib/font/readTrueTypeNames.js.map +1 -0
  47. package/lib/humanoidSkeleton.d.ts +28 -15
  48. package/lib/humanoidSkeleton.js +28 -15
  49. package/lib/humanoidSkeleton.js.map +1 -1
  50. package/lib/index.d.ts +1 -0
  51. package/lib/index.js +1 -0
  52. package/lib/index.js.map +1 -1
  53. package/lib/ingestDocument.d.ts +25 -12
  54. package/lib/ingestDocument.js +25 -12
  55. package/lib/ingestDocument.js.map +1 -1
  56. package/lib/inspectAutoMovieExternalModelBytes.d.ts +24 -12
  57. package/lib/inspectAutoMovieExternalModelBytes.js +24 -12
  58. package/lib/inspectAutoMovieExternalModelBytes.js.map +1 -1
  59. package/lib/internal/IAccessorSource.d.ts +11 -8
  60. package/lib/internal/IExternalModelAccessorReader.d.ts +1 -8
  61. package/lib/internal/IHumanoidSlot.d.ts +9 -10
  62. package/lib/internal/IParsedContainer.d.ts +10 -8
  63. package/lib/internal/SHAPE_COMPONENTS.d.ts +4 -1
  64. package/lib/internal/SHAPE_COMPONENTS.js +4 -1
  65. package/lib/internal/SHAPE_COMPONENTS.js.map +1 -1
  66. package/lib/internal/accessorElementByteLength.d.ts +1 -11
  67. package/lib/internal/accessorElementByteLength.js +1 -11
  68. package/lib/internal/accessorElementByteLength.js.map +1 -1
  69. package/lib/internal/accessorReader.d.ts +5 -9
  70. package/lib/internal/accessorReader.js +5 -9
  71. package/lib/internal/accessorReader.js.map +1 -1
  72. package/lib/internal/accessorValues.d.ts +10 -10
  73. package/lib/internal/accessorValues.js +10 -10
  74. package/lib/internal/collectExternalResources.d.ts +1 -11
  75. package/lib/internal/collectExternalResources.js +1 -11
  76. package/lib/internal/collectExternalResources.js.map +1 -1
  77. package/lib/internal/compareCodeUnits.d.ts +1 -11
  78. package/lib/internal/compareCodeUnits.js +1 -11
  79. package/lib/internal/compareCodeUnits.js.map +1 -1
  80. package/lib/internal/composeLocalTransform.d.ts +13 -10
  81. package/lib/internal/composeLocalTransform.js +13 -10
  82. package/lib/internal/composeLocalTransform.js.map +1 -1
  83. package/lib/internal/decodeDataUri.d.ts +4 -9
  84. package/lib/internal/decodeDataUri.js +4 -9
  85. package/lib/internal/decodeDataUri.js.map +1 -1
  86. package/lib/internal/decodeGlb.d.ts +1 -11
  87. package/lib/internal/decodeGlb.js +1 -11
  88. package/lib/internal/decodeGlb.js.map +1 -1
  89. package/lib/internal/decodeJson.d.ts +1 -11
  90. package/lib/internal/decodeJson.js +10 -12
  91. package/lib/internal/decodeJson.js.map +1 -1
  92. package/lib/internal/fileExtension.d.ts +2 -9
  93. package/lib/internal/fileExtension.js +2 -9
  94. package/lib/internal/fileExtension.js.map +1 -1
  95. package/lib/internal/finiteTuple.d.ts +4 -9
  96. package/lib/internal/finiteTuple.js +4 -9
  97. package/lib/internal/finiteTuple.js.map +1 -1
  98. package/lib/internal/gltfHumanoidBones.d.ts +5 -9
  99. package/lib/internal/gltfHumanoidBones.js +5 -9
  100. package/lib/internal/gltfHumanoidBones.js.map +1 -1
  101. package/lib/internal/humanoidBoneOfName.d.ts +7 -9
  102. package/lib/internal/humanoidBoneOfName.js +7 -9
  103. package/lib/internal/humanoidBoneOfName.js.map +1 -1
  104. package/lib/internal/inspectExternalModelHierarchy.d.ts +1 -11
  105. package/lib/internal/inspectExternalModelHierarchy.js +1 -11
  106. package/lib/internal/inspectExternalModelHierarchy.js.map +1 -1
  107. package/lib/internal/inspectExternalMotion.d.ts +8 -9
  108. package/lib/internal/inspectExternalMotion.js +8 -9
  109. package/lib/internal/inspectExternalMotion.js.map +1 -1
  110. package/lib/internal/inspectExternalMotionNodes.d.ts +6 -9
  111. package/lib/internal/inspectExternalMotionNodes.js +6 -9
  112. package/lib/internal/inspectExternalMotionNodes.js.map +1 -1
  113. package/lib/internal/integerIndex.d.ts +1 -11
  114. package/lib/internal/integerIndex.js +1 -11
  115. package/lib/internal/integerIndex.js.map +1 -1
  116. package/lib/internal/integerIndices.d.ts +1 -11
  117. package/lib/internal/integerIndices.js +1 -11
  118. package/lib/internal/integerIndices.js.map +1 -1
  119. package/lib/internal/nonNegativeInteger.d.ts +1 -11
  120. package/lib/internal/nonNegativeInteger.js +1 -11
  121. package/lib/internal/nonNegativeInteger.js.map +1 -1
  122. package/lib/internal/object.d.ts +1 -11
  123. package/lib/internal/object.js +1 -11
  124. package/lib/internal/object.js.map +1 -1
  125. package/lib/internal/optionalArray.d.ts +1 -11
  126. package/lib/internal/optionalArray.js +1 -11
  127. package/lib/internal/optionalArray.js.map +1 -1
  128. package/lib/internal/optionalObject.d.ts +1 -11
  129. package/lib/internal/optionalObject.js +1 -11
  130. package/lib/internal/optionalObject.js.map +1 -1
  131. package/lib/internal/optionalStringArray.d.ts +1 -11
  132. package/lib/internal/optionalStringArray.js +1 -11
  133. package/lib/internal/optionalStringArray.js.map +1 -1
  134. package/lib/internal/positiveInteger.d.ts +1 -11
  135. package/lib/internal/positiveInteger.js +1 -11
  136. package/lib/internal/positiveInteger.js.map +1 -1
  137. package/lib/internal/readMotionAccessor.d.ts +5 -9
  138. package/lib/internal/readMotionAccessor.js +5 -9
  139. package/lib/internal/readMotionAccessor.js.map +1 -1
  140. package/lib/internal/requiredArray.d.ts +1 -11
  141. package/lib/internal/requiredArray.js +1 -11
  142. package/lib/internal/requiredArray.js.map +1 -1
  143. package/lib/internal/uniqueStrings.d.ts +1 -11
  144. package/lib/internal/uniqueStrings.js +1 -11
  145. package/lib/internal/uniqueStrings.js.map +1 -1
  146. package/lib/internal/validNodeIndex.d.ts +1 -11
  147. package/lib/internal/validNodeIndex.js +1 -11
  148. package/lib/internal/validNodeIndex.js.map +1 -1
  149. package/lib/internal/validateAccessorRange.d.ts +6 -9
  150. package/lib/internal/validateAccessorRange.js +6 -9
  151. package/lib/internal/validateAccessorRange.js.map +1 -1
  152. package/lib/internal/validateHumanoidSkinning.d.ts +8 -10
  153. package/lib/internal/validateHumanoidSkinning.js +8 -10
  154. package/lib/internal/validateHumanoidSkinning.js.map +1 -1
  155. package/lib/internal/validatePayloadClosure.d.ts +8 -9
  156. package/lib/internal/validatePayloadClosure.js +8 -9
  157. package/lib/internal/validatePayloadClosure.js.map +1 -1
  158. package/lib/internal/validateSparseAccessor.d.ts +6 -9
  159. package/lib/internal/validateSparseAccessor.js +6 -9
  160. package/lib/internal/validateSparseAccessor.js.map +1 -1
  161. package/lib/internal/vrmHumanoidBones.d.ts +7 -9
  162. package/lib/internal/vrmHumanoidBones.js +12 -10
  163. package/lib/internal/vrmHumanoidBones.js.map +1 -1
  164. package/lib/isAutoMovieExternalModelIngestProfile.d.ts +4 -10
  165. package/lib/isAutoMovieExternalModelIngestProfile.js +4 -10
  166. package/lib/isAutoMovieExternalModelIngestProfile.js.map +1 -1
  167. package/package.json +7 -7
  168. package/src/AUTOMOVIE_GLTF_MOTION_INTERPRETATION_PROFILE.ts +4 -1
  169. package/src/AUTO_MOVIE_EXTERNAL_MODEL_INGEST_PROFILES.ts +4 -1
  170. package/src/adoptAutoMovieExternalMotion.ts +26 -12
  171. package/src/audio/admitProductionTtsReceipt.ts +262 -0
  172. package/src/audio/decodeProductionAudioAsset.ts +54 -39
  173. package/src/audio/index.ts +1 -0
  174. package/src/audio/resampleProductionAudio.ts +114 -0
  175. package/src/decodeAutoMoviePpmImage.ts +10 -18
  176. package/src/font/TrueTypeByteReader.ts +80 -0
  177. package/src/font/decodeAutoMovieTrueTypeFont.ts +217 -0
  178. package/src/font/index.ts +1 -0
  179. package/src/font/readTrueTypeCharacterMap.ts +115 -0
  180. package/src/font/readTrueTypeGlyphOutline.ts +375 -0
  181. package/src/font/readTrueTypeKerning.ts +73 -0
  182. package/src/font/readTrueTypeNames.ts +74 -0
  183. package/src/humanoidSkeleton.ts +28 -15
  184. package/src/index.ts +1 -0
  185. package/src/ingestDocument.ts +25 -12
  186. package/src/inspectAutoMovieExternalModelBytes.ts +24 -12
  187. package/src/internal/IAccessorSource.ts +11 -8
  188. package/src/internal/IExternalModelAccessorReader.ts +1 -8
  189. package/src/internal/IHumanoidSlot.ts +9 -10
  190. package/src/internal/IParsedContainer.ts +10 -8
  191. package/src/internal/SHAPE_COMPONENTS.ts +4 -1
  192. package/src/internal/accessorElementByteLength.ts +1 -11
  193. package/src/internal/accessorReader.ts +5 -9
  194. package/src/internal/accessorValues.ts +10 -10
  195. package/src/internal/collectExternalResources.ts +1 -11
  196. package/src/internal/compareCodeUnits.ts +1 -11
  197. package/src/internal/composeLocalTransform.ts +13 -10
  198. package/src/internal/decodeDataUri.ts +4 -9
  199. package/src/internal/decodeGlb.ts +1 -11
  200. package/src/internal/decodeJson.ts +10 -12
  201. package/src/internal/fileExtension.ts +2 -9
  202. package/src/internal/finiteTuple.ts +4 -9
  203. package/src/internal/gltfHumanoidBones.ts +5 -9
  204. package/src/internal/humanoidBoneOfName.ts +7 -9
  205. package/src/internal/inspectExternalModelHierarchy.ts +1 -11
  206. package/src/internal/inspectExternalMotion.ts +8 -9
  207. package/src/internal/inspectExternalMotionNodes.ts +6 -9
  208. package/src/internal/integerIndex.ts +1 -11
  209. package/src/internal/integerIndices.ts +1 -11
  210. package/src/internal/nonNegativeInteger.ts +1 -11
  211. package/src/internal/object.ts +1 -11
  212. package/src/internal/optionalArray.ts +1 -11
  213. package/src/internal/optionalObject.ts +1 -11
  214. package/src/internal/optionalStringArray.ts +1 -11
  215. package/src/internal/positiveInteger.ts +1 -11
  216. package/src/internal/readMotionAccessor.ts +5 -9
  217. package/src/internal/requiredArray.ts +1 -11
  218. package/src/internal/uniqueStrings.ts +1 -11
  219. package/src/internal/validNodeIndex.ts +1 -11
  220. package/src/internal/validateAccessorRange.ts +6 -9
  221. package/src/internal/validateHumanoidSkinning.ts +8 -10
  222. package/src/internal/validatePayloadClosure.ts +8 -9
  223. package/src/internal/validateSparseAccessor.ts +6 -9
  224. package/src/internal/vrmHumanoidBones.ts +12 -10
  225. package/src/isAutoMovieExternalModelIngestProfile.ts +4 -10
@@ -1,14 +1,11 @@
1
1
  /**
2
2
  * Admit one accessor's dense byte extent using its component shape and stride.
3
3
  *
4
- * The caller has admitted component type, shape, positive count, nonnegative offset and referenced view. Dense storage requires offset + (count - 1) * stride + paddedElementBytes to fit the view and stride to cover one element. Missing dense storage is accepted only when a sparse declaration exists, whose own gate checks its ranges; this gate does not check component alignment or payload values.
5
- *
6
- * @evidence contracts/development/implementation.md#principled-implementation Count, zero-default byte offset and padded element size determine final extent; validated buffer views bound the resulting range.
7
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Dense range arithmetic belongs here and shared element sizing supplies matrix-column padding without another table.
8
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts An accessor lacking both a buffer view and sparse payload is refused; no fallback data is synthesized.
9
- * @evidence contracts/development/common.md#meaningful-documentation Comments give the dense extent formula, sparse-only allowance and prevalidated metadata premise.
10
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant-time arithmetic resolves one view and shape without visiting accessor elements.
11
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Padded element sizing is shared with sparse validation and component readers; no computed payload values are cached.
12
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The gate borrows metadata for the duration of one call and owns no reader or resident bytes.
4
+ * The caller has admitted component type, shape, positive count, nonnegative
5
+ * offset and referenced view. Dense storage requires offset + (count - 1) *
6
+ * stride + paddedElementBytes to fit the view and stride to cover one element.
7
+ * Missing dense storage is accepted only when a sparse declaration exists,
8
+ * whose own gate checks its ranges; this gate does not check component
9
+ * alignment or payload values.
13
10
  */
14
11
  export declare const validateAccessorRange: (accessor: Record<string, unknown>, index: number, bufferViews: unknown[]) => void;
@@ -6,15 +6,12 @@ const object_1 = require("./object");
6
6
  /**
7
7
  * Admit one accessor's dense byte extent using its component shape and stride.
8
8
  *
9
- * The caller has admitted component type, shape, positive count, nonnegative offset and referenced view. Dense storage requires offset + (count - 1) * stride + paddedElementBytes to fit the view and stride to cover one element. Missing dense storage is accepted only when a sparse declaration exists, whose own gate checks its ranges; this gate does not check component alignment or payload values.
10
- *
11
- * @evidence contracts/development/implementation.md#principled-implementation Count, zero-default byte offset and padded element size determine final extent; validated buffer views bound the resulting range.
12
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Dense range arithmetic belongs here and shared element sizing supplies matrix-column padding without another table.
13
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts An accessor lacking both a buffer view and sparse payload is refused; no fallback data is synthesized.
14
- * @evidence contracts/development/common.md#meaningful-documentation Comments give the dense extent formula, sparse-only allowance and prevalidated metadata premise.
15
- * @evidence contracts/development/implementation.md#efficient-algorithms Constant-time arithmetic resolves one view and shape without visiting accessor elements.
16
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Padded element sizing is shared with sparse validation and component readers; no computed payload values are cached.
17
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The gate borrows metadata for the duration of one call and owns no reader or resident bytes.
9
+ * The caller has admitted component type, shape, positive count, nonnegative
10
+ * offset and referenced view. Dense storage requires offset + (count - 1) *
11
+ * stride + paddedElementBytes to fit the view and stride to cover one element.
12
+ * Missing dense storage is accepted only when a sparse declaration exists,
13
+ * whose own gate checks its ranges; this gate does not check component
14
+ * alignment or payload values.
18
15
  */
19
16
  const validateAccessorRange = (accessor, index, bufferViews) => {
20
17
  if (accessor.bufferView === undefined) {
@@ -1 +1 @@
1
- {"version":3,"file":"validateAccessorRange.js","sourceRoot":"","sources":["../../src/internal/validateAccessorRange.ts"],"names":[],"mappings":";;;AAAA,2EAAwE;AACxE,qCAAkC;AAElC;;;;;;;;;;;;GAYG;AACI,MAAM,qBAAqB,GAItB,CACV,QAAiC,EACjC,KAAa,EACb,WAAsB,EAChB,EAAE;IACR,IAAI,QAAQ,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;QACtC,IAAI,QAAQ,CAAC,MAAM,KAAK,SAAS;YAC/B,MAAM,IAAI,KAAK,CACb,aAAa,KAAK,oDAAoD,CACvE,CAAC;QACJ,OAAO;IACT,CAAC;IACD,MAAM,IAAI,GAA4B,IAAA,eAAM,EAC1C,WAAW,CAAC,QAAQ,CAAC,UAAoB,CAAC,EAC1C,eAAe,QAAQ,CAAC,UAAoB,GAAG,CAChD,CAAC;IACF,MAAM,OAAO,GAAW,IAAA,qDAAyB,EAC/C,QAAQ,CAAC,aAAuB,EAChC,QAAQ,CAAC,IAAc,CACxB,CAAC;IACF,MAAM,MAAM,GAAY,IAAI,CAAC,UAAiC,IAAI,OAAO,CAAC;IAC1E,IAAI,MAAM,GAAG,OAAO;QAClB,MAAM,IAAI,KAAK,CACb,aAAa,KAAK,kBAAkB,OAAO,kCAAkC,MAAM,GAAG,CACvF,CAAC;IACJ,MAAM,MAAM,GAAY,QAAQ,CAAC,UAAiC,IAAI,CAAC,CAAC;IACxE,MAAM,KAAK,GAAW,QAAQ,CAAC,KAAe,CAAC;IAC/C,MAAM,GAAG,GAAW,MAAM,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,MAAM,GAAG,OAAO,CAAC;IAC5D,IAAI,GAAG,GAAI,IAAI,CAAC,UAAqB;QACnC,MAAM,IAAI,KAAK,CACb,aAAa,KAAK,cAAc,GAAG,iCAAiC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CACrG,CAAC;AACN,CAAC,CAAC;AApCW,QAAA,qBAAqB,GAArB,qBAAqB,CAoChC"}
1
+ {"version":3,"file":"validateAccessorRange.js","sourceRoot":"","sources":["../../src/internal/validateAccessorRange.ts"],"names":[],"mappings":";;;AAAA,2EAAwE;AACxE,qCAAkC;AAElC;;;;;;;;;GASG;AACI,MAAM,qBAAqB,GAItB,CACV,QAAiC,EACjC,KAAa,EACb,WAAsB,EAChB,EAAE;IACR,IAAI,QAAQ,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;QACtC,IAAI,QAAQ,CAAC,MAAM,KAAK,SAAS;YAC/B,MAAM,IAAI,KAAK,CACb,aAAa,KAAK,oDAAoD,CACvE,CAAC;QACJ,OAAO;IACT,CAAC;IACD,MAAM,IAAI,GAA4B,IAAA,eAAM,EAC1C,WAAW,CAAC,QAAQ,CAAC,UAAoB,CAAC,EAC1C,eAAe,QAAQ,CAAC,UAAoB,GAAG,CAChD,CAAC;IACF,MAAM,OAAO,GAAW,IAAA,qDAAyB,EAC/C,QAAQ,CAAC,aAAuB,EAChC,QAAQ,CAAC,IAAc,CACxB,CAAC;IACF,MAAM,MAAM,GAAY,IAAI,CAAC,UAAiC,IAAI,OAAO,CAAC;IAC1E,IAAI,MAAM,GAAG,OAAO;QAClB,MAAM,IAAI,KAAK,CACb,aAAa,KAAK,kBAAkB,OAAO,kCAAkC,MAAM,GAAG,CACvF,CAAC;IACJ,MAAM,MAAM,GAAY,QAAQ,CAAC,UAAiC,IAAI,CAAC,CAAC;IACxE,MAAM,KAAK,GAAW,QAAQ,CAAC,KAAe,CAAC;IAC/C,MAAM,GAAG,GAAW,MAAM,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,MAAM,GAAG,OAAO,CAAC;IAC5D,IAAI,GAAG,GAAI,IAAI,CAAC,UAAqB;QACnC,MAAM,IAAI,KAAK,CACb,aAAa,KAAK,cAAc,GAAG,iCAAiC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CACrG,CAAC;AACN,CAAC,CAAC;AApCW,QAAA,qBAAqB,GAArB,qBAAqB,CAoChC"}
@@ -1,16 +1,14 @@
1
1
  import type { IAccessorSource } from "./IAccessorSource";
2
2
  /**
3
- * Check complete mesh/skin bindings and collect joints actually receiving positive weights.
3
+ * Check complete mesh/skin bindings and collect joints actually receiving
4
+ * positive weights.
4
5
  *
5
- * Matched VEC4 joints/weights and POSITION counts drive each vertex read. Negative components throw before a finite positive sum establishes weighted coverage. This pass reads only JOINTS_0/WEIGHTS_0; it does not enforce weight-sum normalization, uniqueness of nonzero influences or complete coverage of additional joint sets, and does not establish anatomical validity.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Matched VEC4 joint/weight counts drive each vertex read; individual negative weights throw before a finite positive sum establishes coverage.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Mesh/skin pairs own weight admission, while the shared accessor reader owns stride, numeric decoding and resident views.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Negative weights cannot be hidden by cancellation with positive weights; malformed bindings throw without guessed or clamped influences.
10
- * @evidence contracts/development/common.md#meaningful-documentation Prose states nonnegative influence admission, positive finite total and the unresolved normalization/additional-set limits of this coverage pass.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost is O(N plus unique bound mesh/skin vertex counts), with four weight reads and up to four joint-index reads per vertex, using expected constant-time membership sets.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Repeated nodes binding the identical mesh/skin pair reuse completed checks within immutable synchronous inspection only.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The per-call pair set and weighted-joint set scale with bindings and joints; no mesh bytes or running resources survive.
6
+ * Matched VEC4 joints/weights and POSITION counts drive each vertex read.
7
+ * Negative components throw before a finite positive sum establishes weighted
8
+ * coverage. This pass reads only JOINTS_0/WEIGHTS_0; it does not enforce
9
+ * weight-sum normalization, uniqueness of nonzero influences or complete
10
+ * coverage of additional joint sets, and does not establish anatomical
11
+ * validity.
14
12
  */
15
13
  export declare const validateHumanoidSkinning: (props: {
16
14
  nodes: unknown[];
@@ -6,17 +6,15 @@ const integerIndex_1 = require("./integerIndex");
6
6
  const object_1 = require("./object");
7
7
  const requiredArray_1 = require("./requiredArray");
8
8
  /**
9
- * Check complete mesh/skin bindings and collect joints actually receiving positive weights.
9
+ * Check complete mesh/skin bindings and collect joints actually receiving
10
+ * positive weights.
10
11
  *
11
- * Matched VEC4 joints/weights and POSITION counts drive each vertex read. Negative components throw before a finite positive sum establishes weighted coverage. This pass reads only JOINTS_0/WEIGHTS_0; it does not enforce weight-sum normalization, uniqueness of nonzero influences or complete coverage of additional joint sets, and does not establish anatomical validity.
12
- *
13
- * @evidence contracts/development/implementation.md#principled-implementation Matched VEC4 joint/weight counts drive each vertex read; individual negative weights throw before a finite positive sum establishes coverage.
14
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Mesh/skin pairs own weight admission, while the shared accessor reader owns stride, numeric decoding and resident views.
15
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Negative weights cannot be hidden by cancellation with positive weights; malformed bindings throw without guessed or clamped influences.
16
- * @evidence contracts/development/common.md#meaningful-documentation Prose states nonnegative influence admission, positive finite total and the unresolved normalization/additional-set limits of this coverage pass.
17
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost is O(N plus unique bound mesh/skin vertex counts), with four weight reads and up to four joint-index reads per vertex, using expected constant-time membership sets.
18
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Repeated nodes binding the identical mesh/skin pair reuse completed checks within immutable synchronous inspection only.
19
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The per-call pair set and weighted-joint set scale with bindings and joints; no mesh bytes or running resources survive.
12
+ * Matched VEC4 joints/weights and POSITION counts drive each vertex read.
13
+ * Negative components throw before a finite positive sum establishes weighted
14
+ * coverage. This pass reads only JOINTS_0/WEIGHTS_0; it does not enforce
15
+ * weight-sum normalization, uniqueness of nonzero influences or complete
16
+ * coverage of additional joint sets, and does not establish anatomical
17
+ * validity.
20
18
  */
21
19
  const validateHumanoidSkinning = (props) => {
22
20
  let skinnedPrimitiveCount = 0;
@@ -1 +1 @@
1
- {"version":3,"file":"validateHumanoidSkinning.js","sourceRoot":"","sources":["../../src/internal/validateHumanoidSkinning.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,iDAA8C;AAC9C,qCAAkC;AAClC,mDAAgD;AAEhD;;;;;;;;;;;;GAYG;AACI,MAAM,wBAAwB,GAKjB,CAAC,KAKpB,EAAe,EAAE;IAChB,IAAI,qBAAqB,GAAW,CAAC,CAAC;IACtC,MAAM,aAAa,GAAgB,IAAI,GAAG,EAAU,CAAC;IACrD,yEAAyE;IACzE,mDAAmD;IACnD,MAAM,eAAe,GAAgB,IAAI,GAAG,EAAU,CAAC;IACvD,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAc,EAAE,SAAiB,EAAQ,EAAE;QAC9D,MAAM,IAAI,GAA4B,IAAA,eAAM,EAAC,KAAK,EAAE,SAAS,SAAS,GAAG,CAAC,CAAC;QAC3E,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS;YAAE,OAAO;QACpC,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS;YACzB,MAAM,IAAI,KAAK,CACb,SAAS,SAAS,uCAAuC,CAC1D,CAAC;QACJ,MAAM,SAAS,GAAW,IAAI,CAAC,IAAc,CAAC;QAC9C,MAAM,SAAS,GAAW,IAAI,CAAC,IAAc,CAAC;QAC9C,MAAM,OAAO,GAAW,GAAG,SAAS,IAAI,SAAS,EAAE,CAAC;QACpD,IAAI,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC;YAAE,OAAO;QACzC,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC7B,MAAM,MAAM,GAAc,IAAA,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AK,CAAC,KAAK,KAAK,IAAI,KAAK,IAAI,MAAM,CAAC,MAAM;wBACjE,MAAM,IAAI,KAAK,CACb,qBAAqB,SAAS,IAAI,cAAc,WAAW,MAAM,gBAAgB,KAAK,iBAAiB,SAAS,GAAG,CACpH,CAAC;oBACJ,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAW,CAAC,CAAC;gBAC7C,CAAC;gBACD,IAAI,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,KAAK,IAAI,SAAS,IAAI,CAAC;oBACxD,MAAM,IAAI,KAAK,CACb,qBAAqB,SAAS,IAAI,cAAc,WAAW,MAAM,+BAA+B,CACjG,CAAC;YACN,CAAC;YACD,EAAE,qBAAqB,CAAC;QAC1B,CAAC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,IAAI,qBAAqB,KAAK,CAAC;QAC7B,MAAM,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAC;IACJ,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAnIW,QAAA,wBAAwB,GAAxB,wBAAwB,CAmInC"}
@@ -2,15 +2,14 @@ import type { AutoMovieExternalModelResourceResolver } from "@automovie/interfac
2
2
  /**
3
3
  * Bind every declared glTF buffer and image to its exact resident payload.
4
4
  *
5
- * The caller has admitted declared counts, lengths, views and URI shapes. Only buffer zero in a GLB/VRM container may borrow BIN, with at most three pad bytes; URI buffers require exact declared lengths, and views must fit declared and resident extents. Each external URI entry invokes the caller resolver independently, without network access here; data URIs decode locally and URI images need nonempty bytes. Returned buffer references live with the synchronous inspector, while image formats and sparse contents remain uninspected.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation GLB buffer zero owns BIN with at most three pad bytes; URI buffers require exact lengths and views fit declared and resident bounds.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One payload owner sequences buffer binding, orphan-BIN checks, view bounds and image presence before profile decoding.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Missing sidecars throw; resolver effects occur per declared entry and are not silently deduplicated or replaced.
10
- * @evidence contracts/development/common.md#meaningful-documentation Comments state read-only resident bytes, URI resolver responsibility, padding limits and no network fetch.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Work follows buffer/view/image counts and encoded data-URI bytes, plus the caller's complete resolver work for each declared external URI entry; repeated URIs repeat callback effects, borrowed payloads avoid copies, and data URIs allocate decoded arrays.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each resolved buffer is reused by its accessors inside the call; callback effects prohibit caching by URI without caller guarantees.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The inspector owns the temporary payload list and decoded data-URI arrays only for the call; sidecar buffers remain borrowed.
5
+ * The caller has admitted declared counts, lengths, views and URI shapes. Only
6
+ * buffer zero in a GLB/VRM container may borrow BIN, with at most three pad
7
+ * bytes; URI buffers require exact declared lengths, and views must fit
8
+ * declared and resident extents. Each external URI entry invokes the caller
9
+ * resolver independently, without network access here; data URIs decode locally
10
+ * and URI images need nonempty bytes. Returned buffer references live with the
11
+ * synchronous inspector, while image formats and sparse contents remain
12
+ * uninspected.
14
13
  */
15
14
  export declare const validatePayloadClosure: (props: {
16
15
  format: "gltf" | "glb" | "vrm";
@@ -6,15 +6,14 @@ const object_1 = require("./object");
6
6
  /**
7
7
  * Bind every declared glTF buffer and image to its exact resident payload.
8
8
  *
9
- * The caller has admitted declared counts, lengths, views and URI shapes. Only buffer zero in a GLB/VRM container may borrow BIN, with at most three pad bytes; URI buffers require exact declared lengths, and views must fit declared and resident extents. Each external URI entry invokes the caller resolver independently, without network access here; data URIs decode locally and URI images need nonempty bytes. Returned buffer references live with the synchronous inspector, while image formats and sparse contents remain uninspected.
10
- *
11
- * @evidence contracts/development/implementation.md#principled-implementation GLB buffer zero owns BIN with at most three pad bytes; URI buffers require exact lengths and views fit declared and resident bounds.
12
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One payload owner sequences buffer binding, orphan-BIN checks, view bounds and image presence before profile decoding.
13
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Missing sidecars throw; resolver effects occur per declared entry and are not silently deduplicated or replaced.
14
- * @evidence contracts/development/common.md#meaningful-documentation Comments state read-only resident bytes, URI resolver responsibility, padding limits and no network fetch.
15
- * @evidence contracts/development/implementation.md#efficient-algorithms Work follows buffer/view/image counts and encoded data-URI bytes, plus the caller's complete resolver work for each declared external URI entry; repeated URIs repeat callback effects, borrowed payloads avoid copies, and data URIs allocate decoded arrays.
16
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each resolved buffer is reused by its accessors inside the call; callback effects prohibit caching by URI without caller guarantees.
17
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The inspector owns the temporary payload list and decoded data-URI arrays only for the call; sidecar buffers remain borrowed.
9
+ * The caller has admitted declared counts, lengths, views and URI shapes. Only
10
+ * buffer zero in a GLB/VRM container may borrow BIN, with at most three pad
11
+ * bytes; URI buffers require exact declared lengths, and views must fit
12
+ * declared and resident extents. Each external URI entry invokes the caller
13
+ * resolver independently, without network access here; data URIs decode locally
14
+ * and URI images need nonempty bytes. Returned buffer references live with the
15
+ * synchronous inspector, while image formats and sparse contents remain
16
+ * uninspected.
18
17
  */
19
18
  const validatePayloadClosure = (props) => {
20
19
  const payloads = props.buffers.map((value, index) => {
@@ -1 +1 @@
1
- {"version":3,"file":"validatePayloadClosure.js","sourceRoot":"","sources":["../../src/internal/validatePayloadClosure.ts"],"names":[],"mappings":";;;AAEA,mDAAgD;AAChD,qCAAkC;AAElC;;;;;;;;;;;;GAYG;AACI,MAAM,sBAAsB,GAOd,CAAC,KAOrB,EAAgB,EAAE;IACjB,MAAM,QAAQ,GAAiB,KAAK,CAAC,OAAO,CAAC,GAAG,CAC9C,CAAC,KAAc,EAAE,KAAa,EAAc,EAAE;QAC5C,MAAM,MAAM,GAA4B,IAAA,eAAM,EAC5C,KAAK,EACL,WAAW,KAAK,GAAG,CACpB,CAAC;QACF,MAAM,MAAM,GAAW,MAAM,CAAC,UAAo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MAAM,KAAK,GAAsB,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC;YAC5D,CAAC,CAAC,IAAA,6BAAa,EAAC,KAAK,CAAC,GAAG,EAAE,UAAU,KAAK,OAAO,CAAC;YAClD,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,CAAC;QACjD,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,UAAU,KAAK,CAAC;YAC1C,MAAM,IAAI,KAAK,CACb,mBAAmB,KAAK,CAAC,GAAG,qDAAqD,CAClF,CAAC;IACN,CAAC,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAnGW,QAAA,sBAAsB,GAAtB,sBAAsB,CAmGjC"}
@@ -1,14 +1,11 @@
1
1
  /**
2
2
  * Admit sparse accessor byte ranges within validated glTF buffer views.
3
3
  *
4
- * Absent sparse metadata does nothing. Present metadata needs a positive count no greater than accessor count, valid index/value views, unsigned byte/short/int indices and nonnegative zero-default offsets. Both tightly packed extents must fit their views; index ordering, index values and sparse payload values are not decoded, and skin/motion readers reject sparse accessors separately.
5
- *
6
- * @evidence contracts/development/implementation.md#principled-implementation Sparse count cannot exceed accessor count; unsigned index widths and padded matrix element sizes determine both payload ranges.
7
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The sparse gate owns count, index format and subview range checks while shared element sizing owns matrix padding.
8
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Sparse layout is checked structurally but skin/motion consumers explicitly refuse sparse reading rather than inventing dense values.
9
- * @evidence contracts/development/common.md#meaningful-documentation Prose explains admitted view indices, zero-default offsets, count bounds and consumer limitations.
10
- * @evidence contracts/development/implementation.md#efficient-algorithms One sparse accessor requires constant-size field checks and two range calculations independent of sparse element count.
11
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Subview metadata is read once per sparse payload; no byte decoding is performed or cached here.
12
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The range gate creates temporary metadata references only and retains no payload, reader or handle.
4
+ * Absent sparse metadata does nothing. Present metadata needs a positive count
5
+ * no greater than accessor count, valid index/value views, unsigned
6
+ * byte/short/int indices and nonnegative zero-default offsets. Both tightly
7
+ * packed extents must fit their views; index ordering, index values and sparse
8
+ * payload values are not decoded, and skin/motion readers reject sparse
9
+ * accessors separately.
13
10
  */
14
11
  export declare const validateSparseAccessor: (accessor: Record<string, unknown>, index: number, bufferViews: unknown[]) => void;
@@ -10,15 +10,12 @@ const positiveInteger_1 = require("./positiveInteger");
10
10
  /**
11
11
  * Admit sparse accessor byte ranges within validated glTF buffer views.
12
12
  *
13
- * Absent sparse metadata does nothing. Present metadata needs a positive count no greater than accessor count, valid index/value views, unsigned byte/short/int indices and nonnegative zero-default offsets. Both tightly packed extents must fit their views; index ordering, index values and sparse payload values are not decoded, and skin/motion readers reject sparse accessors separately.
14
- *
15
- * @evidence contracts/development/implementation.md#principled-implementation Sparse count cannot exceed accessor count; unsigned index widths and padded matrix element sizes determine both payload ranges.
16
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The sparse gate owns count, index format and subview range checks while shared element sizing owns matrix padding.
17
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Sparse layout is checked structurally but skin/motion consumers explicitly refuse sparse reading rather than inventing dense values.
18
- * @evidence contracts/development/common.md#meaningful-documentation Prose explains admitted view indices, zero-default offsets, count bounds and consumer limitations.
19
- * @evidence contracts/development/implementation.md#efficient-algorithms One sparse accessor requires constant-size field checks and two range calculations independent of sparse element count.
20
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Subview metadata is read once per sparse payload; no byte decoding is performed or cached here.
21
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The range gate creates temporary metadata references only and retains no payload, reader or handle.
13
+ * Absent sparse metadata does nothing. Present metadata needs a positive count
14
+ * no greater than accessor count, valid index/value views, unsigned
15
+ * byte/short/int indices and nonnegative zero-default offsets. Both tightly
16
+ * packed extents must fit their views; index ordering, index values and sparse
17
+ * payload values are not decoded, and skin/motion readers reject sparse
18
+ * accessors separately.
22
19
  */
23
20
  const validateSparseAccessor = (accessor, index, bufferViews) => {
24
21
  if (accessor.sparse === undefined)
@@ -1 +1 @@
1
- {"version":3,"file":"validateSparseAccessor.js","sourceRoot":"","sources":["../../src/internal/validateSparseAccessor.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,2EAAwE;AACxE,iDAA8C;AAC9C,6DAA0D;AAC1D,qCAAkC;AAClC,uDAAoD;AAEpD;;;;;;;;;;;;GAYG;AACI,MAAM,sBAAsB,GAIvB,CACV,QAAiC,EACjC,KAAa,EACb,WAAsB,EAChB,EAAE;IACR,IAAI,QAAQ,CAAC,MAAM,KAAK,SAAS;QAAE,OAAO;IAC1C,MAAM,MAAM,GAA4B,IAAA,eAAM,EAC5C,QAAQ,CAAC,MAAM,EACf,aAAa,KAAK,UAAU,CAC7B,CAAC;IACF,IAAA,iCAAe,EAAC,MAAM,CAAC,KAAK,EAAE,aAAa,KAAK,gBAAgB,CAAC,CAAC;IAClE,IAAK,MAAM,CAAC,KAAgB,GAAI,QAAQ,CAAC,KAAgB;QACvD,MAAM,IAAI,KAAK,CACb,aAAa,KAAK,4CAA4C,CAC/D,CAAC;IACJ,MAAM,OAAO,GAA4B,IAAA,eAAM,EAC7C,MAAM,CAAC,OAAO,EACd,aAAa,KAAK,kBAAkB,CACrC,CAAC;IACF,MAAM,MAAM,GAA4B,IAAA,eAAM,EAC5C,MAAM,CAAC,MAAM,EACb,aAAa,KAAK,iBAAiB,CACpC,CAAC;IACF,IAAA,2BAAY,EACV,OAAO,CAAC,UAAU,EAClB,WAAW,CAAC,MAAM,EAClB,aAAa,KAAK,6BAA6B,EAC/C,IAAI,CACL,CAAC;IACF,IAAA,2BAAY,EACV,MAAM,CAAC,UAAU,EACjB,WAAW,CAAC,MAAM,EAClB,aAAa,KAAK,4BAA4B,EAC9C,IAAI,CACL,CAAC;IACF,IACE,OAAO,CAAC,aAAa,KAAK,IAAI;QAC9B,OAAO,CAAC,aAAa,KAAK,IAAI;QAC9B,OAAO,CAAC,aAAa,KAAK,IAAI;QAE9B,MAAM,IAAI,KAAK,CACb,aAAa,KAAK,qEAAqE,CACxF,CAAC;IACJ,MAAM,KAAK,GAAW,MAAM,CAAC,KAAe,CAAC;IAC7C,oBAAoB,CAClB,WAAW,EACX,OAAO,CAAC,UAAoB,EAC3B,OAAO,CAAC,UAAiC,IAAI,CAAC,EAC/C,KAAK,GAAG,iCAAe,CAAC,GAAG,CAAC,OAAO,CAAC,aAAuB,CAAE,EAC7D,aAAa,KAAK,kBAAkB,CACrC,CAAC;IACF,oBAAoB,CAClB,WAAW,EACX,MAAM,CAAC,UAAoB,EAC1B,MAAM,CAAC,UAAiC,IAAI,CAAC,EAC9C,KAAK;QACH,IAAA,qDAAyB,EACvB,QAAQ,CAAC,aAAuB,EAChC,QAAQ,CAAC,IAAc,CACxB,EACH,aAAa,KAAK,iBAAiB,CACpC,CAAC;AACJ,CAAC,CAAC;AAlEW,QAAA,sBAAsB,GAAtB,sBAAsB,CAkEjC;AAEF,MAAM,oBAAoB,GAMd,CACV,WAAsB,EACtB,SAAiB,EACjB,MAAc,EACd,MAAc,EACd,IAAY,EACN,EAAE;IACR,IAAA,uCAAkB,EAAC,MAAM,EAAE,GAAG,IAAI,aAAa,CAAC,CAAC;IACjD,MAAM,IAAI,GAA4B,IAAA,eAAM,EAC1C,WAAW,CAAC,SAAS,CAAC,EACtB,eAAe,SAAS,GAAG,CAC5B,CAAC;IACF,IAAI,MAAM,GAAG,MAAM,GAAI,IAAI,CAAC,UAAqB;QAC/C,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,gCAAgC,CAAC,CAAC;AAC7D,CAAC,CAAC"}
1
+ {"version":3,"file":"validateSparseAccessor.js","sourceRoot":"","sources":["../../src/internal/validateSparseAccessor.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AACpD,2EAAwE;AACxE,iD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AiC,IAAI,CAAC,EAC/C,KAAK,GAAG,iCAAe,CAAC,GAAG,CAAC,OAAO,CAAC,aAAuB,CAAE,EAC7D,aAAa,KAAK,kBAAkB,CACrC,CAAC;IACF,oBAAoB,CAClB,WAAW,EACX,MAAM,CAAC,UAAoB,EAC1B,MAAM,CAAC,UAAiC,IAAI,CAAC,EAC9C,KAAK;QACH,IAAA,qDAAyB,EACvB,QAAQ,CAAC,aAAuB,EAChC,QAAQ,CAAC,IAAc,CACxB,EACH,aAAa,KAAK,iBAAiB,CACpC,CAAC;AACJ,CAAC,CAAC;AAlEW,QAAA,sBAAsB,GAAtB,sBAAsB,CAkEjC;AAEF,MAAM,oBAAoB,GAMd,CACV,WAAsB,EACtB,SAAiB,EACjB,MAAc,EACd,MAAc,EACd,IAAY,EACN,EAAE;IACR,IAAA,uCAAkB,EAAC,MAAM,EAAE,GAAG,IAAI,aAAa,CAAC,CAAC;IACjD,MAAM,IAAI,GAA4B,IAAA,eAAM,EAC1C,WAAW,CAAC,SAAS,CAAC,EACtB,eAAe,SAAS,GAAG,CAC5B,CAAC;IACF,IAAI,MAAM,GAAG,MAAM,GAAI,IAAI,CAAC,UAAqB;QAC/C,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,gCAAgC,CAAC,CAAC;AAC7D,CAAC,CAAC"}
@@ -2,14 +2,12 @@ import type { IHumanoidSlot } from "./IHumanoidSlot";
2
2
  /**
3
3
  * Read declared VRM humanoid mappings using version-specific thumb migration.
4
4
  *
5
- * VRMC_vrm takes precedence when both metadata families exist and emits recognized bone keys in code-unit order; VRM 0.x retains array order, migrates thumb names and rejects duplicate slots. Unknown names and invalid node indices throw, and absent metadata returns an empty list. VRMC_vrm is interpreted with 1.0 thumb names even for 1.0-beta declarations; this pass does not validate a complete VRM schema, unique target nodes or skin weights.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation VRMC_vrm uses named 1.0 slots and valid node indices; VRM 0.x maps renamed thumb slots and rejects duplicates.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Version branching, thumb migration and the closed humanoid vocabulary stay with this metadata owner.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unknown or dangling mappings throw; VRMC_vrm beta thumb conventions remain an explicit unresolved interpretation limit.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment states metadata version branching, node references, ordering and unsupported beta interpretation.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Work follows mapping entries and name text; 1.0 metadata enumerates B keys before O(B log B) prefix-scanning comparisons, while 0.x uses expected constant-time slot lookups after name admission.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each metadata mapping is resolved once during its inspector call; mutable documents prevent persistent equivalence caching.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Result slot records scale with declared mappings; temporary entries and uniqueness sets die on return or throw.
5
+ * VRMC_vrm takes precedence when both metadata families exist and emits
6
+ * recognized bone keys in code-unit order; VRM 0.x retains array order,
7
+ * migrates thumb names and rejects duplicate slots. Unknown names and invalid
8
+ * node indices throw, and absent metadata returns an empty list. VRMC_vrm is
9
+ * interpreted with 1.0 thumb names even for 1.0-beta declarations; this pass
10
+ * does not validate a complete VRM schema, unique target nodes or skin
11
+ * weights.
14
12
  */
15
13
  export declare const vrmHumanoidBones: (document: Record<string, unknown>, nodes: unknown[]) => IHumanoidSlot[];
@@ -9,15 +9,13 @@ const validNodeIndex_1 = require("./validNodeIndex");
9
9
  /**
10
10
  * Read declared VRM humanoid mappings using version-specific thumb migration.
11
11
  *
12
- * VRMC_vrm takes precedence when both metadata families exist and emits recognized bone keys in code-unit order; VRM 0.x retains array order, migrates thumb names and rejects duplicate slots. Unknown names and invalid node indices throw, and absent metadata returns an empty list. VRMC_vrm is interpreted with 1.0 thumb names even for 1.0-beta declarations; this pass does not validate a complete VRM schema, unique target nodes or skin weights.
13
- *
14
- * @evidence contracts/development/implementation.md#principled-implementation VRMC_vrm uses named 1.0 slots and valid node indices; VRM 0.x maps renamed thumb slots and rejects duplicates.
15
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Version branching, thumb migration and the closed humanoid vocabulary stay with this metadata owner.
16
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unknown or dangling mappings throw; VRMC_vrm beta thumb conventions remain an explicit unresolved interpretation limit.
17
- * @evidence contracts/development/common.md#meaningful-documentation The comment states metadata version branching, node references, ordering and unsupported beta interpretation.
18
- * @evidence contracts/development/implementation.md#efficient-algorithms Work follows mapping entries and name text; 1.0 metadata enumerates B keys before O(B log B) prefix-scanning comparisons, while 0.x uses expected constant-time slot lookups after name admission.
19
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each metadata mapping is resolved once during its inspector call; mutable documents prevent persistent equivalence caching.
20
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Result slot records scale with declared mappings; temporary entries and uniqueness sets die on return or throw.
12
+ * VRMC_vrm takes precedence when both metadata families exist and emits
13
+ * recognized bone keys in code-unit order; VRM 0.x retains array order,
14
+ * migrates thumb names and rejects duplicate slots. Unknown names and invalid
15
+ * node indices throw, and absent metadata returns an empty list. VRMC_vrm is
16
+ * interpreted with 1.0 thumb names even for 1.0-beta declarations; this pass
17
+ * does not validate a complete VRM schema, unique target nodes or skin
18
+ * weights.
21
19
  */
22
20
  const vrmHumanoidBones = (document, nodes) => {
23
21
  const extensions = (0, optionalObject_1.optionalObject)(document.extensions, "extensions");
@@ -54,7 +52,11 @@ const vrmHumanoidBones = (document, nodes) => {
54
52
  return [];
55
53
  };
56
54
  exports.vrmHumanoidBones = vrmHumanoidBones;
57
- /** Read a VRM 0.x bone name as its VRM 1.0 slot. VRM 1.0 renamed the thumb chain, so 0.x `ThumbProximal` is the 1.0 `ThumbMetacarpal` and 0.x `ThumbIntermediate` the 1.0 `ThumbProximal`; every other name is shared. */
55
+ /**
56
+ * Read a VRM 0.x bone name as its VRM 1.0 slot. VRM 1.0 renamed the thumb
57
+ * chain, so 0.x `ThumbProximal` is the 1.0 `ThumbMetacarpal` and 0.x
58
+ * `ThumbIntermediate` the 1.0 `ThumbProximal`; every other name is shared.
59
+ */
58
60
  const vrm0Bone = (value) => {
59
61
  if (typeof value !== "string")
60
62
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"vrmHumanoidBones.js","sourceRoot":"","sources":["../../src/internal/vrmHumanoidBones.ts"],"names":[],"mappings":";;;AAGA,yDAAsD;AACtD,qCAAkC;AAClC,qDAAkD;AAClD,mDAAgD;AAChD,qDAAkD;AAElD;;;;;;;;;;;;GAYG;AACI,MAAM,gBAAgB,GAGN,CACrB,QAAiC,EACjC,KAAgB,EACC,EAAE;IACnB,MAAM,UAAU,GAA4B,IAAA,+BAAc,EACxD,QAAQ,CAAC,UAAU,EACnB,YAAY,CACb,CAAC;IACF,IAAI,UAAU,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;QACtC,MAAM,GAAG,GAA4B,IAAA,eAAM,EACzC,UAAU,CAAC,QAAQ,EACnB,qBAAqB,CACtB,CAAC;QACF,MAAM,QAAQ,GAA4B,IAAA,eAAM,EAC9C,GAAG,CAAC,QAAQ,EACZ,8BAA8B,CAC/B,CAAC;QACF,MAAM,KAAK,GAA4B,IAAA,eAAM,EAC3C,QAAQ,CAAC,UAAU,EACnB,yCAAyC,CAC1C,CAAC;QACF,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;aACzB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAoB,EAAE,CAAC,KAAK,CAAoB,EAAU,EAAE,CACtE,IAAA,mCAAgB,EAAC,IAAI,EAAE,KAAK,CAAC,CAC9B;aACA,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAoB,EAAiB,EAAE;YACvD,IAAI,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,KAAK;gBAC/C,MAAM,IAAI,KAAK,CAAC,4CAA4C,IAAI,IAAI,CAAC,CAAC;YACxE,MAAM,IAAI,GAAY,IAAA,eAAM,EAC1B,KAAK,EAC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IACnB,aAAa,EAAE,IAAI;IACnB,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,mBAAmB,EAAE,IAAI;IACzB,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,IAAI;IACrB,iBAAiB,EAAE,IAAI;IACvB,qBAAqB,EAAE,IAAI;IAC3B,eAAe,EAAE,IAAI;IACrB,kBAAkB,EAAE,IAAI;IACxB,sBAAsB,EAAE,IAAI;IAC5B,gBAAgB,EAAE,IAAI;IACtB,gBAAgB,EAAE,IAAI;IACtB,oBAAoB,EAAE,IAAI;IAC1B,cAAc,EAAE,IAAI;IACpB,kBAAkB,EAAE,IAAI;IACxB,sBAAsB,EAAE,IAAI;IAC5B,gBAAgB,EAAE,IAAI;IACtB,oBAAoB,EAAE,IAAI;IAC1B,kBAAkB,EAAE,IAAI;IACxB,gBAAgB,EAAE,IAAI;IACtB,kBAAkB,EAAE,IAAI;IACxB,sBAAsB,EAAE,IAAI;IAC5B,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,IAAI;IACzB,uBAAuB,EAAE,IAAI;IAC7B,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,qBAAqB,EAAE,IAAI;IAC3B,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,uBAAuB,EAAE,IAAI;IAC7B,iBAAiB,EAAE,IAAI;CACxB,CAAC"}
1
+ {"version":3,"file":"vrmHumanoidBones.js","sourceRoot":"","sources":["../../src/internal/vrmHumanoidBones.ts"],"names":[],"mappings":";;;AAGA,yDAAsD;AACtD,qCAAkC;AAClC,qDAAkD;AAClD,mDAAgD;AAChD,qDAAkD;AAElD;;;;;;;;;;GAUG;AACI,MAAM,gBAAgB,GAGN,CACrB,QAAiC,EACjC,KAAgB,EACC,EAAE;IACnB,MAAM,UAAU,GAA4B,IAAA,+BAAc,EACxD,QAAQ,CAAC,UAAU,EACnB,YAAY,CACb,CAAC;IACF,IAAI,UAAU,C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IAAI;IAC1B,kBAAkB,EAAE,IAAI;IACxB,gBAAgB,EAAE,IAAI;IACtB,kBAAkB,EAAE,IAAI;IACxB,sBAAsB,EAAE,IAAI;IAC5B,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,IAAI;IACzB,uBAAuB,EAAE,IAAI;IAC7B,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,qBAAqB,EAAE,IAAI;IAC3B,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,uBAAuB,EAAE,IAAI;IAC7B,iBAAiB,EAAE,IAAI;CACxB,CAAC"}
@@ -1,18 +1,12 @@
1
1
  import type { AutoMovieExternalModelIngestProfile } from "@automovie/interface";
2
2
  /**
3
- * Whether an untyped selection, such as a command-line or manifest value, names one supported ingest profile exactly.
3
+ * Whether an untyped selection, such as a command-line or manifest value, names
4
+ * one supported ingest profile exactly.
4
5
  *
5
- * Only an exact element of the frozen profile list passes, so `toString` and other inherited names are refused.
6
+ * Only an exact element of the frozen profile list passes, so `toString` and
7
+ * other inherited names are refused.
6
8
  *
7
9
  * @param value Candidate selection of any type.
8
10
  * @returns `true` when `value` is one of the profile literals.
9
- *
10
- * @evidence contracts/development/implementation.md#principled-implementation Exact membership in the four-element frozen registry-derived list admits only supported profile literals, including no inherited object names.
11
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The byte inspector delegates profile admission to this guard, which consumes the single frozen list derived from the closed typed registry.
12
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The guard does no trimming or case folding, so a near-miss spelling is refused rather than accepted.
13
- * @evidence contracts/development/common.md#meaningful-documentation The documentation states the intended untyped inputs, the exact-match rule, and the inherited-name refusal.
14
- * @evidence contracts/development/implementation.md#efficient-algorithms One type check and at most four literal comparisons per call require constant time without allocating another profile inventory.
15
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A constant-time check has nothing worth reusing.
16
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The guard retains nothing and reads a module constant.
17
11
  */
18
12
  export declare const isAutoMovieExternalModelIngestProfile: (value: unknown) => value is AutoMovieExternalModelIngestProfile;
@@ -3,20 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isAutoMovieExternalModelIngestProfile = void 0;
4
4
  const AUTO_MOVIE_EXTERNAL_MODEL_INGEST_PROFILES_1 = require("./AUTO_MOVIE_EXTERNAL_MODEL_INGEST_PROFILES");
5
5
  /**
6
- * Whether an untyped selection, such as a command-line or manifest value, names one supported ingest profile exactly.
6
+ * Whether an untyped selection, such as a command-line or manifest value, names
7
+ * one supported ingest profile exactly.
7
8
  *
8
- * Only an exact element of the frozen profile list passes, so `toString` and other inherited names are refused.
9
+ * Only an exact element of the frozen profile list passes, so `toString` and
10
+ * other inherited names are refused.
9
11
  *
10
12
  * @param value Candidate selection of any type.
11
13
  * @returns `true` when `value` is one of the profile literals.
12
- *
13
- * @evidence contracts/development/implementation.md#principled-implementation Exact membership in the four-element frozen registry-derived list admits only supported profile literals, including no inherited object names.
14
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The byte inspector delegates profile admission to this guard, which consumes the single frozen list derived from the closed typed registry.
15
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The guard does no trimming or case folding, so a near-miss spelling is refused rather than accepted.
16
- * @evidence contracts/development/common.md#meaningful-documentation The documentation states the intended untyped inputs, the exact-match rule, and the inherited-name refusal.
17
- * @evidence contracts/development/implementation.md#efficient-algorithms One type check and at most four literal comparisons per call require constant time without allocating another profile inventory.
18
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work A constant-time check has nothing worth reusing.
19
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The guard retains nothing and reads a module constant.
20
14
  */
21
15
  const isAutoMovieExternalModelIngestProfile = (value) => typeof value === "string" &&
22
16
  AUTO_MOVIE_EXTERNAL_MODEL_INGEST_PROFILES_1.AUTO_MOVIE_EXTERNAL_MODEL_INGEST_PROFILES.includes(value);
@@ -1 +1 @@
1
- {"version":3,"file":"isAutoMovieExternalModelIngestProfile.js","sourceRoot":"","sources":["../src/isAutoMovieExternalModelIngestProfile.ts"],"names":[],"mappings":";;;AAEA,2GAAwG;AAExG;;;;;;;;;;;;;;;GAeG;AACI,MAAM,qCAAqC,GAEE,CAClD,KAAc,EACgC,EAAE,CAChD,OAAO,KAAK,KAAK,QAAQ;IACzB,qFAAyC,CAAC,QAAQ,CAChD,KAA4C,CAC7C,CAAC;AARS,QAAA,qCAAqC,GAArC,qCAAqC,CAQ9C"}
1
+ {"version":3,"file":"isAutoMovieExternalModelIngestProfile.js","sourceRoot":"","sources":["../src/isAutoMovieExternalModelIngestProfile.ts"],"names":[],"mappings":";;;AAEA,2GAAwG;AAExG;;;;;;;;;GASG;AACI,MAAM,qCAAqC,GAEE,CAClD,KAAc,EACgC,EAAE,CAChD,OAAO,KAAK,KAAK,QAAQ;IACzB,qFAAyC,CAAC,QAAQ,CAChD,KAA4C,CAC7C,CAAC;AARS,QAAA,qCAAqC,GAArC,qCAAqC,CAQ9C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automovie/ingest",
3
- "version": "0.3.4",
3
+ "version": "0.4.0",
4
4
  "description": "automovie ingest: admit external media inputs — glTF/GLB documents into the core node graph and clips, RIFF/WAVE audio into decoded samples (headless, no three.js)",
5
5
  "main": "lib/index.js",
6
6
  "exports": {
@@ -28,17 +28,17 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@automovie/engine": "^0.3.4",
32
- "@automovie/interface": "^0.3.4",
31
+ "@automovie/engine": "^0.4.0",
32
+ "@automovie/interface": "^0.4.0",
33
33
  "@gltf-transform/core": "^4.5.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "rimraf": "^6.0.1",
37
- "ttsc": "^0.37.1",
37
+ "ttsc": "^0.38.1",
38
38
  "typescript": "^7.0.2",
39
- "@ttsc/lint": "^0.37.1",
40
- "@wrtnlabs/evidence": "^0.8.2",
41
- "@ttsc/evidence": "^0.37.1"
39
+ "@ttsc/lint": "^0.38.1",
40
+ "@wrtnlabs/evidence": "^0.11.1",
41
+ "@ttsc/evidence": "^0.38.1"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "rimraf lib && ttsc",
@@ -1,7 +1,10 @@
1
1
  import type { AutoMovieGltfMotionInterpretationProfile } from "@automovie/interface";
2
2
 
3
3
  /**
4
- * Runtime identity of the fixed glTF motion spatial interpretation. This typed literal defines metres, right-handed coordinates and Y-up without implicit conversion; inspection and adoption share it, and no geometry-validity claim follows from the label.
4
+ * Runtime identity of the fixed glTF motion spatial interpretation. This typed
5
+ * literal defines metres, right-handed coordinates and Y-up without implicit
6
+ * conversion; inspection and adoption share it, and no geometry-validity claim
7
+ * follows from the label.
5
8
  */
6
9
  export const AUTOMOVIE_GLTF_MOTION_INTERPRETATION_PROFILE: AutoMovieGltfMotionInterpretationProfile =
7
10
  "gltf-2.0-meter-right-handed-y-up" as const;
@@ -11,7 +11,10 @@ const INGEST_PROFILE_REGISTRY: Readonly<
11
11
  };
12
12
 
13
13
  /**
14
- * Every supported ingest profile literal, frozen in declaration order. The complete Record over the closed union supplies exactly four own keys; the profile guard reuses this bounded module-lifetime inventory without deriving another list.
14
+ * Every supported ingest profile literal, frozen in declaration order. The
15
+ * complete Record over the closed union supplies exactly four own keys; the
16
+ * profile guard reuses this bounded module-lifetime inventory without deriving
17
+ * another list.
15
18
  */
16
19
  export const AUTO_MOVIE_EXTERNAL_MODEL_INGEST_PROFILES: readonly AutoMovieExternalModelIngestProfile[] =
17
20
  Object.freeze(
@@ -22,24 +22,34 @@ import { compareCodeUnits } from "./internal/compareCodeUnits";
22
22
  import { composeLocalTransform } from "./internal/composeLocalTransform";
23
23
 
24
24
  /**
25
- * Select one inspected take and validate the author's native or retarget decision without fetching bytes, choosing a provider or inferring a rig.
25
+ * Select one inspected take and validate the author's native or retarget
26
+ * decision without fetching bytes, choosing a provider or inferring a rig.
26
27
  *
27
- * The inspection must come from the `gltf-motion-v1` profile under the glTF meter, right-handed, Y-up interpretation, and the source must repeat its path and byte length with a lowercase SHA-256 digest. Every track of the selected take must target a mapped node, translation only on the node mapped to `hips`, and never scale or weights, because humanoid motion carries neither. Each mapped bone's parent and rest in the declared source rig must equal what the inspected hierarchy implies: the nearest mapped ancestor and the node's local TRS composed through every unmapped helper between them. The comparison is exact, so an author computes the rest from the inspected transforms rather than retyping rounded values. The first violation throws with the field it concerns.
28
+ * The inspection must come from the `gltf-motion-v1` profile under the glTF
29
+ * meter, right-handed, Y-up interpretation, and the source must repeat its path
30
+ * and byte length with a lowercase SHA-256 digest. Every track of the selected
31
+ * take must target a mapped node, translation only on the node mapped to
32
+ * `hips`, and never scale or weights, because humanoid motion carries neither.
33
+ * Each mapped bone's parent and rest in the declared source rig must equal what
34
+ * the inspected hierarchy implies: the nearest mapped ancestor and the node's
35
+ * local TRS composed through every unmapped helper between them. The comparison
36
+ * is exact, so an author computes the rest from the inspected transforms rather
37
+ * than retyping rounded values. The first violation throws with the field it
38
+ * concerns.
28
39
  *
29
- * The caller supplies an unmodified inspector result and binds the digest to the resident bytes; adoption checks digest spelling, not a hash. Rig admission here requires a non-blank id, unique bone names and `hips`, but basis comparisons cover only mapped bones and do not validate constraints or unmapped rests. Helper TRS composition follows fixed floating-point arithmetic and drops shear when a helper's non-uniform scale does not commute with a child rotation; exact agreement proves agreement with that representation, not exact affine geometry.
40
+ * The caller supplies an unmodified inspector result and binds the digest to
41
+ * the resident bytes; adoption checks digest spelling, not a hash. Rig
42
+ * admission here requires a non-blank id, unique bone names and `hips`, but
43
+ * basis comparisons cover only mapped bones and do not validate constraints or
44
+ * unmapped rests. Helper TRS composition follows fixed floating-point
45
+ * arithmetic and drops shear when a helper's non-uniform scale does not commute
46
+ * with a child rotation; exact agreement proves agreement with that
47
+ * representation, not exact affine geometry.
30
48
  *
31
49
  * @param props.inspection Inspection of the exact source bytes.
32
50
  * @param props.source Manifest identity of those bytes.
33
51
  * @param props.decision The author's use of one take.
34
52
  * @returns A receipt that shares no objects with its inputs.
35
- *
36
- * @evidence contracts/development/implementation.md#principled-implementation Path and byte length compare with caller-supplied inspected facts, while the digest is checked only for spelling. Sets establish mapping uniqueness, and each mapped basis is recomputed by nearest-mapped-ancestor walks, which refuse an ancestor met twice so an edited inspection's parent cycle throws instead of looping, and fixed-order `composeLocalTransform` arithmetic; binary64 rounding and discarded shear remain, and constraints and unmapped rests receive no basis check.
37
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Identity/selection, rig binding and retarget-only fields have separate local owners; humanoid import shares transform composition and the engine validation owner supplies the common SHA-256 spelling predicate.
38
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No take, rig, bone or path is special-cased; the runtime mode check exists for untyped callers, and the digest regular expression is the manifest's documented `sha256:` format rather than a fixture value.
39
- * @evidence contracts/development/common.md#meaningful-documentation The documentation distinguishes digest spelling from byte authentication, mapped-basis checks from complete rig admission, and exact arithmetic agreement from affine exactness; it also gives supported channels, first-refusal behavior and ownership of receipt copies.
40
- * @evidence contracts/development/implementation.md#efficient-algorithms Copy cost follows the selected take's tracks/keyframes and source-rig size; hash-map setup follows the mapping and node counts. Mapping size M adds O(M log M) prefix-scanning node-id comparisons plus text-dependent identity/hash work; mapped bones times helper-chain lengths drive basis walks, and take lookup scans the declared take inventory without an assumed population bound.
41
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Adoption validates one decision against one inspection per call and shares no work across calls; the inspection it reads is already the caller's reused result.
42
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The temporary maps and sets die with the call; the receipt retains copies of the take, rig and mapping proportional to their size and is owned by the caller, with no handle or task.
43
53
  */
44
54
  export const adoptAutoMovieExternalMotion: (
45
55
  props: IAutoMovieExternalMotionAdoptionReceipt.IProps,
@@ -242,7 +252,11 @@ const validateMotionBinding: (props: {
242
252
  };
243
253
  };
244
254
 
245
- /** The parent and rest a mapped node implies: walk to the nearest mapped ancestor, then fold every unmapped helper's TRS into the node's own, nearest helper first. A node without a mapped ancestor keeps its local TRS. */
255
+ /**
256
+ * The parent and rest a mapped node implies: walk to the nearest mapped
257
+ * ancestor, then fold every unmapped helper's TRS into the node's own, nearest
258
+ * helper first. A node without a mapped ancestor keeps its local TRS.
259
+ */
246
260
  const inspectedBoneBasis: (
247
261
  node: IAutoMovieExternalMotionNodeInspection,
248
262
  nodes: Map<string, IAutoMovieExternalMotionNodeInspection>,