@genex-ai/cli-demo 0.88.0-dev.219 → 0.90.0-dev.227

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 (2) hide show
  1. package/dist/index.js +21 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4727,6 +4727,17 @@ async function deployGame(ctx, opts, log) {
4727
4727
  log.error(`No index.html in ${rel} \u2014 a game needs one to serve. Nothing deployed.`);
4728
4728
  return false;
4729
4729
  }
4730
+ const lfsPointers = files.filter(
4731
+ (f) => f.bytes.length < 1024 && f.bytes.subarray(0, 64).toString("latin1").startsWith("version https://git-lfs.github.com/spec/v")
4732
+ );
4733
+ if (lfsPointers.length > 0) {
4734
+ log.error(
4735
+ `${lfsPointers.length} file${lfsPointers.length > 1 ? "s" : ""} in ${rel} ${lfsPointers.length > 1 ? "are" : "is"} an unresolved Git LFS pointer, not the real asset \u2014 the game would fail to load at runtime. Run \`git lfs pull\` and rebuild. Nothing deployed.`
4736
+ );
4737
+ for (const p of lfsPointers.slice(0, 8)) log.dim(` ${p.relPath}`);
4738
+ if (lfsPointers.length > 8) log.dim(` \u2026and ${lfsPointers.length - 8} more`);
4739
+ return false;
4740
+ }
4730
4741
  printMobilePreflight(files, log);
4731
4742
  await printUiAuditPreflight(log);
4732
4743
  await printPipelineStatePreflight(log);
@@ -16394,6 +16405,15 @@ import path18 from "path";
16394
16405
 
16395
16406
  // src/lib/motion/npz.ts
16396
16407
  import zlib from "zlib";
16408
+ function decodeUcs4(b) {
16409
+ let out = "";
16410
+ for (let i = 0; i + 4 <= b.length; i += 4) {
16411
+ const cp = b.readUInt32LE(i);
16412
+ if (cp === 0) break;
16413
+ out += cp > 1114111 ? "\uFFFD" : String.fromCodePoint(cp);
16414
+ }
16415
+ return out;
16416
+ }
16397
16417
  function readNpy(b) {
16398
16418
  if (b.toString("latin1", 1, 6) !== "NUMPY") throw new Error("not an .npy member");
16399
16419
  const major = b[6];
@@ -16411,7 +16431,7 @@ function readNpy(b) {
16411
16431
  if (descr === "<f8") return { shape, descr, data: new Float64Array(data.buffer, data.byteOffset, data.length / 8) };
16412
16432
  if (descr === "<i8") return { shape, descr, data: new BigInt64Array(data.buffer, data.byteOffset, data.length / 8) };
16413
16433
  if (descr === "|b1") return { shape, descr, data: new Uint8Array(data.buffer, data.byteOffset, data.length) };
16414
- if (descr.startsWith("<U")) return { shape, descr, data: data.toString("utf16le").replace(/\0+$/, "") };
16434
+ if (descr.startsWith("<U")) return { shape, descr, data: decodeUcs4(data) };
16415
16435
  if (descr === "|O") throw new Error(".npz member is a pickled object array \u2014 regenerate the take with a current ARDY");
16416
16436
  throw new Error(`unsupported .npy dtype ${descr}`);
16417
16437
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genex-ai/cli-demo",
3
- "version": "0.88.0-dev.219",
3
+ "version": "0.90.0-dev.227",
4
4
  "description": "Set up your project's agent workspace (.claude/.codex/.cursor in the game folder), authorize, create a game project, generate AI assets, and publish (genex CLI).",
5
5
  "type": "module",
6
6
  "bin": {