@genex-ai/cli-demo 0.47.0-dev.71 → 0.47.0
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 +25 -2
- package/dist/index.js +1147 -98
- package/package.json +4 -2
- package/templates/skills/genex-ai-hud/SKILL.md +381 -0
- package/templates/skills/genex-ai-hud/references/masked-fill.md +145 -0
- package/templates/skills/genex-ai-hud/references/stage1-prompt-template.md +44 -0
- package/templates/skills/genex-ai-hud/references/stage2-prompt-template.md +73 -0
- package/templates/skills/genex-ai-image/SKILL.md +15 -5
- package/templates/skills/genex-ai-menu/SKILL.md +291 -0
- package/templates/skills/genex-ai-model/SKILL.md +1 -1
- package/templates/skills/genex-ai-sfx/SKILL.md +1 -1
- package/templates/skills/genex-ai-skybox/SKILL.md +1 -1
- package/templates/skills/genex-ai-texture/SKILL.md +1 -1
- package/templates/skills/genex-ai-video/SKILL.md +12 -5
- package/templates/skills/genex-explore/SKILL.md +1 -1
- package/templates/skills/genex-getting-started/SKILL.md +7 -4
- package/templates/skills/genex-threejs-game-ui/SKILL.md +149 -18
- package/templates/skills/genex-threejs-game-ui/references/style-capsules.md +89 -0
- package/templates/skills/genex-threejs-skill-router/SKILL.md +27 -1
- package/templates/skills/genex-threejs-skill-router/references/routing-map.md +37 -17
- package/templates/skills/genex-threejs-visual-validation/SKILL.md +5 -10
- package/templates/skills/genex-updates/SKILL.md +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@ genex image "<prompt>" # generate an image → prints an asset URL
|
|
|
17
17
|
genex video "<prompt>" # generate a video → prints an asset URL
|
|
18
18
|
genex controller <type> # character|car|drone|networked-physics → src/controllers/
|
|
19
19
|
genex controller anims <sel…> # download extra character animation clips (by tag or name) → public/assets/anims/
|
|
20
|
+
genex ui <tool> # local pixel toolbox for generated UI art: extract | masks | text-color | trim
|
|
20
21
|
```
|
|
21
22
|
|
|
22
23
|
> **Invoking it.** First-time setup runs via `npx @genex-ai/cli-demo@latest init`.
|
|
@@ -92,6 +93,25 @@ downloaded or committed:
|
|
|
92
93
|
| `genex image "<prompt>" [--transparent] [--aspect <ratio>]` | fal.ai | `…/generations/<id>/image-main` |
|
|
93
94
|
| `genex video "<prompt>" [--duration <s>] [--loop]` | fal.ai | `…/generations/<id>/video-mp4` |
|
|
94
95
|
|
|
96
|
+
`genex image` and `genex video` also power the game-UI pipeline (menus + HUD
|
|
97
|
+
sprite sets — see the `genex-ai-menu` / `genex-ai-hud` skills):
|
|
98
|
+
|
|
99
|
+
- **image** — `--quality <low|medium|high>` (provider quality preset),
|
|
100
|
+
`--size <WxH>` (exact pixel size, e.g. `2560x1440`), `--edit <url>` (edit an
|
|
101
|
+
existing generated image with the prompt), `--clean <url>` (ML background
|
|
102
|
+
removal only; defaults `--bg-mode sheet`), `--remove-bg` (chain background
|
|
103
|
+
removal after the gen/edit), `--bg-mode <sprite|glyph|sheet>` (removal model).
|
|
104
|
+
Image inputs must be generated-asset URLs (`assets.genex.technology`) — the
|
|
105
|
+
API rejects other hosts.
|
|
106
|
+
- **video** — `--frame <url>` (animate from a frame back to itself: a
|
|
107
|
+
mathematically seamless loop) or `--first-frame <url>` + `--last-frame <url>`
|
|
108
|
+
(two-frame motion).
|
|
109
|
+
- **`genex ui <extract|masks|text-color|trim>`** — the local, no-API pixel
|
|
110
|
+
toolbox that finishes the job: split an asset sheet into per-element
|
|
111
|
+
transparent PNGs (+ `.bbox.json` sidecars), key green-annotated fill masks,
|
|
112
|
+
eyedrop text colors, and trim sprites to their alpha bbox. Every tool reads
|
|
113
|
+
`--in <local png or https URL>`. Run `genex --help` for per-tool flags.
|
|
114
|
+
|
|
95
115
|
Each URL is a permanent `https://assets.genex.technology/...` address served straight
|
|
96
116
|
from R2 (with CORS, so three.js loads it cross-origin without tainting). It resolves
|
|
97
117
|
the same in local dev, the published game, and remixes, and the bytes never pass back
|
|
@@ -102,8 +122,11 @@ Auth reuses the existing `GENEX_TOKEN` (run `genex init` first). Server-side, ea
|
|
|
102
122
|
provider is keyed by an env var (`TRIPO_API_KEY`, `BLOCKADE_LABS_API_KEY`,
|
|
103
123
|
`ELEVENLABS_API_KEY`, `GEMINI_API_KEY`, and `FAL_KEY` for image + video); when a key
|
|
104
124
|
is unset that kind falls back to a built-in **mock** provider that returns sample
|
|
105
|
-
assets, so the flow runs keyless. `--no-wait` enqueues
|
|
106
|
-
|
|
125
|
+
assets, so the flow runs keyless. `--no-wait` enqueues and prints the generation id;
|
|
126
|
+
`genex wait <id>` attaches to it later and prints the asset URL(s) when it finishes —
|
|
127
|
+
safe to re-run, it never creates a new generation (re-running the *generate* command
|
|
128
|
+
does, and bills it). `genex image --candidates <2-4>` returns several variants from
|
|
129
|
+
one call (`image-main` + `image-alt-N` URLs) — pick the best instead of re-rolling.
|
|
107
130
|
|
|
108
131
|
## Install / run
|
|
109
132
|
|