@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,9 @@
1
1
  /**
2
2
  * Decode an RFC 2397 data URI into exact payload octets.
3
3
  *
4
- * Canonical base64 spelling includes zero unused padding bits under RFC 4648 section 3.5 (https://www.rfc-editor.org/rfc/rfc4648.html#section-3.5); complete percent-octet escapes determine bytes, and literal Unicode chunks are encoded as UTF-8.
5
- *
6
- * @evidence contracts/development/implementation.md#principled-implementation Base64 terminal sextets have four zero low bits before two padding characters or two zero low bits before one; the terminal alphabet subsets encode those RFC 4648 canonical conditions. Complete percent-octet escapes and UTF-8 literal chunks define the other payload lane.
7
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One decoder owns both data-URI payload lanes shared by buffer and image closure.
8
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Malformed base64 and incomplete escapes throw with the field path instead of permissive byte repair.
9
- * @evidence contracts/development/common.md#meaningful-documentation Prose explains metadata/base64 selection, percent octets, Unicode literals and caller-owned output.
10
- * @evidence contracts/development/implementation.md#efficient-algorithms Metadata and payload text drive O(N) work over URI length; percent chunks plus final concatenation retain O(N) temporary bytes, while base64 also creates an intermediate binary string.
11
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each declared data URI is decoded during its own payload admission; resolver effects and mutable sources are not cached.
12
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Decoded arrays transfer to the inspector's call-local payload owner; chunk arrays and encoded literals die on return.
4
+ * Canonical base64 spelling includes zero unused padding bits under RFC 4648
5
+ * section 3.5 (https://www.rfc-editor.org/rfc/rfc4648.html#section-3.5);
6
+ * complete percent-octet escapes determine bytes, and literal Unicode chunks
7
+ * are encoded as UTF-8.
13
8
  */
14
9
  export declare const decodeDataUri: (uri: string, path: string) => Uint8Array;
@@ -4,15 +4,10 @@ exports.decodeDataUri = void 0;
4
4
  /**
5
5
  * Decode an RFC 2397 data URI into exact payload octets.
6
6
  *
7
- * Canonical base64 spelling includes zero unused padding bits under RFC 4648 section 3.5 (https://www.rfc-editor.org/rfc/rfc4648.html#section-3.5); complete percent-octet escapes determine bytes, and literal Unicode chunks are encoded as UTF-8.
8
- *
9
- * @evidence contracts/development/implementation.md#principled-implementation Base64 terminal sextets have four zero low bits before two padding characters or two zero low bits before one; the terminal alphabet subsets encode those RFC 4648 canonical conditions. Complete percent-octet escapes and UTF-8 literal chunks define the other payload lane.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One decoder owns both data-URI payload lanes shared by buffer and image closure.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Malformed base64 and incomplete escapes throw with the field path instead of permissive byte repair.
12
- * @evidence contracts/development/common.md#meaningful-documentation Prose explains metadata/base64 selection, percent octets, Unicode literals and caller-owned output.
13
- * @evidence contracts/development/implementation.md#efficient-algorithms Metadata and payload text drive O(N) work over URI length; percent chunks plus final concatenation retain O(N) temporary bytes, while base64 also creates an intermediate binary string.
14
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each declared data URI is decoded during its own payload admission; resolver effects and mutable sources are not cached.
15
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Decoded arrays transfer to the inspector's call-local payload owner; chunk arrays and encoded literals die on return.
7
+ * Canonical base64 spelling includes zero unused padding bits under RFC 4648
8
+ * section 3.5 (https://www.rfc-editor.org/rfc/rfc4648.html#section-3.5);
9
+ * complete percent-octet escapes determine bytes, and literal Unicode chunks
10
+ * are encoded as UTF-8.
16
11
  */
