@vgai/cli 0.5.56 → 0.5.57

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 +22 -26
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -336809,6 +336809,7 @@ var THREE_OWNED_PATHS = [
336809
336809
  "src/components",
336810
336810
  "src/bot"
336811
336811
  ];
336812
+ var THREE_OWNED_PACKAGES = ["@vgai/game"];
336812
336813
  var STUDIO_OWNED_PATHS = [
336813
336814
  "src/contributions/data.document.tsx",
336814
336815
  "src/contributions/tester.inspector.tsx",
@@ -338801,10 +338802,14 @@ function repinEngineAfterInstall(targetDir) {
338801
338802
  return { from, to: installed };
338802
338803
  }
338803
338804
  var runNpmLink = (projectDir, packageDirs) => {
338805
+ const checkout = packageDirs[0] ? resolve9(packageDirs[0], "..", "..") : projectDir;
338806
+ const prefix = join15(checkout, ".vgai", "npm-link-prefix");
338807
+ mkdirSync6(prefix, { recursive: true });
338804
338808
  const result = spawnSync3("npm", ["link", "--no-save", ...packageDirs], {
338805
338809
  cwd: projectDir,
338806
338810
  stdio: "inherit",
338807
- shell: true
338811
+ shell: true,
338812
+ env: { ...process.env, npm_config_prefix: prefix }
338808
338813
  });
338809
338814
  if (result.error) throw result.error;
338810
338815
  if (result.status !== 0) {
@@ -338913,6 +338918,13 @@ function rewriteTemplateVariantFiles(targetDir, additions) {
338913
338918
  for (const relative13 of THREE_OWNED_PATHS) {
338914
338919
  rmSync2(join15(targetDir, relative13), { recursive: true, force: true });
338915
338920
  }
338921
+ const pkgPath = join15(targetDir, "package.json");
338922
+ const pkg = JSON.parse(readFileSync11(pkgPath, "utf-8"));
338923
+ for (const name of THREE_OWNED_PACKAGES) {
338924
+ delete pkg.dependencies?.[name];
338925
+ delete pkg.devDependencies?.[name];
338926
+ }
338927
+ writeJson(pkgPath, pkg);
338916
338928
  writeFileSync5(join15(targetDir, "vgai.adapter.ts"), adapterSourceFor(additions), "utf-8");
338917
338929
  } else {
338918
338930
  const adapterPath = join15(targetDir, "vgai.adapter.ts");
@@ -341317,7 +341329,6 @@ var RELAY_COMMANDS = {
341317
341329
  "document-frame": noDerivedRefresh(),
341318
341330
  // ---- Editor chrome ------------------------------------------------------
341319
341331
  "viewport-tab": noDerivedRefresh(),
341320
- "set-instance-count": alwaysRefresh(),
341321
341332
  "active-tab": alwaysRefresh(3e4),
341322
341333
  // Opening and presenting can await the inspector and a fresh source build.
341323
341334
  // Keep their relay budget aligned with capture-active-document below.
@@ -341381,29 +341392,14 @@ var RELAY_COMMANDS = {
341381
341392
  "set-transform-mode": noDerivedRefresh(),
341382
341393
  "set-transform-space": noDerivedRefresh(),
341383
341394
  "set-snap": noDerivedRefresh(),
341384
- // ---- Reading and driving the running game -------------------------------
341385
- "list-gameplay-state": refreshIfContentChanged(),
341386
- "inspect-gameplay-state": refreshIfContentChanged(),
341387
- "list-debug-commands": refreshIfContentChanged(),
341388
- "invoke-debug-command": alwaysRefresh(),
341389
- "inject-input": noDerivedRefresh(),
341390
- "set-time-scale": noDerivedRefresh(),
341391
- "set-seed": noDerivedRefresh(),
341392
- "run-ticks": noDerivedRefresh(),
341393
- "list-instances": refreshIfContentChanged(),
341394
341395
  // ---- The page bridge ----------------------------------------------------
341395
- // These hand control to the GAME's own code (or to the page), so their
341396
- // budget is the game's, not the editor's.
341397
- "bridge-call": alwaysRefresh(6e4),
341398
- "bridge-screenshot": refreshIfContentChanged(15e3),
341396
+ // The video export hands control to the GAME (it steps a paused run frame
341397
+ // by frame), so its budget is the game's, not the editor's. The rest of
341398
+ // that family — `bridge-call`, `bridge-screenshot`, the recorder's
341399
+ // start/stop/timeline, `game-eval` and `page-script` — carries its own
341400
+ // budgets in `@vgai/game`'s command contributions; the export stays here
341401
+ // with the host gate that owns the paused run.
341399
341402
  "bridge-recording-export": noDerivedRefresh(6e5),
341400
- "bridge-recording-start": noDerivedRefresh(15e3),
341401
- "bridge-recording-stop": noDerivedRefresh(6e4),
341402
- "bridge-recording-timeline": noDerivedRefresh(),
341403
- "page-script": alwaysRefresh(6e4),
341404
- // THE MODULE LANE: an in-page step over { page, modules, instanceId }.
341405
- "game-eval": alwaysRefresh(6e4),
341406
- "page-reload": alwaysRefresh(),
341407
341403
  // ---- The Blender lane ---------------------------------------------------
341408
341404
  // The twin's Python runs in this tab's worker; a chunk can model for a
341409
341405
  // while (Pyodide boots on the first call), and every one presents a frame.
@@ -357124,8 +357120,8 @@ function catalogDistributionDir() {
357124
357120
  );
357125
357121
  }
357126
357122
  function cliVersion() {
357127
- if ("0.5.56") {
357128
- return "0.5.56";
357123
+ if ("0.5.57") {
357124
+ return "0.5.57";
357129
357125
  }
357130
357126
  try {
357131
357127
  const pkg = JSON.parse(readFileSync32(join39(__dirname4, "..", "package.json"), "utf8"));
@@ -357144,7 +357140,7 @@ function bakedTargetVersions() {
357144
357140
  if (false)
357145
357141
  return void 0;
357146
357142
  try {
357147
- return JSON.parse('{"@vgai/engine":"0.5.56","@vgai/editor":"0.5.56","@vgai/p2p-colyseus":"0.5.56","@vgai/live":"0.5.56","@vgai/sdk":"0.5.56","@vgai/editor-sdk":"0.5.56","@vgai/cli":"0.5.56"}');
357143
+ return JSON.parse('{"@vgai/engine":"0.5.57","@vgai/editor":"0.5.57","@vgai/p2p-colyseus":"0.5.57","@vgai/live":"0.5.57","@vgai/sdk":"0.5.57","@vgai/editor-sdk":"0.5.57","@vgai/cli":"0.5.57"}');
357148
357144
  } catch {
357149
357145
  return void 0;
357150
357146
  }
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.56",
5
+ "version": "0.5.57",
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.56",
43
- "@vgai/editor-sdk": "0.5.56",
44
- "@vgai/engine": "0.5.56",
45
- "@vgai/live": "0.5.56",
46
- "@vgai/p2p-colyseus": "0.5.56",
47
- "@vgai/sdk": "0.5.56",
42
+ "@vgai/editor": "0.5.57",
43
+ "@vgai/editor-sdk": "0.5.57",
44
+ "@vgai/engine": "0.5.57",
45
+ "@vgai/live": "0.5.57",
46
+ "@vgai/p2p-colyseus": "0.5.57",
47
+ "@vgai/sdk": "0.5.57",
48
48
  "ink": "^7.1.0",
49
49
  "playwright": "^1.58.2",
50
50
  "react": "^19.2.4",