@vgai/cli 0.5.8 → 0.5.10
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/dist/index.js +64 -14
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -308178,9 +308178,11 @@ import { dirname as dirname7, isAbsolute as isAbsolute6, join as join17, relativ
|
|
|
308178
308178
|
// ../../node_modules/fflate/esm/index.mjs
|
|
308179
308179
|
import { createRequire } from "module";
|
|
308180
308180
|
var require2 = createRequire("/");
|
|
308181
|
+
var _a2;
|
|
308181
308182
|
var Worker;
|
|
308183
|
+
var isMarkedAsUntransferable;
|
|
308182
308184
|
try {
|
|
308183
|
-
|
|
308185
|
+
_a2 = require2("worker_threads"), Worker = _a2.Worker, isMarkedAsUntransferable = _a2.isMarkedAsUntransferable;
|
|
308184
308186
|
} catch (e) {
|
|
308185
308187
|
}
|
|
308186
308188
|
var u8 = Uint8Array;
|
|
@@ -308378,6 +308380,7 @@ var ec = [
|
|
|
308378
308380
|
"stream finished",
|
|
308379
308381
|
"no stream handler",
|
|
308380
308382
|
,
|
|
308383
|
+
// determined by compression function
|
|
308381
308384
|
"no callback",
|
|
308382
308385
|
"invalid UTF-8 data",
|
|
308383
308386
|
"extra field too long",
|
|
@@ -308908,7 +308911,7 @@ var fltn = function(d, p, t, o) {
|
|
|
308908
308911
|
var val = d[k], n = p + k, op = o;
|
|
308909
308912
|
if (Array.isArray(val))
|
|
308910
308913
|
op = mrg(o, val[1]), val = val[0];
|
|
308911
|
-
if (val
|
|
308914
|
+
if (ArrayBuffer.isView(val))
|
|
308912
308915
|
t[n] = [val, op];
|
|
308913
308916
|
else {
|
|
308914
308917
|
t[n += "/"] = [new u8(0), op];
|
|
@@ -308992,14 +308995,28 @@ var slzh = function(d, b) {
|
|
|
308992
308995
|
return b + 30 + b2(d, b + 26) + b2(d, b + 28);
|
|
308993
308996
|
};
|
|
308994
308997
|
var zh = function(d, b, z2) {
|
|
308995
|
-
var fnl = b2(d, b + 28), fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)), es = b + 46 + fnl
|
|
308996
|
-
var _a3 =
|
|
308997
|
-
return [b2(d, b + 10), sc, su, fn, es +
|
|
308998
|
+
var fnl = b2(d, b + 28), efl = b2(d, b + 30), fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)), es = b + 46 + fnl;
|
|
308999
|
+
var _a3 = z64hs(d, es, efl, z2, b4(d, b + 20), b4(d, b + 24), b4(d, b + 42)), sc = _a3[0], su = _a3[1], off = _a3[2];
|
|
309000
|
+
return [b2(d, b + 10), sc, su, fn, es + efl + b2(d, b + 32), off];
|
|
308998
309001
|
};
|
|
308999
|
-
var
|
|
309000
|
-
|
|
309001
|
-
|
|
309002
|
-
|
|
309002
|
+
var z64hs = function(d, b, l, z2, sc, su, off) {
|
|
309003
|
+
var nsc = sc == 4294967295, nsu = su == 4294967295, noff = off == 4294967295, e = b + l;
|
|
309004
|
+
var nf = nsc + nsu + noff;
|
|
309005
|
+
if (z2 && nf) {
|
|
309006
|
+
for (; b + 4 < e; b += 4 + b2(d, b + 2)) {
|
|
309007
|
+
if (b2(d, b) == 1) {
|
|
309008
|
+
return [
|
|
309009
|
+
nsc ? b8(d, b + 4 + 8 * nsu) : sc,
|
|
309010
|
+
nsu ? b8(d, b + 4) : su,
|
|
309011
|
+
noff ? b8(d, b + 4 + 8 * (nsu + nsc)) : off,
|
|
309012
|
+
1
|
|
309013
|
+
];
|
|
309014
|
+
}
|
|
309015
|
+
}
|
|
309016
|
+
if (z2 < 2)
|
|
309017
|
+
err(13);
|
|
309018
|
+
}
|
|
309019
|
+
return [sc, su, off, 0];
|
|
309003
309020
|
};
|
|
309004
309021
|
var exfl = function(ex) {
|
|
309005
309022
|
var le = 0;
|
|
@@ -309114,7 +309131,7 @@ function unzipSync(data, opts) {
|
|
|
309114
309131
|
if (!c)
|
|
309115
309132
|
return {};
|
|
309116
309133
|
var o = b4(data, e + 16);
|
|
309117
|
-
var z2 =
|
|
309134
|
+
var z2 = b4(data, e - 20) == 117853008;
|
|
309118
309135
|
if (z2) {
|
|
309119
309136
|
var ze = b4(data, e - 12);
|
|
309120
309137
|
z2 = b4(data, ze) == 101075792;
|
|
@@ -313849,7 +313866,7 @@ var src_default = Yoga;
|
|
|
313849
313866
|
// ../../node_modules/ink/node_modules/ansi-regex/index.js
|
|
313850
313867
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
313851
313868
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
313852
|
-
const osc = `(?:\\u001B\\][\\
|
|
313869
|
+
const osc = `(?:\\u001B\\][^\\u0007\\u001B\\u009C]*${ST})`;
|
|
313853
313870
|
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
313854
313871
|
const pattern = `${osc}|${csi}`;
|
|
313855
313872
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
@@ -324668,8 +324685,8 @@ function catalogDistributionDir() {
|
|
|
324668
324685
|
);
|
|
324669
324686
|
}
|
|
324670
324687
|
function cliVersion() {
|
|
324671
|
-
if ("0.5.
|
|
324672
|
-
return "0.5.
|
|
324688
|
+
if ("0.5.10") {
|
|
324689
|
+
return "0.5.10";
|
|
324673
324690
|
}
|
|
324674
324691
|
try {
|
|
324675
324692
|
const pkg = JSON.parse(readFileSync32(join39(__dirname4, "..", "package.json"), "utf8"));
|
|
@@ -324688,7 +324705,7 @@ function bakedTargetVersions() {
|
|
|
324688
324705
|
if (false)
|
|
324689
324706
|
return void 0;
|
|
324690
324707
|
try {
|
|
324691
|
-
return JSON.parse('{"@vgai/engine":"0.5.
|
|
324708
|
+
return JSON.parse('{"@vgai/engine":"0.5.10","@vgai/editor":"0.5.10","@vgai/p2p-colyseus":"0.5.10","@vgai/live":"0.5.10","@vgai/sdk":"0.5.10","@vgai/editor-sdk":"0.5.10","@vgai/cli":"0.5.10"}');
|
|
324692
324709
|
} catch {
|
|
324693
324710
|
return void 0;
|
|
324694
324711
|
}
|
|
@@ -325295,6 +325312,34 @@ function mountFailureWarning(state) {
|
|
|
325295
325312
|
"================================================================"
|
|
325296
325313
|
].join("\n");
|
|
325297
325314
|
}
|
|
325315
|
+
function ingestCoverageWarning(state) {
|
|
325316
|
+
const ingest = state.ingest;
|
|
325317
|
+
const coverage = ingest?.coverage;
|
|
325318
|
+
const rows = Array.isArray(coverage?.rows) ? coverage.rows : [];
|
|
325319
|
+
const gaps = rows.filter(
|
|
325320
|
+
(row) => typeof row === "object" && row !== null && row.status === "gap" && typeof row.seam === "string"
|
|
325321
|
+
);
|
|
325322
|
+
if (gaps.length === 0) return null;
|
|
325323
|
+
const worldId = typeof ingest?.worldId === "string" ? ingest.worldId : "(unnamed world)";
|
|
325324
|
+
const lines = gaps.flatMap((gap) => [
|
|
325325
|
+
` \u2717 ${gap.seam}`,
|
|
325326
|
+
...gap.missing ? [` missing: ${gap.missing}`] : [],
|
|
325327
|
+
...gap.fix ? [` fix: ${gap.fix}`] : []
|
|
325328
|
+
]);
|
|
325329
|
+
return [
|
|
325330
|
+
"================================================================",
|
|
325331
|
+
` INGEST COVERAGE \u2014 ${gaps.length} SEAM(S) MISSING IN "${worldId}"`,
|
|
325332
|
+
"================================================================",
|
|
325333
|
+
" This game is mounted and running. It is what the editor CANNOT do",
|
|
325334
|
+
" with it that is listed here \u2014 each line names the mechanism that",
|
|
325335
|
+
" would close the gap:",
|
|
325336
|
+
"",
|
|
325337
|
+
...lines,
|
|
325338
|
+
"",
|
|
325339
|
+
" The seams that ARE present are in `ingest.coverage` in the JSON below.",
|
|
325340
|
+
"================================================================"
|
|
325341
|
+
].join("\n");
|
|
325342
|
+
}
|
|
325298
325343
|
function playErrorsWarning(state, logFile) {
|
|
325299
325344
|
const live = state.playState === "playing" || state.playState === "paused";
|
|
325300
325345
|
const pageErrors = playPageErrorsOf(state);
|
|
@@ -329269,6 +329314,10 @@ Choose exactly one target: project, --port/--url, --all, or --everywhere.`
|
|
|
329269
329314
|
if (mountFailed) {
|
|
329270
329315
|
console.warn(mountFailed);
|
|
329271
329316
|
}
|
|
329317
|
+
const ingestCoverage = ingestCoverageWarning(state);
|
|
329318
|
+
if (ingestCoverage) {
|
|
329319
|
+
console.warn(ingestCoverage);
|
|
329320
|
+
}
|
|
329272
329321
|
const authoringWarnings = authoringWarningsWarning(state);
|
|
329273
329322
|
if (authoringWarnings) {
|
|
329274
329323
|
console.warn(authoringWarnings);
|
|
@@ -329380,6 +329429,7 @@ export {
|
|
|
329380
329429
|
colyseusPresenceWarning,
|
|
329381
329430
|
createProject,
|
|
329382
329431
|
hiddenTabWarning,
|
|
329432
|
+
ingestCoverageWarning,
|
|
329383
329433
|
listAvailableExamples,
|
|
329384
329434
|
moduleSplitWarning,
|
|
329385
329435
|
mountFailureWarning,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@vgai/cli",
|
|
3
3
|
"author": "Volter AI, Inc.",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.10",
|
|
6
6
|
"description": "Create, open, control, validate, and playtest VGAI game projects.",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"game-engine",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@oclif/core": "^4.11.14",
|
|
42
|
-
"@vgai/editor": "0.5.
|
|
43
|
-
"@vgai/editor-sdk": "0.5.
|
|
44
|
-
"@vgai/engine": "0.5.
|
|
45
|
-
"@vgai/live": "0.5.
|
|
46
|
-
"@vgai/p2p-colyseus": "0.5.
|
|
47
|
-
"@vgai/sdk": "0.5.
|
|
42
|
+
"@vgai/editor": "0.5.10",
|
|
43
|
+
"@vgai/editor-sdk": "0.5.10",
|
|
44
|
+
"@vgai/engine": "0.5.10",
|
|
45
|
+
"@vgai/live": "0.5.10",
|
|
46
|
+
"@vgai/p2p-colyseus": "0.5.10",
|
|
47
|
+
"@vgai/sdk": "0.5.10",
|
|
48
48
|
"ink": "^7.1.0",
|
|
49
49
|
"playwright": "^1.58.2",
|
|
50
50
|
"react": "^19.2.4",
|