@bitmagic/asset-core 0.2.22-dev.6 → 0.2.22-dev.8

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.
@@ -203,6 +203,64 @@ export interface SourceManifest {
203
203
  * tarball's `game/src/<root>` into `engine/<root>`, so every vendored file lives under this.
204
204
  */
205
205
  export declare const VENDORED_ENGINE_PREFIX = "engine/";
206
+ /**
207
+ * File extensions the archive payload never carries, however large the file is.
208
+ *
209
+ * The archive is source. A creator's project accumulates build INPUTS — `bitmagic tools install
210
+ * blender-level` writes `build/level/<name>.blend`, `<name>.glb` and a `build/level/review/`
211
+ * directory of contact-sheet PNGs; the Unity lane writes `build/glb/<scene>.glb`; the MetaHuman
212
+ * lane writes `assets/metahuman/<name>/<name>.glb` beside a `textures/` directory of 4K maps —
213
+ * and none of them is in the published bundle. Generated assets reach a game as absolute CDN URLs
214
+ * in `world.json`; `bitmagic assets add` PUTs the bytes to storage and writes back a URL. So a
215
+ * local `.glb` is the thing the CDN copy was made FROM, and shipping it a second time inside a
216
+ * source archive buys a reader nothing.
217
+ *
218
+ * Left unchecked this is not a tidiness problem. A real publish produced a 641,649,496-byte
219
+ * archive, which is ten times `MAX_ARCHIVE_BYTES` in api-server's audit — so the fingerprint,
220
+ * engine and self-consistency checks were skipped on exactly the publish most likely to need
221
+ * them, after the whole project had been read into memory, deflated, and PUT to a bucket with a
222
+ * bucket-level `allUsers:objectViewer` grant.
223
+ *
224
+ * Matched on the lowercased final `.`-segment of the basename.
225
+ */
226
+ export declare const BINARY_ASSET_EXTENSIONS: ReadonlySet<string>;
227
+ /**
228
+ * Extensions that are source however big the file gets, exempting them from the size backstop.
229
+ *
230
+ * `src/work/world.json` is the reason this set exists rather than a bare size cap: a creator's
231
+ * world can run to several megabytes of objects and is the single most useful file in the archive.
232
+ * A cap that dropped it would defeat the archive to fix its size.
233
+ *
234
+ * Anything NOT listed here and not in `BINARY_ASSET_EXTENSIONS` is treated as unknown and subject
235
+ * to `MAX_PAYLOAD_FILE_BYTES`, which is the backstop for a format nobody has thought of yet.
236
+ */
237
+ export declare const SOURCE_TEXT_EXTENSIONS: ReadonlySet<string>;
238
+ /** Size above which a file of unrecognised type is recorded by hash rather than carried. */
239
+ export declare const MAX_PAYLOAD_FILE_BYTES: number;
240
+ /**
241
+ * Total uncompressed payload the archive will carry.
242
+ *
243
+ * Source text deflates about four to one, so this lands an archive around 6MB — comfortably inside
244
+ * api-server's 64MB `MAX_ARCHIVE_BYTES`, which is the number that decides whether the publish gets
245
+ * audited at all. The budget exists for the case the two rules above cannot see: thousands of
246
+ * sub-megabyte files of a type nobody deny-listed.
247
+ */
248
+ export declare const MAX_PAYLOAD_TOTAL_BYTES: number;
249
+ /**
250
+ * Why a fingerprinted file is not carried in the archive payload, or null when it is.
251
+ *
252
+ * `'budget'` is deliberately absent: it is not a property of one file, so only the caller — which
253
+ * can see the whole set — decides it. See `buildSourceArchive`.
254
+ *
255
+ * **This changes the ARCHIVE, never the fingerprint**, exactly like `SECRET_FILE_PATTERNS` above
256
+ * and for the same reason: `SOURCE_INDEX_ALGO` versions `EXCLUDED_DIRS`, `EXCLUDED_FILES` and
257
+ * `fingerprintFromIndex`, none of which this touches. Every omitted path stays in the manifest's
258
+ * `files` with its hash and is listed in `omitted`, so the server re-derives the same fingerprint
259
+ * from an archive that does not physically contain the bytes — the mechanism `engine/` already
260
+ * uses. No algo bump, and an already-installed CLI keeps agreeing with the server.
261
+ */
262
+ export declare function payloadOmitReason(posixPath: string, bytes: number): PayloadOmitReason | null;
263
+ export type PayloadOmitReason = 'engine' | 'secret' | 'binary' | 'oversize' | 'budget';
206
264
  /**
207
265
  * Map a path as it appears in the engine release tarball to where it lands in a scaffolded
208
266
  * project, or null when the tarball entry is not vendored into projects at all.
@@ -1 +1 @@
1
- {"version":3,"file":"publish-source.d.ts","sourceRoot":"","sources":["../src/publish-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;A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M,sBAAsB,YAAY,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAetD,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAGrD,CAAC;AAEH,4FAA4F;AAC5F,eAAO,MAAM,sBAAsB,QAAc,CAAC;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,QAAmB,CAAC;AAExD;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAO5F;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAevF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAc3E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAGjD,CAAC;AAEF,6EAA6E;AAC7E,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAMhE"}
@@ -189,6 +189,104 @@ export const SOURCE_MANIFEST_NAME = 'bitmagic-source.json';
189
189
  * tarball's `game/src/<root>` into `engine/<root>`, so every vendored file lives under this.
190
190
  */
191
191
  export const VENDORED_ENGINE_PREFIX = 'engine/';
192
+ /**
193
+ * File extensions the archive payload never carries, however large the file is.
194
+ *
195
+ * The archive is source. A creator's project accumulates build INPUTS — `bitmagic tools install
196
+ * blender-level` writes `build/level/<name>.blend`, `<name>.glb` and a `build/level/review/`
197
+ * directory of contact-sheet PNGs; the Unity lane writes `build/glb/<scene>.glb`; the MetaHuman
198
+ * lane writes `assets/metahuman/<name>/<name>.glb` beside a `textures/` directory of 4K maps —
199
+ * and none of them is in the published bundle. Generated assets reach a game as absolute CDN URLs
200
+ * in `world.json`; `bitmagic assets add` PUTs the bytes to storage and writes back a URL. So a
201
+ * local `.glb` is the thing the CDN copy was made FROM, and shipping it a second time inside a
202
+ * source archive buys a reader nothing.
203
+ *
204
+ * Left unchecked this is not a tidiness problem. A real publish produced a 641,649,496-byte
205
+ * archive, which is ten times `MAX_ARCHIVE_BYTES` in api-server's audit — so the fingerprint,
206
+ * engine and self-consistency checks were skipped on exactly the publish most likely to need
207
+ * them, after the whole project had been read into memory, deflated, and PUT to a bucket with a
208
+ * bucket-level `allUsers:objectViewer` grant.
209
+ *
210
+ * Matched on the lowercased final `.`-segment of the basename.
211
+ */
212
+ export const BINARY_ASSET_EXTENSIONS = new Set([
213
+ // Meshes and voxel models
214
+ 'glb', 'gltf', 'fbx', 'obj', 'blend', 'blend1', 'vxl', 'vox', 'qb', 'usdz',
215
+ // Textures and images
216
+ 'png', 'jpg', 'jpeg', 'webp', 'gif', 'bmp', 'tga', 'psd', 'tif', 'tiff', 'exr', 'hdr', 'ktx2', 'basis', 'dds',
217
+ // Audio
218
+ 'mp3', 'wav', 'ogg', 'opus', 'flac', 'm4a', 'aac',
219
+ // Video
220
+ 'mp4', 'webm', 'mov', 'mkv',
221
+ // Gaussian splats
222
+ 'ply', 'spz', 'sog',
223
+ // Archives and binaries that are never a project's source
224
+ 'zip', 'tar', 'gz', 'tgz', 'bz2', '7z', 'rar', 'wasm', 'ipa', 'apk',
225
+ // Fonts
226
+ 'ttf', 'otf', 'woff', 'woff2',
227
+ ]);
228
+ /**
229
+ * Extensions that are source however big the file gets, exempting them from the size backstop.
230
+ *
231
+ * `src/work/world.json` is the reason this set exists rather than a bare size cap: a creator's
232
+ * world can run to several megabytes of objects and is the single most useful file in the archive.
233
+ * A cap that dropped it would defeat the archive to fix its size.
234
+ *
235
+ * Anything NOT listed here and not in `BINARY_ASSET_EXTENSIONS` is treated as unknown and subject
236
+ * to `MAX_PAYLOAD_FILE_BYTES`, which is the backstop for a format nobody has thought of yet.
237
+ */
238
+ export const SOURCE_TEXT_EXTENSIONS = new Set([
239
+ 'ts', 'tsx', 'js', 'jsx', 'mjs', 'cjs', 'json', 'jsonc', 'md', 'mdx', 'html', 'htm', 'css', 'scss',
240
+ 'txt', 'yml', 'yaml', 'toml', 'xml', 'svg', 'csv', 'py', 'sh', 'bash', 'zsh', 'glsl', 'wgsl', 'frag', 'vert',
241
+ ]);
242
+ /** Size above which a file of unrecognised type is recorded by hash rather than carried. */
243
+ export const MAX_PAYLOAD_FILE_BYTES = 1024 * 1024;
244
+ /**
245
+ * Total uncompressed payload the archive will carry.
246
+ *
247
+ * Source text deflates about four to one, so this lands an archive around 6MB — comfortably inside
248
+ * api-server's 64MB `MAX_ARCHIVE_BYTES`, which is the number that decides whether the publish gets
249
+ * audited at all. The budget exists for the case the two rules above cannot see: thousands of
250
+ * sub-megabyte files of a type nobody deny-listed.
251
+ */
252
+ export const MAX_PAYLOAD_TOTAL_BYTES = 24 * 1024 * 1024;
253
+ /**
254
+ * Why a fingerprinted file is not carried in the archive payload, or null when it is.
255
+ *
256
+ * `'budget'` is deliberately absent: it is not a property of one file, so only the caller — which
257
+ * can see the whole set — decides it. See `buildSourceArchive`.
258
+ *
259
+ * **This changes the ARCHIVE, never the fingerprint**, exactly like `SECRET_FILE_PATTERNS` above
260
+ * and for the same reason: `SOURCE_INDEX_ALGO` versions `EXCLUDED_DIRS`, `EXCLUDED_FILES` and
261
+ * `fingerprintFromIndex`, none of which this touches. Every omitted path stays in the manifest's
262
+ * `files` with its hash and is listed in `omitted`, so the server re-derives the same fingerprint
263
+ * from an archive that does not physically contain the bytes — the mechanism `engine/` already
264
+ * uses. No algo bump, and an already-installed CLI keeps agreeing with the server.
265
+ */
266
+ export function payloadOmitReason(posixPath, bytes) {
267
+ if (posixPath.startsWith(VENDORED_ENGINE_PREFIX))
268
+ return 'engine';
269
+ if (isSecretPath(posixPath))
270
+ return 'secret';
271
+ const extension = fileExtension(posixPath);
272
+ if (BINARY_ASSET_EXTENSIONS.has(extension))
273
+ return 'binary';
274
+ if (!SOURCE_TEXT_EXTENSIONS.has(extension) && bytes > MAX_PAYLOAD_FILE_BYTES)
275
+ return 'oversize';
276
+ return null;
277
+ }
278
+ /**
279
+ * The lowercased extension of a path's basename, or '' when it has none.
280
+ *
281
+ * Read from the basename rather than the whole path so a directory with a dot in its name
282
+ * (`assets/v1.2/Game.ts`) cannot contribute one, and a dotfile with no extension (`.npmrc`)
283
+ * reports '' rather than 'npmrc' — the leading dot is the name, not a separator.
284
+ */
285
+ function fileExtension(posixPath) {
286
+ const base = posixPath.slice(posixPath.lastIndexOf('/') + 1);
287
+ const dot = base.lastIndexOf('.');
288
+ return dot <= 0 ? '' : base.slice(dot + 1).toLowerCase();
289
+ }
192
290
  /**
193
291
  * Map a path as it appears in the engine release tarball to where it lands in a scaffolded
194
292
  * project, or null when the tarball entry is not vendored into projects at all.
@@ -1 +1 @@
1
- {"version":3,"file":"publish-source.js","sourceRoot":"","sources":["../src/publish-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,gGAAgG;AAChG,gGAAgG;AAChG,kCAAkC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,CAAC;AAEtC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,aAAa,GAAwB,IAAI,GAAG,CAAC;IACxD,WAAW;IACX,cAAc;IACd,MAAM;IACN,aAAa;IACb,MAAM;CACP,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,M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AAE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;AACvE,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAmB;IACtD,gGAAgG;IAChG,uFAAuF;IACvF,gEAAgE;IAChE,MAAM,IAAI,GAAG,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtD,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACxF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitmagic/asset-core",
3
- "version": "0.2.22-dev.6",
3
+ "version": "0.2.22-dev.8",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "author": "Bitmagic Oy",
6
6
  "type": "module",