@baizor/gamedev 0.25.10 → 0.25.12

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/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  [![npm](https://img.shields.io/npm/v/@baizor/gamedev?label=npm&labelColor=333A41 'npm package')](https://www.npmjs.com/package/@baizor/gamedev)
5
5
  [![Downloads](https://img.shields.io/npm/dm/@baizor/gamedev?label=downloads&labelColor=333A41)](https://www.npmjs.com/package/@baizor/gamedev)
6
- [![Node.js](https://img.shields.io/badge/Node.js-%3E%3D18-5FA04E?logo=nodedotjs&labelColor=333A41 'Node.js')](https://nodejs.org/)
6
+ [![Node.js](https://img.shields.io/badge/Node.js-%3E%3D22-5FA04E?logo=nodedotjs&labelColor=333A41 'Node.js')](https://nodejs.org/)
7
7
  [![License](https://img.shields.io/npm/l/@baizor/gamedev?label=License&labelColor=333A41)](https://ai-game.dev)
8
8
  [![Website](https://img.shields.io/badge/website-ai--game.dev-bc6c25?labelColor=333A41)](https://ai-game.dev)
9
9
  [![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)
@@ -58,7 +58,7 @@ Or run it instantly with `npx` — no global install required:
58
58
  npx @baizor/gamedev
59
59
  ```
60
60
 
61
- > **Requirements:** [Node.js](https://nodejs.org/) >= 18. On first launch, sign in with your free
61
+ > **Requirements:** [Node.js](https://nodejs.org/) >= 22. On first launch, sign in with your free
62
62
  > [ai-game.dev](https://ai-game.dev) account.
63
63
 
64
64
  ![divider](https://github.com/IvanMurzak/Unity-MCP/blob/main/docs/img/promo/hazzard-divider.svg?raw=true)
@@ -33,3 +33,25 @@ try {
33
33
  `Try reinstalling with: npm install @baizor/gamedev`
34
34
  );
35
35
  }
36
+
37
+ // A global install or upgrade (`npm install -g @baizor/gamedev`): the newly
38
+ // installed binary asks an older running background service to update once it is
39
+ // idle (`gamedev host-update` stages its runtime first, never starts a service and
40
+ // never interrupts work). Detached and silent: it must never block or fail the
41
+ // installation. A project-local install drives nothing, and neither does
42
+ // `gamedev update`'s own npm run, which runs host-update itself and waits for it.
43
+ // Both names repeat `packages/cli/src/daemon/host-update-command.ts`.
44
+ const HOST_UPDATE_COMMAND = "host-update";
45
+ const SKIP_HOST_UPDATE_ENV = "AIGD_SKIP_POSTINSTALL_HOST_UPDATE";
46
+ if (packageName && process.env.npm_config_global === "true" && process.env[SKIP_HOST_UPDATE_ENV] !== "1") {
47
+ try {
48
+ const path = require("path");
49
+ const { spawn } = require("child_process");
50
+ const binary = path.join(path.dirname(require.resolve(`${packageName}/package.json`)), "bin", process.platform === "win32" ? "ai-game-dev.exe" : "ai-game-dev");
51
+ const child = spawn(binary, [HOST_UPDATE_COMMAND], { detached: true, stdio: "ignore", windowsHide: true });
52
+ child.on("error", () => {});
53
+ child.unref();
54
+ } catch {
55
+ // Nothing to ask: the next start of a newer AI Game Dev asks instead.
56
+ }
57
+ }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@baizor/gamedev",
3
- "version": "0.25.10",
3
+ "version": "0.25.12",
4
4
  "description": "AI Game Dev CLI — the AI game developer in your terminal. An engine-aware AI coding agent for Unity, Godot, and Unreal, powered by the Claude Agent SDK.",
5
- "license": "MIT",
5
+ "license": "SEE LICENSE IN https://ai-game.dev/legal/terms",
6
6
  "homepage": "https://ai-game.dev",
7
7
  "keywords": [
8
8
  "ai",
@@ -31,14 +31,15 @@
31
31
  "README.md"
32
32
  ],
33
33
  "dependencies": {
34
- "@anthropic-ai/claude-agent-sdk": "0.3.301"
34
+ "@anthropic-ai/claude-agent-sdk": "0.3.316",
35
+ "@napi-rs/keyring": "1.3.0"
35
36
  },
36
37
  "optionalDependencies": {
37
- "game-dev-cli-darwin-arm64": "0.25.10",
38
- "game-dev-cli-darwin-x64": "0.25.10",
39
- "game-dev-cli-linux-arm64": "0.25.10",
40
- "game-dev-cli-linux-x64": "0.25.10",
41
- "game-dev-cli-windows-x64": "0.25.10"
38
+ "game-dev-cli-darwin-arm64": "0.25.12",
39
+ "game-dev-cli-darwin-x64": "0.25.12",
40
+ "game-dev-cli-linux-arm64": "0.25.12",
41
+ "game-dev-cli-linux-x64": "0.25.12",
42
+ "game-dev-cli-windows-x64": "0.25.12"
42
43
  },
43
44
  "scripts": {
44
45
  "postinstall": "node bin/postinstall.js"