17
12
  const decodeDataUri = (uri, path) => {
18
13
  const comma = uri.indexOf(",");
@@ -1 +1 @@
1
- {"version":3,"file":"decodeDataUri.js","sourceRoot":"","sources":["../../src/internal/decodeDataUri.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;GAYG;AACI,MAAM,aAAa,GAA8C,CACtE,GAAW,EACX,IAAY,EACA,EAAE;IACd,MAAM,KAAK,GAAW,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACvC,IAAI,KAAK,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,8BAA8B,CAAC,CAAC;IACtE,MAAM,QAAQ,GAAW,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IAC7C,MAAM,OAAO,GAAW,GAAG,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IAC7C,IAAI,CAAC;QACH,IAAI,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC3C,IACE,OAAO,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC;gBACxB,wFAAwF,CAAC,IAAI,CAC3F,OAAO,CACR,KAAK,KAAK;gBAEX,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;YACrD,MAAM,MAAM,GAAW,IAAI,CAAC,OAAO,CAAC,CAAC;YACrC,MAAM,KAAK,GAAe,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACxD,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,KAAK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,EAAU,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC,UAAU,EACtE,CAAC,CACF,CACF,CAAC;QACF,IAAI,MAAM,GAAW,CAAC,CAAC;QACvB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC;QAC7B,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,GAAG,IAAI,iCAAkC,KAAe,CAAC,OAAO,GAAG,CACpE,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAxDW,QAAA,aAAa,GAAb,aAAa,CAwDxB"}
@@ -1,13 +1,3 @@
1
1
  import type { IParsedContainer } from "./IParsedContainer";
2
- /**
3
- * Decode one GLB 2.0 container's mandatory JSON and optional BIN chunk.
4
- *
5
- * @evidence contracts/development/implementation.md#principled-implementation Magic, version, exact length, four-byte chunk alignment and JSON-first ordering establish the container; BIN remains a read-only input view.
6
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Container framing belongs here while strict JSON and duplicate-member checks belong to the shared JSON decoder.
7
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unexpected or repeated trailing chunks and invalid extents throw rather than truncating or guessing a payload.
8
- * @evidence contracts/development/common.md#meaningful-documentation Comments give version/alignment rules, optional BIN aliasing and suffix-provided VRM container identity.
9
- * @evidence contracts/development/implementation.md#efficient-algorithms Header/chunk scanning is O(chunk count); JSON decoding is O(JSON bytes), and BIN bytes are not copied.
10
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The same decoded JSON owner serves both GLB and plain glTF; one BIN view is reused by downstream payload readers.
11
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The parsed result borrows BIN bytes only during synchronous inspection; JSON objects and view references are call-local.
12
- */
2
+ /** Decode one GLB 2.0 container's mandatory JSON and optional BIN chunk. */
13
3
  export declare const decodeGlb: (bytes: Uint8Array, vrmExtension: boolean) => IParsedContainer;
@@ -5,17 +5,7 @@ const decodeJson_1 = require("./decodeJson");
5
5
  const GLB_MAGIC = 0x46546c67;
6
6
  const GLB_JSON_CHUNK = 0x4e4f534a;
7
7
  const GLB_BIN_CHUNK = 0x004e4942;
8
- /**
9
- * Decode one GLB 2.0 container's mandatory JSON and optional BIN chunk.
10
- *
11
- * @evidence contracts/development/implementation.md#principled-implementation Magic, version, exact length, four-byte chunk alignment and JSON-first ordering establish the container; BIN remains a read-only input view.
12
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Container framing belongs here while strict JSON and duplicate-member checks belong to the shared JSON decoder.
13
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unexpected or repeated trailing chunks and invalid extents throw rather than truncating or guessing a payload.
14
- * @evidence contracts/development/common.md#meaningful-documentation Comments give version/alignment rules, optional BIN aliasing and suffix-provided VRM container identity.
15
- * @evidence contracts/development/implementation.md#efficient-algorithms Header/chunk scanning is O(chunk count); JSON decoding is O(JSON bytes), and BIN bytes are not copied.
16
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The same decoded JSON owner serves both GLB and plain glTF; one BIN view is reused by downstream payload readers.
17
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The parsed result borrows BIN bytes only during synchronous inspection; JSON objects and view references are call-local.
18
- */
8
+ /** Decode one GLB 2.0 container's mandatory JSON and optional BIN chunk. */
19
9
  const decodeGlb = (bytes, vrmExtension) => {
20
10
  if (bytes.byteLength < 20)
21
11
  throw new Error("GLB/VRM container is shorter than its mandatory header.");
@@ -1 +1 @@
1
- {"version":3,"file":"decodeGlb.js","sourceRoot":"","sources":["../../src/internal/decodeGlb.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAE1C,MAAM,SAAS,GAAW,UAAU,CAAC;AAErC,MAAM,cAAc,GAAW,UAAU,CAAC;AAE1C,MAAM,aAAa,GAAW,UAAU,CAA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KAAK,CAAC,UAAU;YAC5D,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACnE,MAAM,IAAI,GAAW,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;QACtD,IAAI,IAAI,KAAK,aAAa,IAAI,GAAG,KAAK,IAAI;YACxC,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAC;QACJ,GAAG,GAAG,KAAK,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;QACtD,MAAM,IAAI,CAAC,GAAG,MAAM,CAAC;IACvB,CAAC;IACD,OAAO;QACL,IAAI,EAAE,IAAA,uBAAU,EAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,GAAG,UAAU,CAAC,CAAC;QACrD,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK;QACpC,GAAG;KACJ,CAAC;AACJ,CAAC,CAAC;AAjDW,QAAA,SAAS,GAAT,SAAS,CAiDpB"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Decode strict UTF-8 JSON and refuse duplicate decoded member names.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation JSON.parse admits syntax before an iterative container/name scan rejects escaped-equivalent duplicates without recursion depth limits.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure UTF-8, syntax and duplicate-member admission form one byte ingress shared by glTF and GLB.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Last-wins duplicate keys cannot hide a competing loader interpretation, and invalid UTF-8 is not repaired.
7
- * @evidence contracts/development/common.md#meaningful-documentation Prose names strict decoding, escape-equivalent duplication, iterative depth behavior and diagnostic wrapping.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Text length drives O(N) parsing and duplicate scan; object name sets and scope stack scale with input members and depth.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Syntax is parsed once and reused by the duplicate scan's valid-text premise; escaped names alone require local JSON string decoding.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Text, scope stack and key sets are temporary; only the caller-owned parsed JSON tree survives return.
11
- */
1
+ /** Decode strict UTF-8 JSON and refuse duplicate decoded member names. */
12
2
  export declare const decodeJson: (bytes: Uint8Array) => unknown;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.decodeJson = void 0;
4
- /**
5
- * Decode strict UTF-8 JSON and refuse duplicate decoded member names.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation JSON.parse admits syntax before an iterative container/name scan rejects escaped-equivalent duplicates without recursion depth limits.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure UTF-8, syntax and duplicate-member admission form one byte ingress shared by glTF and GLB.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Last-wins duplicate keys cannot hide a competing loader interpretation, and invalid UTF-8 is not repaired.
10
- * @evidence contracts/development/common.md#meaningful-documentation Prose names strict decoding, escape-equivalent duplication, iterative depth behavior and diagnostic wrapping.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Text length drives O(N) parsing and duplicate scan; object name sets and scope stack scale with input members and depth.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Syntax is parsed once and reused by the duplicate scan's valid-text premise; escaped names alone require local JSON string decoding.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Text, scope stack and key sets are temporary; only the caller-owned parsed JSON tree survives return.
14
- */
4
+ /** Decode strict UTF-8 JSON and refuse duplicate decoded member names. */
15
5
  const decodeJson = (bytes) => {
16
6
  try {
17
7
  const text = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
@@ -27,7 +17,15 @@ exports.decodeJson = decodeJson;
27
17
  /**
28
18
  * Refuse decoded-equivalent member names before last-wins JSON can hide one.
29
19
  *
30
- * The scan runs only over text `JSON.parse` has already accepted, so it needs no syntax checks: one pass keeps a stack of open containers, with a name set for each object, and treats the string after `{` or after `,` inside an object as a member name. A name containing an escape is decoded through `JSON.parse`, so an escaped spelling collides with its plain spelling. The stack replaces recursion, so nesting depth never becomes call-stack depth. It lives here rather than reusing the production package's structured JSON ingress because production sits above ingest in the dependency graph; importing its ingress would reverse that package dependency.
20
+ * The scan runs only over text `JSON.parse` has already accepted, so it needs
21
+ * no syntax checks: one pass keeps a stack of open containers, with a name set
22
+ * for each object, and treats the string after `{` or after `,` inside an
23
+ * object as a member name. A name containing an escape is decoded through
24
+ * `JSON.parse`, so an escaped spelling collides with its plain spelling. The
25
+ * stack replaces recursion, so nesting depth never becomes call-stack depth. It
26
+ * lives here rather than reusing the production package's structured JSON
27
+ * ingress because production sits above ingest in the dependency graph;
28
+ * importing its ingress would reverse that package dependency.
31
29
  */
32
30
  const assertUniqueJsonObjectMembers = (text) => {
33
31
  const scopes = [];
@@ -1 +1 @@
1
- {"version":3,"file":"decodeJson.js","sourceRoot":"","sources":["../../src/internal/decodeJson.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACI,MAAM,UAAU,GAAmC,CACxD,KAAiB,EACR,EAAE;IACX,IAAI,CAAC;QACH,MAAM,IAAI,GAAW,IAAI,WAAW,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CACnE,KAAK,CACN,CAAC;QACF,MAAM,KAAK,GAAY,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACxC,6BAA6B,CAAC,IAAI,CAAC,CAAC;QACpC,OAAO,KAAK,CAAC;IACf,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,mCAAoC,KAAe,CAAC,OAAO,GAAG,CAC/D,CAAC;IACJ,CAAC;AACH,CAAC,CAAC;AAfW,QAAA,UAAU,GAAV,UAAU,CAerB;AAEF;;;;GAIG;AACH,MAAM,6BAA6B,GAA2B,CAC5D,IAAY,EACN,EAAE;I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IAAI,EAAE,CAAC;YAClB,MAAM,CAAC,IAAI,CAAC,IAAI,GAAG,EAAU,CAAC,CAAC;YAC/B,UAAU,GAAG,IAAI,CAAC;QACpB,CAAC;aAAM,IAAI,IAAI,KAAK,IAAI;YAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACvC,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YACxC,MAAM,CAAC,GAAG,EAAE,CAAC;YACb,UAAU,GAAG,KAAK,CAAC;QACrB,CAAC;aAAM,IAAI,IAAI,KAAK,IAAI;YAAE,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,IAAI,CAAC;QAC1E,EAAE,MAAM,CAAC;IACX,CAAC;AACH,CAAC,CAAC"}
@@ -1,12 +1,5 @@
1
1
  /**
2
- * Read the case-insensitive suffix of the final project-relative path component.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation The last forward slash selects the contract's project-path basename and the last dot selects its extension.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Suffix interpretation stays separate from container decoding and profile selection.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No suffix is inferred from byte content and a basename without a dot stays extensionless.
7
- * @evidence contracts/development/common.md#meaningful-documentation Documentation identifies project-relative slash convention, case folding and the empty-suffix result.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Two last-index searches and one suffix lowercase copy cost O(path length) without filesystem access.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each inspection derives its suffix once before selecting the container parser.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only temporary substrings are allocated; paths, file handles and container bytes are not retained.
2
+ * Read the case-insensitive suffix of the final project-relative path
3
+ * component.
11
4
  */
12
5
  export declare const fileExtension: (value: string) => string;
@@ -2,15 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fileExtension = void 0;
4
4
  /**
5
- * Read the case-insensitive suffix of the final project-relative path component.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation The last forward slash selects the contract's project-path basename and the last dot selects its extension.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Suffix interpretation stays separate from container decoding and profile selection.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No suffix is inferred from byte content and a basename without a dot stays extensionless.
10
- * @evidence contracts/development/common.md#meaningful-documentation Documentation identifies project-relative slash convention, case folding and the empty-suffix result.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Two last-index searches and one suffix lowercase copy cost O(path length) without filesystem access.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each inspection derives its suffix once before selecting the container parser.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only temporary substrings are allocated; paths, file handles and container bytes are not retained.
5
+ * Read the case-insensitive suffix of the final project-relative path
6
+ * component.
14
7
  */
15
8
  const fileExtension = (value) => {
16
9
  const name = value.slice(value.lastIndexOf("/") + 1);
@@ -1 +1 @@
1
- {"version":3,"file":"fileExtension.js","sourceRoot":"","sources":["../../src/internal/fileExtension.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACI,MAAM,aAAa,GAA8B,CACtD,KAAa,EACL,EAAE;IACV,MAAM,IAAI,GAAW,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7D,MAAM,KAAK,GAAW,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAC5C,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;AAC1D,CAAC,CAAC;AANW,QAAA,aAAa,GAAb,aAAa,CAMxB"}
1
+ {"version":3,"file":"fileExtension.js","sourceRoot":"","sources":["../../src/internal/fileExtension.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACI,MAAM,aAAa,GAA8B,CACtD,KAAa,EACL,EAAE;IACV,MAAM,IAAI,GAAW,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7D,MAAM,KAAK,GAAW,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAC5C,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;AAC1D,CAAC,CAAC;AANW,QAAA,aAAa,GAAb,aAAa,CAMxB"}
@@ -1,14 +1,9 @@
1
1
  /**
2
2
  * Read a finite numeric tuple with a glTF default when omitted.
3
3
  *
4
- * Undefined copies the caller's fallback without validating it; motion-node callers supply finite three- or four-component glTF defaults. Present arrays must have the same length and finite numeric entries, or throw with the field/index path. Both branches return a fresh array.
5
- *
6
- * @evidence contracts/development/implementation.md#principled-implementation Undefined copies the fixed fallback; supplied arrays must match its length and contain only finite numbers.
7
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The tuple gate owns numeric/arity admission while motion-node interpretation chooses translation, scale and quaternion defaults.
8
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Wrong lengths and nonfinite values throw; supplied tuples are not normalized or padded to hide defects.
9
- * @evidence contracts/development/common.md#meaningful-documentation Comments identify omission, caller-owned copied output and indexed finite-value errors.
10
- * @evidence contracts/development/implementation.md#efficient-algorithms Tuple length K drives O(K) time and result space; current callers use only three or four components.
11
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The same tuple admission serves translation, rotation and scale without cross-call caching of mutable inputs.
12
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned K-number array belongs to its caller and retains no reference to the source or fallback array.
4
+ * Undefined copies the caller's fallback without validating it; motion-node
5
+ * callers supply finite three- or four-component glTF defaults. Present arrays
6
+ * must have the same length and finite numeric entries, or throw with the
7
+ * field/index path. Both branches return a fresh array.
13
8
  */
14
9
  export declare const finiteTuple: (value: unknown, path: string, fallback: readonly number[]) => number[];
@@ -4,15 +4,10 @@ exports.finiteTuple = void 0;
4
4
  /**
5
5
  * Read a finite numeric tuple with a glTF default when omitted.
6
6
  *
7
- * Undefined copies the caller's fallback without validating it; motion-node callers supply finite three- or four-component glTF defaults. Present arrays must have the same length and finite numeric entries, or throw with the field/index path. Both branches return a fresh array.
8
- *
9
- * @evidence contracts/development/implementation.md#principled-implementation Undefined copies the fixed fallback; supplied arrays must match its length and contain only finite numbers.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The tuple gate owns numeric/arity admission while motion-node interpretation chooses translation, scale and quaternion defaults.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Wrong lengths and nonfinite values throw; supplied tuples are not normalized or padded to hide defects.
12
- * @evidence contracts/development/common.md#meaningful-documentation Comments identify omission, caller-owned copied output and indexed finite-value errors.
13
- * @evidence contracts/development/implementation.md#efficient-algorithms Tuple length K drives O(K) time and result space; current callers use only three or four components.
14
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The same tuple admission serves translation, rotation and scale without cross-call caching of mutable inputs.
15
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned K-number array belongs to its caller and retains no reference to the source or fallback array.
7
+ * Undefined copies the caller's fallback without validating it; motion-node
8
+ * callers supply finite three- or four-component glTF defaults. Present arrays
9
+ * must have the same length and finite numeric entries, or throw with the
10
+ * field/index path. Both branches return a fresh array.
16
11
  */
17
12
  const finiteTuple = (value, path, fallback) => {
18
13
  if (value === undefined)
@@ -1 +1 @@
1
- {"version":3,"file":"finiteTuple.js","sourceRoot":"","sources":["../../src/internal/finiteTuple.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;GAYG;AACI,MAAM,WAAW,GAIR,CACd,KAAc,EACd,IAAY,EACZ,QAA2B,EACjB,EAAE;IACZ,IAAI,KAAK,KAAK,SAAS;QAAE,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,IAAI,IAAI,KAAK,mBAAmB,CAAC,CAAC;QACvD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAnBW,QAAA,WAAW,GAAX,WAAW,CAmBtB"}
@@ -2,14 +2,10 @@ import type { IHumanoidSlot } from "./IHumanoidSlot";
2
2
  /**
3
3
  * Resolve first-claim glTF skin joints to recognized humanoid naming slots.
4
4
  *
5
- * The caller has admitted skin joint indices. Nodes are visited in source order, eligible only when listed in a skin, with the first recognized name per slot retained; unrecognized names and later duplicate slots are ignored. Returned slots describe naming correspondence rather than anatomy or positive skin-weight coverage.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Skin joint indices define eligible nodes and normalized aliases assign at most one source-order node per semantic slot.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Skin membership and slot claiming stay here while the shared name helper owns this importer's supported naming vocabulary.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unrecognized names and repeated slots remain unmapped instead of overwriting first ownership or inferring missing anatomy.
10
- * @evidence contracts/development/common.md#meaningful-documentation Comments state node-order first claim, skin-only eligibility and the distinction from actual weight coverage.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Work follows skins, their joint entries, nodes and eligible node-name text, with expected constant-time membership and slot lookups.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each eligible node name is resolved once; the inspector separately shares mesh/skin weight checks.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Temporary membership sets die with the call; returned slot records are bounded by the recognized humanoid vocabulary.
5
+ * The caller has admitted skin joint indices. Nodes are visited in source
6
+ * order, eligible only when listed in a skin, with the first recognized name
7
+ * per slot retained; unrecognized names and later duplicate slots are ignored.
8
+ * Returned slots describe naming correspondence rather than anatomy or positive
9
+ * skin-weight coverage.
14
10
  */
15
11
  export declare const gltfHumanoidBones: (nodes: unknown[], skins: unknown[]) => IHumanoidSlot[];
@@ -7,15 +7,11 @@ const requiredArray_1 = require("./requiredArray");
7
7
  /**
8
8
  * Resolve first-claim glTF skin joints to recognized humanoid naming slots.
9
9
  *
10
- * The caller has admitted skin joint indices. Nodes are visited in source order, eligible only when listed in a skin, with the first recognized name per slot retained; unrecognized names and later duplicate slots are ignored. Returned slots describe naming correspondence rather than anatomy or positive skin-weight coverage.
11
- *
12
- * @evidence contracts/development/implementation.md#principled-implementation Skin joint indices define eligible nodes and normalized aliases assign at most one source-order node per semantic slot.
13
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Skin membership and slot claiming stay here while the shared name helper owns this importer's supported naming vocabulary.
14
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unrecognized names and repeated slots remain unmapped instead of overwriting first ownership or inferring missing anatomy.
15
- * @evidence contracts/development/common.md#meaningful-documentation Comments state node-order first claim, skin-only eligibility and the distinction from actual weight coverage.
16
- * @evidence contracts/development/implementation.md#efficient-algorithms Work follows skins, their joint entries, nodes and eligible node-name text, with expected constant-time membership and slot lookups.
17
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each eligible node name is resolved once; the inspector separately shares mesh/skin weight checks.
18
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Temporary membership sets die with the call; returned slot records are bounded by the recognized humanoid vocabulary.
10
+ * The caller has admitted skin joint indices. Nodes are visited in source
11
+ * order, eligible only when listed in a skin, with the first recognized name
12
+ * per slot retained; unrecognized names and later duplicate slots are ignored.
13
+ * Returned slots describe naming correspondence rather than anatomy or positive
14
+ * skin-weight coverage.
19
15
  */
20
16
  const gltfHumanoidBones = (nodes, skins) => {
21
17
  const joints = new Set(skins.flatMap((value, index) => (0, requiredArray_1.requiredArray)((0, object_1.object)(value, `skins[${index}]`).joints, `skins[${index}].joints`)));
@@ -1 +1 @@
1
- {"version":3,"file":"gltfHumanoidBones.js","sourceRoot":"","sources":["../../src/internal/gltfHumanoidBones.ts"],"names":[],"mappings":";;;AAEA,uEAAoE;AAEpE,qCAAkC;AAClC,mDAAgD;AAEhD;;;;;;;;;;;;GAYG;A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,iBAAiB,GAGP,CACrB,KAAgB,EAChB,KAAgB,EACC,EAAE;IACnB,MAAM,MAAM,GAAiB,IAAI,GAAG,CAClC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAc,EAAE,KAAa,EAAa,EAAE,CACzD,IAAA,6BAAa,EACX,IAAA,eAAM,EAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,CAAC,MAAM,EACvC,SAAS,KAAK,UAAU,CACzB,CACF,CACF,CAAC;IACF,MAAM,IAAI,GAA+B,IAAI,GAAG,EAAyB,CAAC;IAC1E,MAAM,KAAK,GAAoB,EAAE,CAAC;IAClC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAc,EAAE,KAAa,EAAQ,EAAE;QACpD,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK;YAAE,OAAO;QACxC,MAAM,IAAI,GAAY,IAAA,eAAM,EAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC;QAC5D,IAAI,OAAO,IAAI,KAAK,QAAQ;YAAE,OAAO;QACrC,MAAM,IAAI,GAAsC,IAAA,uCAAkB,EAAC,IAAI,CAAC,CAAC;QACzE,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,OAAO;QACjD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AA3BW,QAAA,iBAAiB,GAAjB,iBAAiB,CA2B5B"}
@@ -2,17 +2,15 @@ import type { AutoMovieHumanoidBone } from "@automovie/interface";
2
2
  /**
3
3
  * Resolve an imported joint name to the humanoid slot its rig convention means.
4
4
  *
5
- * The name is lowercased, a leading `mixamorig` prefix (with or without its colon) is removed, and whitespace, `_`, `.`, `:`, `|` and `-` are dropped, so `mixamorig:LeftUpLeg`, `Left_UpLeg` and `leftUpLeg` all read as `leftupleg`. The table covers the supported Blender-style names (`Spine`, `LeftUpLeg`), Mixamo, VRM-style slot names (`leftUpperArm`), and Unreal mannequin spine chains (`spine_01` to `spine_03`). Fingers, eyes and jaw have no alias, so a hand rig maps only to its hand slot.
5
+ * The name is lowercased, a leading `mixamorig` prefix (with or without its
6
+ * colon) is removed, and whitespace, `_`, `.`, `:`, `|` and `-` are dropped, so
7
+ * `mixamorig:LeftUpLeg`, `Left_UpLeg` and `leftUpLeg` all read as `leftupleg`.
8
+ * The table covers the supported Blender-style names (`Spine`, `LeftUpLeg`),
9
+ * Mixamo, VRM-style slot names (`leftUpperArm`), and Unreal mannequin spine
10
+ * chains (`spine_01` to `spine_03`). Fingers, eyes and jaw have no alias, so a
11
+ * hand rig maps only to its hand slot.
6
12
  *
7
13
  * @param name Joint node name exactly as the source declares it.
8
14
  * @returns The slot, or `undefined` when no convention in the table names it.
9
- *
10
- * @evidence contracts/development/implementation.md#principled-implementation Lowercasing, removing a leading `mixamorig` prefix and dropping separator characters reduces each convention's spelling to one key, and an exact `Map` lookup resolves it, so inherited object keys can never match.
11
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The table and the normalization live in one module that the skeleton importer and the byte inspector both call, replacing two copies that had to be kept in step.
12
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The closed alias vocabulary is a naming convention supported by this mapper rather than an anatomical inference, and both callers keep their own first-claim rule instead of the helper guessing between duplicates.
13
- * @evidence contracts/development/common.md#meaningful-documentation The documentation states the normalization steps with an example, the covered conventions, the unmapped finger, eye and jaw slots, and what `undefined` means.
14
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost is linear in the name length for two regular-expression passes and one lowercase copy, then one hash lookup.
15
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each invocation normalizes its supplied name; a joint shared by several skins may be revisited, and this helper retains no cache over mutable source revisions.
16
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The module-level table is a fixed forty-entry constant; a call retains nothing.
17
15
  */
18
16
  export declare const humanoidBoneOfName: (name: string) => AutoMovieHumanoidBone | undefined;
@@ -4,18 +4,16 @@ exports.humanoidBoneOfName = void 0;
4
4
  /**
5
5
  * Resolve an imported joint name to the humanoid slot its rig convention means.
6
6
  *
7
- * The name is lowercased, a leading `mixamorig` prefix (with or without its colon) is removed, and whitespace, `_`, `.`, `:`, `|` and `-` are dropped, so `mixamorig:LeftUpLeg`, `Left_UpLeg` and `leftUpLeg` all read as `leftupleg`. The table covers the supported Blender-style names (`Spine`, `LeftUpLeg`), Mixamo, VRM-style slot names (`leftUpperArm`), and Unreal mannequin spine chains (`spine_01` to `spine_03`). Fingers, eyes and jaw have no alias, so a hand rig maps only to its hand slot.
7
+ * The name is lowercased, a leading `mixamorig` prefix (with or without its
8
+ * colon) is removed, and whitespace, `_`, `.`, `:`, `|` and `-` are dropped, so
9
+ * `mixamorig:LeftUpLeg`, `Left_UpLeg` and `leftUpLeg` all read as `leftupleg`.
10
+ * The table covers the supported Blender-style names (`Spine`, `LeftUpLeg`),
11
+ * Mixamo, VRM-style slot names (`leftUpperArm`), and Unreal mannequin spine
12
+ * chains (`spine_01` to `spine_03`). Fingers, eyes and jaw have no alias, so a
13
+ * hand rig maps only to its hand slot.
8
14
  *
9
15
  * @param name Joint node name exactly as the source declares it.
10
16
  * @returns The slot, or `undefined` when no convention in the table names it.
11
- *
12
- * @evidence contracts/development/implementation.md#principled-implementation Lowercasing, removing a leading `mixamorig` prefix and dropping separator characters reduces each convention's spelling to one key, and an exact `Map` lookup resolves it, so inherited object keys can never match.
13
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The table and the normalization live in one module that the skeleton importer and the byte inspector both call, replacing two copies that had to be kept in step.
14
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The closed alias vocabulary is a naming convention supported by this mapper rather than an anatomical inference, and both callers keep their own first-claim rule instead of the helper guessing between duplicates.
15
- * @evidence contracts/development/common.md#meaningful-documentation The documentation states the normalization steps with an example, the covered conventions, the unmapped finger, eye and jaw slots, and what `undefined` means.
16
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost is linear in the name length for two regular-expression passes and one lowercase copy, then one hash lookup.
17
- * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each invocation normalizes its supplied name; a joint shared by several skins may be revisited, and this helper retains no cache over mutable source revisions.
18
- * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources The module-level table is a fixed forty-entry constant; a call retains nothing.
19
17
  */
20
18
  const humanoidBoneOfName = (name) => HUMANOID_ALIASES.get(name
21
19
  .toLowerCase()
@@ -1 +1 @@
1
- {"version":3,"file":"humanoidBoneOfName.js","sourceRoot":"","sources":["../../src/internal/humanoidBoneOfName.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;GAeG;AACI,MAAM,kBAAkB,GAEU,CACvC,IAAY,EACuB,EAAE,CACrC,gBAAgB,CAAC,GAAG,CAClB,IAAI;KACD,WAAW,EAAE;KACb,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC;KAC5B,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAC9B,CAAC;AAVS,QAAA,kBAAkB,GAAlB,kBAAkB,CAU3B;AAEJ,MAAM,gBAAgB,GAA+C,IAAI,GAAG,CAG1E;IACA,CAAC,MAAM,EAAE,MAAM,CAAC;IAChB,CAAC,QAAQ,EAAE,MAAM,CAAC;IAClB,CAAC,OAAO,EAAE,OAAO,CAAC;IAClB,CAAC,SAAS,EAAE,OAAO,CAAC;IACpB,CAAC,QAAQ,EAAE,OAAO,CAAC;IACnB,CAAC,OAAO,EAAE,OAAO,CAAC;IAClB,CAAC,SAAS,EAAE,OAAO,CAAC;IACpB,CAAC,QAAQ,EAAE,YAAY,CAAC;IACxB,CAAC,SAAS,EAAE,YAAY,CAAC;IACzB,CAAC,YAAY,EAAE,YAAY,CAAC;IAC5B,CAAC,MAAM,EAA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,WAAW,EAAE,cAAc,CAAC;IAC7B,CAAC,cAAc,EAAE,cAAc,CAAC;IAChC,CAAC,SAAS,EAAE,cAAc,CAAC;IAC3B,CAAC,cAAc,EAAE,cAAc,CAAC;IAChC,CAAC,UAAU,EAAE,UAAU,CAAC;IACxB,CAAC,aAAa,EAAE,UAAU,CAAC;IAC3B,CAAC,UAAU,EAAE,UAAU,CAAC;IACxB,CAAC,YAAY,EAAE,eAAe,CAAC;IAC/B,CAAC,eAAe,EAAE,eAAe,CAAC;IAClC,CAAC,UAAU,EAAE,eAAe,CAAC;IAC7B,CAAC,eAAe,EAAE,eAAe,CAAC;IAClC,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,cAAc,EAAE,WAAW,CAAC;IAC7B,CAAC,WAAW,EAAE,WAAW,CAAC;CAC3B,CAAC,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Establish a unique-parent acyclic glTF node forest.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Index-validated child edges fill one parent table; iterative three-state walks detect cycles and mark completed root paths.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Hierarchy admission runs before profile dispatch so static, humanoid and motion consumers share one forest contract.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Duplicate children, multiple parents and parent cycles throw without rewriting the graph or dropping links.
7
- * @evidence contracts/development/common.md#meaningful-documentation Comments explain index-validation prerequisite, unique parent semantics and depth-safe iterative traversal.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms N nodes and E child links cost O(N+E), since completed parent walks are marked and each node enters one unfinished path.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The returned parent table is reused by scene-root admission and motion-node interpretation in the same inspector call.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Parent/state/path arrays are bounded by node count; only the returned table remains with its synchronous caller.
11
- */
1
+ /** Establish a unique-parent acyclic glTF node forest. */
12
2
  export declare const inspectExternalModelHierarchy: (values: unknown[]) => Array<number | undefined>;
@@ -3,17 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.inspectExternalModelHierarchy = void 0;
4
4
  const object_1 = require("./object");
5
5
  const optionalArray_1 = require("./optionalArray");
6
- /**
7
- * Establish a unique-parent acyclic glTF node forest.
8
- *
9
- * @evidence contracts/development/implementation.md#principled-implementation Index-validated child edges fill one parent table; iterative three-state walks detect cycles and mark completed root paths.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Hierarchy admission runs before profile dispatch so static, humanoid and motion consumers share one forest contract.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Duplicate children, multiple parents and parent cycles throw without rewriting the graph or dropping links.
12
- * @evidence contracts/development/common.md#meaningful-documentation Comments explain index-validation prerequisite, unique parent semantics and depth-safe iterative traversal.
13
- * @evidence contracts/development/implementation.md#efficient-algorithms N nodes and E child links cost O(N+E), since completed parent walks are marked and each node enters one unfinished path.
14
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The returned parent table is reused by scene-root admission and motion-node interpretation in the same inspector call.
15
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Parent/state/path arrays are bounded by node count; only the returned table remains with its synchronous caller.
16
- */
6
+ /** Establish a unique-parent acyclic glTF node forest. */
17
7
  const inspectExternalModelHierarchy = (values) => {
18
8
  const parentByIndex = new Array(values.length);
19
9
  values.forEach((value, parentIndex) => {
@@ -1 +1 @@
1
- {"version":3,"file":"inspectExternalModelHierarchy.js","sourceRoot":"","sources":["../../src/internal/inspectExternalModelHierarchy.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAClC,mDAAgD;AAEhD;;;;;;;;;;GAUG;AACI,MAAM,6BAA6B,GAET,CAC/B,MAAiB,EACU,EAAE;IAC7B,MAAM,aAAa,GAA8B,IAAI,KAAK,CAExD,MAAM,CAAC,MAAM,CAAC,CAAC;IACjB,MAAM,CAAC,OAAO,CAAC,CAAC,KAAc,EAAE,WAAmB,EAAQ,EAAE;QAC3D,MAAM,IAAI,G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E;IACtE,MAAM,KAAK,GAAe,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxD,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC;QAC3D,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;YAAE,SAAS;QACjC,MAAM,IAAI,GAAa,EAAE,CAAC;QAC1B,IAAI,KAAK,GAAuB,KAAK,CAAC;QACtC,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;YACjD,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACjB,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACjB,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC;QACD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;YAC3C,MAAM,IAAI,KAAK,CAAC,SAAS,KAAK,8BAA8B,CAAC,CAAC;QAChE,KAAK,MAAM,KAAK,IAAI,IAAI;YAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC7C,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AA9CW,QAAA,6BAA6B,GAA7B,6BAA6B,CA8CxC"}
@@ -3,15 +3,14 @@ import type { IAccessorSource } from "./IAccessorSource";
3
3
  /**
4
4
  * Normalize glTF animation samplers into deterministic node tracks.
5
5
  *
6
- * Empty animation inventories return undefined. Otherwise source-order clips and channel-order tracks own independent FLOAT keyframe copies, even when samplers share accessors. Times must be nonnegative and strictly increasing; output arity follows path and interpolation, with only quaternion value groups checked within 1e-4 of unit magnitude. Cubic tangents remain unchanged and weight arity is not checked against the target mesh's morph count. Missing interpolation means LINEAR; unknown interpolation, duplicate node/path channels and malformed data throw with the field path.
7
- *
8
- * @evidence contracts/development/implementation.md#principled-implementation Validated FLOAT accessors, strictly increasing nonnegative times, supported interpolation and target-specific arity determine copied clips.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Motion normalization owns sampler/channel relationships while hierarchy, node TRS and byte readers remain separate owners.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Duplicate targets and non-finite values throw; quaternion value groups outside the 1e-4 magnitude tolerance are refused, while accepted keyframes are copied without normalization. Weight counts are checked only for a nonempty whole keyframe group, not against a target mesh's morph count.
11
- * @evidence contracts/development/common.md#meaningful-documentation Prose describes clip/channel ordering, exact keyframe ownership, interpolation, arity and quaternion checks.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost follows node/channel counts and decoded/copied keyframe values; shared accessors are decoded once but each track owns a copy.
13
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Accessor index plus expected shape keys per-call decoding; immutable source/payload dependencies justify reuse and track arrays remain independent.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The decode cache lives only for one inspection; returned clips retain arrays proportional to keyframe counts without raw payload bytes.
6
+ * Empty animation inventories return undefined. Otherwise source-order clips
7
+ * and channel-order tracks own independent FLOAT keyframe copies, even when
8
+ * samplers share accessors. Times must be nonnegative and strictly increasing;
9
+ * output arity follows path and interpolation, with only quaternion value
10
+ * groups checked within 1e-4 of unit magnitude. Cubic tangents remain unchanged
11
+ * and weight arity is not checked against the target mesh's morph count.
12
+ * Missing interpolation means LINEAR; unknown interpolation, duplicate
13
+ * node/path channels and malformed data throw with the field path.
15
14
  */
16
15
  export declare const inspectExternalMotion: (props: {
17
16
  path: string;
@@ -18,15 +18,14 @@ const MOTION_OUTPUT_TYPES = {
18
18
  /**
19
19
  * Normalize glTF animation samplers into deterministic node tracks.
20
20
  *
21
- * Empty animation inventories return undefined. Otherwise source-order clips and channel-order tracks own independent FLOAT keyframe copies, even when samplers share accessors. Times must be nonnegative and strictly increasing; output arity follows path and interpolation, with only quaternion value groups checked within 1e-4 of unit magnitude. Cubic tangents remain unchanged and weight arity is not checked against the target mesh's morph count. Missing interpolation means LINEAR; unknown interpolation, duplicate node/path channels and malformed data throw with the field path.
22
- *
23
- * @evidence contracts/development/implementation.md#principled-implementation Validated FLOAT accessors, strictly increasing nonnegative times, supported interpolation and target-specific arity determine copied clips.
24
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Motion normalization owns sampler/channel relationships while hierarchy, node TRS and byte readers remain separate owners.
25
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Duplicate targets and non-finite values throw; quaternion value groups outside the 1e-4 magnitude tolerance are refused, while accepted keyframes are copied without normalization. Weight counts are checked only for a nonempty whole keyframe group, not against a target mesh's morph count.
26
- * @evidence contracts/development/common.md#meaningful-documentation Prose describes clip/channel ordering, exact keyframe ownership, interpolation, arity and quaternion checks.
27
- * @evidence contracts/development/implementation.md#efficient-algorithms Cost follows node/channel counts and decoded/copied keyframe values; shared accessors are decoded once but each track owns a copy.
28
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Accessor index plus expected shape keys per-call decoding; immutable source/payload dependencies justify reuse and track arrays remain independent.
29
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The decode cache lives only for one inspection; returned clips retain arrays proportional to keyframe counts without raw payload bytes.
21
+ * Empty animation inventories return undefined. Otherwise source-order clips
22
+ * and channel-order tracks own independent FLOAT keyframe copies, even when
23
+ * samplers share accessors. Times must be nonnegative and strictly increasing;
24
+ * output arity follows path and interpolation, with only quaternion value
25
+ * groups checked within 1e-4 of unit magnitude. Cubic tangents remain unchanged
26
+ * and weight arity is not checked against the target mesh's morph count.
27
+ * Missing interpolation means LINEAR; unknown interpolation, duplicate
28
+ * node/path channels and malformed data throw with the field path.
30
29
  */
31
30
  const inspectExternalMotion = (props) => {
32
31
  if (props.animations.length === 0)
@@ -1 +1 @@
1
- {"version":3,"file":"inspectExternalMotion.js","sourceRoot":"","sources":["../../src/internal/inspectExternalMotion.ts"],"names":[],"mappings":";;;AAOA,kHAA+G;AAE/G,y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IAAI,uBAAuB,KAAK,CAAC,UAAU,kBAAkB,CACvE,CAAC;IACJ,IAAI,KAAK,CAAC,UAAU,KAAK,UAAU;QAAE,OAAO;IAC5C,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC;QAC7D,0EAA0E;QAC1E,mCAAmC;QACnC,MAAM,EAAE,GACN,CAAC,KAAK,CAAC,aAAa,KAAK,aAAa,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACtE,MAAM,SAAS,GAAW,IAAI,CAAC,KAAK,CAClC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAE,EACjB,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAE,EACrB,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAE,EACrB,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAE,CACtB,CAAC;QACF,IAAI,IAAI,CAAC,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI;YAChC,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,CAAC,IAAI,yCAAyC,CAAC,CAAC;IAC5E,CAAC;AACH,CAAC,CAAC"}
@@ -2,14 +2,11 @@ import type { IAutoMovieExternalMotionNodeInspection } from "@automovie/interfac
2
2
  /**
3
3
  * Read glTF motion nodes as finite canonical local TRS records.
4
4
  *
5
- * The caller supplies a validated acyclic parent table. Omitted translation, rotation and scale use glTF defaults; present tuples must be finite, scales positive and quaternion magnitude within 1e-4 of one before normalization. Matrix transforms throw instead of being decomposed. Records use source-index ids, null for absent/empty names or root parents, and fresh transform objects.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Three/four-component tuples use glTF defaults; positive scale and unit-quaternion tolerance precede rotation normalization.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Node interpretation owns stable index ids, parent ids and local transforms, separate from animation channel decoding.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Matrix transforms are refused rather than decomposed; rig names do not invent skeletal semantics.
10
- * @evidence contracts/development/common.md#meaningful-documentation Prose states defaults, matrix refusal, positive scale, quaternion normalization and absent name/parent meaning.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms N nodes require O(N) time and output records, with fixed-size tuple work per node.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The admitted parent table is reused from structural hierarchy checks; each node transform is interpreted once per inspection.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned node records own new fixed-size transforms; source JSON arrays and tuple temporaries are not retained.
5
+ * The caller supplies a validated acyclic parent table. Omitted translation,
6
+ * rotation and scale use glTF defaults; present tuples must be finite, scales
7
+ * positive and quaternion magnitude within 1e-4 of one before normalization.
8
+ * Matrix transforms throw instead of being decomposed. Records use source-index
9
+ * ids, null for absent/empty names or root parents, and fresh transform
10
+ * objects.
14
11
  */
15
12
  export declare const inspectExternalMotionNodes: (values: unknown[], parentByIndex: readonly (number | undefined)[]) => IAutoMovieExternalMotionNodeInspection[];