@baizor/gamedev 0.25.9 → 0.25.11
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 +2 -2
- package/bin/postinstall.js +22 -0
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
[](https://www.npmjs.com/package/@baizor/gamedev)
|
|
5
5
|
[](https://www.npmjs.com/package/@baizor/gamedev)
|
|
6
|
-
[](https://nodejs.org/)
|
|
7
7
|
[](https://ai-game.dev)
|
|
8
8
|
[](https://ai-game.dev)
|
|
9
9
|
[](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/) >=
|
|
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
|

|
package/bin/postinstall.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.25.11",
|
|
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": "
|
|
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.
|
|
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.
|
|
38
|
-
"game-dev-cli-darwin-x64": "0.25.
|
|
39
|
-
"game-dev-cli-linux-arm64": "0.25.
|
|
40
|
-
"game-dev-cli-linux-x64": "0.25.
|
|
41
|
-
"game-dev-cli-windows-x64": "0.25.
|
|
38
|
+
"game-dev-cli-darwin-arm64": "0.25.11",
|
|
39
|
+
"game-dev-cli-darwin-x64": "0.25.11",
|
|
40
|
+
"game-dev-cli-linux-arm64": "0.25.11",
|
|
41
|
+
"game-dev-cli-linux-x64": "0.25.11",
|
|
42
|
+
"game-dev-cli-windows-x64": "0.25.11"
|
|
42
43
|
},
|
|
43
44
|
"scripts": {
|
|
44
45
|
"postinstall": "node bin/postinstall.js"
|