@genex-ai/cli-demo 0.63.0-dev.146 → 0.63.0-dev.152
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/package.json +1 -1
- package/templates/skills/genex-ai-hud/SKILL.md +1 -1
- package/templates/skills/genex-ai-image/SKILL.md +1 -1
- package/templates/skills/genex-ai-menu/SKILL.md +1 -1
- package/templates/skills/genex-ai-model/SKILL.md +1 -1
- package/templates/skills/genex-ai-sfx/SKILL.md +1 -1
- package/templates/skills/genex-explore/SKILL.md +28 -5
- package/templates/skills/genex-threejs-game-content/SKILL.md +5 -0
- package/templates/skills/genex-threejs-skill-router/references/routing-map.md +8 -1
- package/templates/skills/genex-updates/SKILL.md +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genex-ai/cli-demo",
|
|
3
|
-
"version": "0.63.0-dev.
|
|
3
|
+
"version": "0.63.0-dev.152",
|
|
4
4
|
"description": "Set up your project's agent workspace (.claude/.codex/.cursor in the game folder), authorize, create a game project, generate AI assets, and publish (genex CLI).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -409,7 +409,7 @@ after a bad single costs the whole chain).
|
|
|
409
409
|
|
|
410
410
|
## Troubleshooting
|
|
411
411
|
|
|
412
|
-
- **"Not authorized"** — run `npx
|
|
412
|
+
- **"Not authorized"** — run `npx genex init` first (in the project — it resolves this project's own CLI) (it
|
|
413
413
|
writes your `GENEX_TOKEN`).
|
|
414
414
|
- **"Prompt rejected"** — the provider's content-safety filter blocked the
|
|
415
415
|
prompt. Non-retryable; rewrite the wording.
|
|
@@ -194,7 +194,7 @@ set belongs to `$genex-ai-hud` — both build on this command.
|
|
|
194
194
|
|
|
195
195
|
## Troubleshooting
|
|
196
196
|
|
|
197
|
-
- **"Not authorized"** — run `npx
|
|
197
|
+
- **"Not authorized"** — run `npx genex init` first (in the project — it resolves this project's own CLI) (it writes your `GENEX_TOKEN`).
|
|
198
198
|
- **"Prompt rejected"** — the provider's content-safety filter blocked the prompt.
|
|
199
199
|
This is non-retryable; retrying the same wording fails again. Rewrite the prompt.
|
|
200
200
|
- **Decal is an opaque rectangle** — the image has no alpha. Regenerate with
|
|
@@ -334,7 +334,7 @@ upgrades, in order of effort:
|
|
|
334
334
|
|
|
335
335
|
## Troubleshooting
|
|
336
336
|
|
|
337
|
-
- **"Not authorized"** — run `npx
|
|
337
|
+
- **"Not authorized"** — run `npx genex init` first (in the project — it resolves this project's own CLI) (it
|
|
338
338
|
writes your `GENEX_TOKEN`).
|
|
339
339
|
- **"Prompt rejected"** — the provider's content-safety filter blocked the
|
|
340
340
|
prompt. Non-retryable; rewrite the wording.
|
|
@@ -107,7 +107,7 @@ scene is a ghost: players and objects pass straight through it.
|
|
|
107
107
|
|
|
108
108
|
## Troubleshooting
|
|
109
109
|
|
|
110
|
-
- **"Not authorized"** — run `npx
|
|
110
|
+
- **"Not authorized"** — run `npx genex init` first (in the project — it resolves this project's own CLI) (it writes your `GENEX_TOKEN`).
|
|
111
111
|
- **"Out of credits" (`insufficient_credits`)** — the account has no credits left for
|
|
112
112
|
this model generation. Tell the user the facts the CLI printed: their balance, this
|
|
113
113
|
generation's cost, and when their credits refill. Then offer to continue the build
|
|
@@ -72,7 +72,7 @@ Reuse one loaded `buffer` across many plays; create a fresh `Audio`/`PositionalA
|
|
|
72
72
|
|
|
73
73
|
## Troubleshooting
|
|
74
74
|
|
|
75
|
-
- **"Not authorized"** — run `npx
|
|
75
|
+
- **"Not authorized"** — run `npx genex init` first (in the project — it resolves this project's own CLI) (it writes your `GENEX_TOKEN`).
|
|
76
76
|
- **"Out of credits" (`insufficient_credits`)** — the account has no credits left for
|
|
77
77
|
this sound generation. Tell the user the facts the CLI printed: their balance, this
|
|
78
78
|
generation's cost, and when their credits refill. Then offer to continue the build
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: genex-explore
|
|
3
|
-
description: Search the curated Genex community gallery with `npx genex explore` before hand-writing hard
|
|
3
|
+
description: Search the curated Genex community gallery with `npx genex explore` — once at the planning stage (the plan sweep, browse the catalog against the game plan and state reuse decisions) and again before hand-writing any hard system. Use when planning a new game, or when it needs terrain, grass, water, vehicles, buildings, dungeons, flocking, or advanced shaders — proven open-source Three.js implementations to clone or borrow from, credits included.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Genex Explore — proven building blocks from the community gallery
|
|
@@ -11,9 +11,29 @@ advanced shader effects. The curated community gallery holds **faithful ports of
|
|
|
11
11
|
proven open-source Three.js projects** — playable, cloneable, and licensed for
|
|
12
12
|
reuse. Search it before hand-writing one of those systems.
|
|
13
13
|
|
|
14
|
-
##
|
|
14
|
+
## The plan sweep — once per game, right after the plan is written
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
The moment the game contract (and the content contract, when there is one) is
|
|
17
|
+
on the table, run the catalog against it ONCE:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npx genex explore
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
No query — the catalog is small and every entry is proven, so one browse
|
|
24
|
+
covers the whole plan at once. Then walk the plan's systems (terrain, grass,
|
|
25
|
+
water, vehicles, combat feel, buildings, dungeons…) and for each one that a
|
|
26
|
+
catalog entry serves, state a reuse decision in the plan, one line each:
|
|
27
|
+
**clone as the base** / **borrow parts** (see below) / **build fresh, because
|
|
28
|
+
X**. Not deciding is the failure — a session that hand-builds a grass field
|
|
29
|
+
while a proven grass system sits in the catalog wasted its minutes on a
|
|
30
|
+
solved problem. If the catalog comes back empty on this stand, say so in one
|
|
31
|
+
line and move on — the sweep costs one command either way.
|
|
32
|
+
|
|
33
|
+
## When to use again — before any hard system
|
|
34
|
+
|
|
35
|
+
Later in the build, before hand-writing a hard visual/physics system the plan
|
|
36
|
+
didn't foresee, run:
|
|
17
37
|
|
|
18
38
|
```bash
|
|
19
39
|
npx genex explore "<what you need>"
|
|
@@ -43,8 +63,11 @@ Add `--json` for machine-readable output.
|
|
|
43
63
|
**As a NEW game (start from the whole project):**
|
|
44
64
|
|
|
45
65
|
1. `git clone <clone URL from the output> <name>` — pick a short one-word name.
|
|
46
|
-
2. `cd <name>`, then
|
|
47
|
-
|
|
66
|
+
2. `cd <name>`, then run init on the SAME CLI channel your current project
|
|
67
|
+
uses: `npx @genex-ai/cli-demo@dev init <name>` — or `@dev` when you're
|
|
68
|
+
on the dev stand (unsure? `dashboardOrigins` in your current project's
|
|
69
|
+
`.genex/project.json` says which). Never use `--force`. This creates your
|
|
70
|
+
own project; the original is untouched.
|
|
48
71
|
3. `npm install`, keep `base: './'` in `vite.config`, then build your changes
|
|
49
72
|
and ship with `npx genex preview`.
|
|
50
73
|
|
|
@@ -53,6 +53,11 @@ Rules that make the contract real:
|
|
|
53
53
|
- **Minute ten is the design test.** If the honest answer is "the same sixty
|
|
54
54
|
seconds, again", the contract needs another beat (a new area unlocks, a
|
|
55
55
|
quest chain escalates, a build comes online) before any polish work.
|
|
56
|
+
- **Close it with the reuse sweep.** Run `npx genex explore` once (no query)
|
|
57
|
+
and map the contract's systems against the curated catalog — proven ports
|
|
58
|
+
of terrain, grass, water, vehicles, combat feel, buildings, dungeons exist
|
|
59
|
+
there to clone or borrow with credits (`$genex-explore` has the steps). One
|
|
60
|
+
reuse line per matched system; an empty catalog is a one-line note.
|
|
56
61
|
|
|
57
62
|
## Data-driven, or you won't finish in one session
|
|
58
63
|
|
|
@@ -31,7 +31,14 @@ Three.js release or branch, and do not blindly copy demo architecture.
|
|
|
31
31
|
fogged plane. Scope belongs to the user: shipping fewer or smaller than
|
|
32
32
|
the ask requires their explicit OK through a structured question — a
|
|
33
33
|
"vertical slice first" is a build order, never a license to shrink the
|
|
34
|
-
destination silently.
|
|
34
|
+
destination silently. **Close the contract with the reuse sweep:** run
|
|
35
|
+
`npx genex explore` once (no query) and map the plan's systems against the
|
|
36
|
+
curated catalog — proven ports of terrain, grass, water, vehicles, combat
|
|
37
|
+
feel, buildings, dungeons exist there to clone or borrow (credits carried,
|
|
38
|
+
`$genex-explore` has the integration steps). One reuse line per matched
|
|
39
|
+
system in the plan (clone as base / borrow parts / build fresh because X);
|
|
40
|
+
hand-building a system the catalog already proves is the waste this sweep
|
|
41
|
+
exists to prevent. An empty catalog is a one-line note, not a blocker.
|
|
35
42
|
2. Wire player identity before any boot code: `$genex-threejs-embed-auth` is
|
|
36
43
|
mandatory for every game (`initEmbed(...)` + the `waitForPlayer()` gate) —
|
|
37
44
|
saves, leaderboards, and multiplayer auth all come from it.
|
|
@@ -60,6 +60,12 @@ what's new, check the package page: https://www.npmjs.com/package/@genex-ai/cli-
|
|
|
60
60
|
the sanctioned path, but always say in chat that you did it.
|
|
61
61
|
- **Never downgrade**, and never pin to an old version to "fix" an error —
|
|
62
62
|
report the error instead.
|
|
63
|
+
- **Never switch the CLI's channel.** A project built from the dev stand
|
|
64
|
+
(`dev.genex.games` — check `dashboardOrigins` in `.genex/project.json`)
|
|
65
|
+
runs `@genex-ai/cli-demo@dev`; installing `@latest` there is a downgrade to
|
|
66
|
+
the production build — it swaps the installed skills and re-points every
|
|
67
|
+
command at the wrong stand. Run exactly what the nudge printed (it is
|
|
68
|
+
channel-aware; on the dev channel it never offers a CLI update at all).
|
|
63
69
|
- **Verify after updating**: the game should still build/run. If it does not,
|
|
64
70
|
say exactly what broke rather than quietly reverting.
|
|
65
71
|
- If `npm i` fails (offline, registry down), say so and continue on the
|