@forgeax/engine-import 0.1.28 → 0.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -48,6 +48,13 @@ identity. The result is a dynamic `sourceKey -> Asset` map; the bridge derives
48
48
  assets through the same registered output producers and Pack v2 finalizer used
49
49
  by ordinary imports.
50
50
 
51
+ The same map also accepts explicit `PackCookSource` rows for custom kinds.
52
+ Their `execution: 'cooked'` and `source` fields dispatch through the existing
53
+ build-time NativeCooker registry; the closed ordinary Asset producer union is
54
+ unchanged. Cooked refs, artifacts and fingerprints participate in the same
55
+ worklist, reference validation and finalizer. Staged content reads retain the
56
+ custom author source instead of pretending its metadata is a runtime asset.
57
+
51
58
  `buildScriptablePackWorklist()` is the internal clean-generation
52
59
  fixed point. Subjects are evaluated in stable order, a forward `readByGuid()`
53
60
  content miss waits for the subject that can materialize that GUID, and a pass
@@ -141,6 +148,14 @@ flowchart LR
141
148
 
142
149
  Domain producers return structured `ImportError`; the generic bridge contains no per-kind switch. `createStandardAssetOutputProducerRegistry(sceneComponents)` composes the production Scene, Material, and Mesh owners with the definition-bound scene schema. Scene refs use the ECS externalization kernel shared with runtime save, Material refs cover parent/texture/sampler GUIDs, and Mesh emits the versioned binary artifact. The fingerprint covers canonical Meta, the definition-bound scene schema, the recursive source closure, observed external evidence, authoring contract version, and registered producer versions.
143
150
 
151
+ Authored, staged and file-backed asset snapshots share the versioned
152
+ `scriptable-pack-fingerprint/2` encoding. It streams SHA-256 over ordered metadata
153
+ and typed-buffer byte ranges, including each buffer type and byte length. A large
154
+ mesh therefore does not become one JSON property per float or require a single
155
+ giant string. Subarray fingerprints include only the selected range. The encoding
156
+ change regenerates opaque build fingerprints; asset GUIDs and cooked mesh formats
157
+ are unchanged.
158
+
144
159
  `createScriptablePackStagedAssetSnapshotSource()` owns clean-build content reads. It resolves a GUID to its local source owner, lazily builds that owner inside one fixed generation, memoizes private clones and digests, and reports `pack-content-dependency-stalled` for a cycle without consulting an older fallback generation. A fallback is only an explicit prebuilt authority for GUIDs with no local owner.
145
160
 
146
161
  `createStandardAssetOutputProducerRegistry(sceneComponents)` registers the production
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=scriptable-pack-fingerprint.unit.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scriptable-pack-fingerprint.unit.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/scriptable-pack-fingerprint.unit.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"build-production.d.ts","sourceRoot":"","sources":["../src/build-production.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,kBAAkB,EAKxB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AASvE,OAAO,KAAK,EAKV,cAAc,EACd,mBAAmB,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAkB/D,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,MAAM,EAA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