@hypersocial/cli-games 0.2.0 → 0.2.1

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/cli.js CHANGED
@@ -13296,6 +13296,9 @@ function showGamesMenu(terminal, optionsOrCallback) {
13296
13296
  try {
13297
13297
  enterAlternateBuffer(terminal, "games-menu");
13298
13298
  render();
13299
+ const resizeListener = terminal.onResize(() => {
13300
+ if (running) render();
13301
+ });
13299
13302
  keyListener = terminal.onKey(({ domEvent }) => {
13300
13303
  if (!running) {
13301
13304
  keyListener?.dispose();
@@ -13389,6 +13392,7 @@ function showGamesMenu(terminal, optionsOrCallback) {
13389
13392
  const originalStop = controller.stop;
13390
13393
  controller.stop = () => {
13391
13394
  keyListener?.dispose();
13395
+ resizeListener.dispose();
13392
13396
  exitAlternateBuffer(terminal, "games-menu-stop");
13393
13397
  originalStop();
13394
13398
  };
@@ -13736,10 +13740,13 @@ function main() {
13736
13740
  }
13737
13741
  var cliArgs = process.argv.slice(2);
13738
13742
  if (cliArgs[0] === "vibe" || cliArgs[0] === "create") {
13739
- import("./create-NVLKKJX6.js").then((m) => m.vibeCommand(cliArgs.slice(1)));
13743
+ import("./create-CIK3AD2D.js").then((m) => m.vibeCommand(cliArgs.slice(1)));
13740
13744
  } else if (cliArgs[0] === "remove") {
13741
- import("./create-NVLKKJX6.js").then((m) => m.removeCommand(cliArgs.slice(1)));
13745
+ import("./create-CIK3AD2D.js").then((m) => m.removeCommand(cliArgs.slice(1)));
13742
13746
  } else {
13743
- main();
13747
+ import("./update-check-PNB4U4P7.js").then((m) => m.checkForUpdatePassive()).then((notice) => {
13748
+ if (notice) process.stdout.write(notice);
13749
+ main();
13750
+ }).catch(() => main());
13744
13751
  }
13745
13752
  //# sourceMappingURL=cli.js.map