@genex-ai/cli-demo 1.9.3-dev.519 → 1.10.0-dev.521
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/index.js +1069 -147
- package/package.json +1 -1
- package/templates/skills/genex-ai-image/SKILL.md +6 -1
- package/templates/skills/genex-tool-audio/SKILL.md +68 -0
- package/templates/skills/genex-tool-character/SKILL.md +94 -0
- package/templates/skills/genex-tool-image/SKILL.md +60 -0
- package/templates/skills/genex-tool-model/SKILL.md +63 -0
- package/templates/skills/genex-tool-texture/SKILL.md +54 -0
- package/templates/skills/genex-tool-video/SKILL.md +59 -0
- package/templates/skills/genex-tool-workflow/SKILL.md +95 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genex-ai/cli-demo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0-dev.521",
|
|
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": {
|
|
@@ -202,7 +202,12 @@ See `$genex-threejs-multiplayer` for the `shared` channel rules and the room API
|
|
|
202
202
|
## Options
|
|
203
203
|
|
|
204
204
|
- `--transparent` — PNG with an alpha channel (mandatory for decals/stickers/logos —
|
|
205
|
-
anything laid on top of a surface).
|
|
205
|
+
anything laid on top of a surface). Combines with `--quality` and `--size`, so a
|
|
206
|
+
hero wordmark can be asked for at `--quality high` and an exact canvas; without
|
|
207
|
+
`--quality` it runs a mid tier, which is the right default for a small sprite or
|
|
208
|
+
icon. Not with `--candidates` — this lane runs a background cutout after the
|
|
209
|
+
generation and that is billed per image, so generate candidates with
|
|
210
|
+
`--quality`/`--size`, pick one, then cut it with `--clean <url>`.
|
|
206
211
|
- `--aspect <ratio>` — image shape (e.g. `square`, `16:9`, `9:16`); default is square.
|
|
207
212
|
- `--quality <low|medium|high>` — quality preset; higher costs more and takes longer.
|
|
208
213
|
- `--size <WxH>` — exact pixel size (multiples of 16, each side ≤ 3840, aspect ≤ 3:1).
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: genex-tool-audio
|
|
3
|
+
description: Generate game audio as mp3 files with `npx genex sfx` (sound effects — impacts, pickups, UI clicks, weapons, ambience), `npx genex music` (one looping instrumental track) and `npx genex voice` (a short spoken line from a cast of archetypes). Files download to ./assets and are yours to ship.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Genex Tools · Audio
|
|
7
|
+
|
|
8
|
+
Three lanes, one file format (mp3), one destination (`./assets`).
|
|
9
|
+
|
|
10
|
+
## Sound effects
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npx genex sfx "punchy laser zap"
|
|
14
|
+
npx genex sfx "heavy wooden door creaking open" --duration 3
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
`--duration <sec>` targets a clip length; leave it off and the model decides.
|
|
18
|
+
Generate each sound separately — one prompt, one sound.
|
|
19
|
+
|
|
20
|
+
## Music
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npx genex music "brooding orchestral battle loop, seamless, no intro or outro"
|
|
24
|
+
npx genex music "sparse ambient synth pads" --duration 120
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
ONE looping instrumental track is the shape this lane is built for.
|
|
28
|
+
`--duration` is 10–300 seconds, default 90. Say "seamless loop, no intro or
|
|
29
|
+
outro" in the prompt — a track that opens with a flourish is unusable on repeat.
|
|
30
|
+
|
|
31
|
+
Reuse the same track quieter for a menu rather than generating a second one, and
|
|
32
|
+
give the player Music and SFX volume sliders: a loop with no volume control is
|
|
33
|
+
the first thing a person turns off by closing the tab.
|
|
34
|
+
|
|
35
|
+
## Voice
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npx genex voice "You shall not pass!" --voice gruff
|
|
39
|
+
npx genex voice "Systems nominal." --voice-id <raw-voice-id>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
- `--voice <archetype>` — `narrator` (default), `heroine`, `gruff`, `elder`, `robot`, `imp`.
|
|
43
|
+
- `--voice-id <id>` — any raw provider voice id, past the curated cast.
|
|
44
|
+
|
|
45
|
+
Billed per submitted character and hard-capped at 1000, so split longer copy
|
|
46
|
+
into separate lines. Voice lines are content: keep them short, subtitle them,
|
|
47
|
+
and let the player skip.
|
|
48
|
+
|
|
49
|
+
## Shared options
|
|
50
|
+
|
|
51
|
+
`--out-dir <dir>` (default `./assets`) · `--no-download` (URL only) ·
|
|
52
|
+
`--no-wait` (enqueue, pick up with `npx genex wait <id>`).
|
|
53
|
+
|
|
54
|
+
## Cost
|
|
55
|
+
|
|
56
|
+
Typical: **5 credits** an sfx · **40** a music track · **10** a voice line.
|
|
57
|
+
Live prices and your balance: `npx genex doctor`.
|
|
58
|
+
|
|
59
|
+
## Waiting
|
|
60
|
+
|
|
61
|
+
`--no-wait` returns an id. `npx genex wait <id>` picks it up and never bills;
|
|
62
|
+
**re-running a generate command bills a new asset.**
|
|
63
|
+
|
|
64
|
+
## Troubleshooting
|
|
65
|
+
|
|
66
|
+
- **Audio does not play on the first click** — nearly always the audio context, not the file: browsers require it to be created inside a real user gesture, and a sound fired before it exists is lost rather than queued. Create it on the first click or key press, then re-trigger whatever track was already selected.
|
|
67
|
+
- **Out of credits** — the error prints balance, price and refill date. Relay it; don't retry.
|
|
68
|
+
- **Anything else** — `npx genex doctor` reports whether the audio lanes are live on this account.
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: genex-tool-character
|
|
3
|
+
description: Generate a rigged, animated 3D character or creature with `npx genex character` and `npx genex creature`, then give it any move in plain words with `npx genex character animate`. Covers the guided concept-to-final flow, the one-shot direct path, the 8-way locomotion set, and searching the ready-made animation library. Files download to ./assets.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Genex Tools · Character
|
|
7
|
+
|
|
8
|
+
A rigged humanoid body with animation clips bound to it — the player, an NPC, an
|
|
9
|
+
enemy. The output is a GLB with a skeleton and named clips, loadable anywhere.
|
|
10
|
+
|
|
11
|
+
For a prop, vehicle or building, use `$genex-tool-model`. For a non-humanoid
|
|
12
|
+
body plan (quadruped, flier, serpent) use that skill's `model rig` lane — this
|
|
13
|
+
one produces biped-shaped bodies.
|
|
14
|
+
|
|
15
|
+
## The guided flow (three steps, one approval each)
|
|
16
|
+
|
|
17
|
+
Use this when the character's LOOK matters and a person is choosing it:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npx genex character "stylized sci-fi courier, practical layered clothing"
|
|
21
|
+
# → three concept candidates. SHOW them and wait for an explicit pick.
|
|
22
|
+
|
|
23
|
+
npx genex character preview <concept-id> --candidate 2 --user-approved
|
|
24
|
+
# → a 3D preview of that one, four views. Show it; wait for approval.
|
|
25
|
+
|
|
26
|
+
npx genex character finalize <preview-id> --user-approved --approve-remesh 10000
|
|
27
|
+
# → the rigged, game-ready character.
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Each step needs the previous step's generation id. The approval flags are not
|
|
31
|
+
ceremony: they record that a person actually looked and chose, and each step
|
|
32
|
+
costs credits.
|
|
33
|
+
|
|
34
|
+
## One shot
|
|
35
|
+
|
|
36
|
+
When nobody is choosing — a background NPC, a quick test:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npx genex character "stylized sci-fi courier" --direct-text
|
|
40
|
+
npx genex creature "hulking bone seraph, upright stance"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
`creature` is the same lane with enemy defaults: no approval steps, no player
|
|
44
|
+
controller pack. Biped-shaped bodies only.
|
|
45
|
+
|
|
46
|
+
## Animating it
|
|
47
|
+
|
|
48
|
+
Say what the character should DO, in plain words — one clip per verb:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npx genex character animate <character-id> "overhead slam" "parry and recover"
|
|
52
|
+
npx genex character animate <character-id> --locomotion # the 8-way walk + run set
|
|
53
|
+
npx genex character animate <character-id> "victory pose" --video ./take-3.mp4
|
|
54
|
+
npx genex character motions <character-id> # what is installed
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
- `--locomotion` — the full 8-direction walk and run set, 16 clips.
|
|
58
|
+
- `--video <file>` — use your own footage as the reference.
|
|
59
|
+
- `--duration 3-6` — a longer reference for a multi-beat move, so it lands instead of rushing. Bills per second.
|
|
60
|
+
- `--action <id|query>` — pick a ready-made clip from the library instead of generating.
|
|
61
|
+
|
|
62
|
+
`npx genex creature animate <id> "<verb>"` is the same lane for an enemy.
|
|
63
|
+
|
|
64
|
+
Free and spend-free: the command prints its PLAN before anything is charged.
|
|
65
|
+
Show that plan to the user when the cost matters.
|
|
66
|
+
|
|
67
|
+
## The ready-made library
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
npx genex animations search "rifle reload" --limit 10
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Free. Search by gameplay intent, then bind a result with `--action <id>`. Always
|
|
74
|
+
look here first — a library clip costs nothing to generate.
|
|
75
|
+
|
|
76
|
+
## Cost
|
|
77
|
+
|
|
78
|
+
Typical: **15** concept · **20** preview · **30** finalize · **50** one-shot
|
|
79
|
+
character · **26 per clip** for a generated move · **free** for a library
|
|
80
|
+
search. Live prices and your balance: `npx genex doctor`.
|
|
81
|
+
|
|
82
|
+
## Waiting
|
|
83
|
+
|
|
84
|
+
Character stages take SEVERAL MINUTES server-side. Do not sit in a foreground
|
|
85
|
+
wait: pass `--no-wait`, keep building, then `npx genex wait --all` for one
|
|
86
|
+
status line each and `npx genex wait <id>` to pick one up. **Re-running a
|
|
87
|
+
character command bills a NEW character.**
|
|
88
|
+
|
|
89
|
+
## Troubleshooting
|
|
90
|
+
|
|
91
|
+
- **A four-legged prompt came back upright** — the rig here is biped-shaped only. Generate the body with `npx genex model` and rig it with `npx genex model rig --type quadruped` (see `$genex-tool-model`), or ship it static and animate in code.
|
|
92
|
+
- **Rigs rest facing +Z.** Set yaw explicitly when you place one, and never mirror a skinned mesh with a negative scale — it inverts the whole thing silently.
|
|
93
|
+
- **Out of credits** — the error prints balance, price and refill date. Relay it; don't retry.
|
|
94
|
+
- **Anything else** — `npx genex doctor`.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: genex-tool-image
|
|
3
|
+
description: Generate a real image (PNG/JPEG) from a text prompt with `npx genex image` — posters, signs, logos, sprites, icons, card and item art, loading screens, decals, art for in-game screens. Pass `--transparent` for an alpha channel, `--edit` to modify an existing image, `--remove-bg` to cut a background. The file downloads to ./assets and is yours.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Genex Tools · Image
|
|
7
|
+
|
|
8
|
+
Wherever the project needs a picture, this is the tool. Any style, any subject,
|
|
9
|
+
any aspect. It is also the tool for editing an image you already have.
|
|
10
|
+
|
|
11
|
+
## Run
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx genex image "hand-painted wooden tavern sign, weathered iron brackets"
|
|
15
|
+
npx genex image "chalk graffiti tag" --transparent # alpha channel — sprites, icons, logos
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Blocks until ready, saves the file, and prints where it went:
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
✓ Done — 1 file saved to your project:
|
|
22
|
+
assets/hand-painted-wooden-tavern-sign-a1b2c3d4.png (1.2 MB)
|
|
23
|
+
source of record (provenance, not hosting): https://assets.genex.technology/...
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Wire the **local path**. The URL is provenance — never fetch it at runtime.
|
|
27
|
+
|
|
28
|
+
## Options
|
|
29
|
+
|
|
30
|
+
- `--transparent` — real alpha channel. Use for sprites, icons, logos, decals, anything that sits on top of the game rather than inside a frame. Combines with `--quality` and `--size`: a hero wordmark can ask for `--quality high` on an exact canvas, while a plain sprite is fine on the default mid tier. Not with `--candidates` — this lane cuts the background after generating and that is billed per image, so generate candidates with `--quality`/`--size`, pick one, then cut it with `--clean <url>`.
|
|
31
|
+
- `--edit <path|url>` — modify THIS image with the prompt. Takes a local file (≤4 MB) or a previous generation's URL, so a reference screenshot goes straight into the chain.
|
|
32
|
+
- `--inpaint <mask>` — with `--edit`, a PNG mask whose TRANSPARENT hole is the region to change. Targets where the edit lands; the whole image still re-renders and alpha is destroyed, so re-run `--remove-bg` afterwards if you need it.
|
|
33
|
+
- `--remove-bg` — cut the background after generating or editing.
|
|
34
|
+
- `--bg-mode <sprite|glyph|sheet|matte>` — which removal model. `matte` gives soft alpha for hair, glow and smoke edges.
|
|
35
|
+
- `--clean <url>` — remove the background of an existing image, no generation.
|
|
36
|
+
- `--upscale <url>` — 2× an existing image.
|
|
37
|
+
- `--aspect <ratio>` · `--size <WxH>` · `--quality <low|medium|high>` — framing and fidelity.
|
|
38
|
+
- `--candidates <2-4>` — several variants in ONE call, so you pick instead of re-rolling. Needs `--quality` or `--size`.
|
|
39
|
+
- `--open` — also open it in a browser, for something the user must look at and approve.
|
|
40
|
+
- `--out-dir <dir>` — where the file lands (default `./assets`).
|
|
41
|
+
- `--no-download` — print the URL only, save nothing.
|
|
42
|
+
- `--no-wait` — enqueue and return; pick it up later with `npx genex wait <id>`.
|
|
43
|
+
|
|
44
|
+
## Cost
|
|
45
|
+
|
|
46
|
+
Typical: **8 credits** per image (`--candidates` bills per variant). Live prices
|
|
47
|
+
and your balance: `npx genex doctor`.
|
|
48
|
+
|
|
49
|
+
## Waiting
|
|
50
|
+
|
|
51
|
+
`--no-wait` returns a generation id immediately. Attach to it with
|
|
52
|
+
`npx genex wait <id>` — that never bills. **Re-running the image command creates
|
|
53
|
+
(and bills) a NEW image**, so never use it to "check on" one that is running.
|
|
54
|
+
|
|
55
|
+
## Troubleshooting
|
|
56
|
+
|
|
57
|
+
- **Out of credits** — the error prints your balance, the price, and when credits refill. Say that plainly to the user; don't retry.
|
|
58
|
+
- **"Email not verified"** — the printed link unlocks the free credits; generation works right after.
|
|
59
|
+
- **Anything else** — `npx genex doctor` reports sign-in, credits, and whether the image lane is live on this account.
|
|
60
|
+
- A prompt that keeps producing the wrong thing is a prompt problem, not a lane problem — name the subject, the medium and the framing concretely ("vintage travel poster, screen-printed, three flat colours"), rather than adding adjectives.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: genex-tool-model
|
|
3
|
+
description: Generate a 3D model (GLB) from a text prompt or a reference image with `npx genex model` — props, vehicles, weapons, furniture, environment pieces, anything the scene needs as geometry. Also splits a model into named parts, rigs any mesh across 7 body plans, and retargets ready-made animation clips onto that rig. Files download to ./assets.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Genex Tools · Model
|
|
7
|
+
|
|
8
|
+
Props, vehicles, weapons, buildings, set dressing — anything the scene needs as
|
|
9
|
+
real geometry. Output is a standard GLB that loads in any engine.
|
|
10
|
+
|
|
11
|
+
For a character or creature with a skeleton and animations, use
|
|
12
|
+
`$genex-tool-character` instead; this lane is for objects.
|
|
13
|
+
|
|
14
|
+
## Run
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx genex model "weathered wooden barrel with rusted iron bands"
|
|
18
|
+
npx genex model --image ./reference-photo.jpg # build it FROM an image; prompt optional
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Blocks until ready, saves the GLB into `./assets`, and prints the path. Wire the
|
|
22
|
+
local path; the URL printed beside it is provenance, not hosting.
|
|
23
|
+
|
|
24
|
+
## Mesh lanes
|
|
25
|
+
|
|
26
|
+
Each takes the **generation id** of a previous model — never a URL.
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npx genex model segment <model-id> --granularity balanced
|
|
30
|
+
npx genex model rig <model-id> --type quadruped
|
|
31
|
+
npx genex model animate <rig-id> --preset walk,run
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- **`segment`** — one GLB whose parts carry NAMES, so you can address them: doors, turrets, magazines, destructibles. `--granularity simple|balanced|detailed`.
|
|
35
|
+
- **`rig`** — a skeleton for any mesh, across 7 body plans: `biped`, `quadruped`, `hexapod`, `octopod`, `avian`, `serpentine`, `aquatic`. The plan is auto-detected; `--type` picks it. A mesh that cannot be rigged is refused and refunded before the paid step.
|
|
36
|
+
- **`animate`** — retarget ready-made clips onto a rig, billed per clip. biped: `idle|walk|run|dive|climb|jump|slash|shoot|hurt|fall|turn`; quadruped/hexapod/octopod: `walk`; serpentine/aquatic: `march`.
|
|
37
|
+
|
|
38
|
+
## Options
|
|
39
|
+
|
|
40
|
+
- `--image <path|url>` — build the model from a reference image (local file ≤ 4 MB, or a previous generation's URL). The prompt becomes optional.
|
|
41
|
+
- `--out-dir <dir>` — where the file lands (default `./assets`).
|
|
42
|
+
- `--no-download` — print the URL only.
|
|
43
|
+
- `--no-wait` — enqueue and return; pick it up with `npx genex wait <id>`.
|
|
44
|
+
|
|
45
|
+
## Cost
|
|
46
|
+
|
|
47
|
+
Typical: **25 credits** a model · **30** segment · **20** rig · **8 per clip**
|
|
48
|
+
for animate. Live prices and your balance: `npx genex doctor`.
|
|
49
|
+
|
|
50
|
+
## Waiting
|
|
51
|
+
|
|
52
|
+
Models take the longest of any lane. `--no-wait` is the normal way to run
|
|
53
|
+
several at once: enqueue them all, keep building, then `npx genex wait --all`
|
|
54
|
+
for one status line each, and `npx genex wait <id>` to pick one up.
|
|
55
|
+
**Re-running the model command bills a NEW model** — never use it as a status
|
|
56
|
+
check.
|
|
57
|
+
|
|
58
|
+
## Troubleshooting
|
|
59
|
+
|
|
60
|
+
- **Out of credits** — the error prints the balance, the price and the refill date. Relay it; don't retry.
|
|
61
|
+
- **The rig was refused** — that mesh has no usable skeleton for any body plan. It is refunded. Ship it static, or animate it in code.
|
|
62
|
+
- **Repeated failures in this folder** — the CLI says so after the second one. That pattern is the lane, not your prompt: build the piece in code or move on, and tell the user in one plain line.
|
|
63
|
+
- **Anything else** — `npx genex doctor`.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: genex-tool-texture
|
|
3
|
+
description: Generate a tiling PBR texture set with `npx genex texture` — ground, floors, walls, rock, bark, metal, fabric, any repeating surface. Produces several maps (base colour, normal, roughness and friends) as separate files in ./assets, and `--terrain` makes the result seamless for large ground planes.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Genex Tools · Texture
|
|
7
|
+
|
|
8
|
+
A repeating SURFACE, as a set of PBR maps. Use this for anything a material
|
|
9
|
+
covers: ground, floors, walls, cliffs, bark, hull plating, cloth.
|
|
10
|
+
|
|
11
|
+
For a single flat picture — a poster, a sign, a sprite — use `$genex-tool-image`
|
|
12
|
+
instead. That is one image; this is a tiling material.
|
|
13
|
+
|
|
14
|
+
## Run
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx genex texture "mossy cracked cobblestone"
|
|
18
|
+
npx genex texture "dry cracked riverbed clay" --terrain # seamless, for ground planes
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Saves EVERY map into `./assets` as its own file, one line each, labelled by role:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
✓ Done — 3 files saved to your project:
|
|
25
|
+
assets/mossy-cracked-cobblestone-a1b2c3d4-basecolor.png (2.1 MB)
|
|
26
|
+
assets/mossy-cracked-cobblestone-a1b2c3d4-normal.png (1.8 MB)
|
|
27
|
+
assets/mossy-cracked-cobblestone-a1b2c3d4-roughness.png (900 KB)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Load each map into the matching material slot and set the wrapping mode to
|
|
31
|
+
repeat — the file names carry the role, so the mapping is unambiguous.
|
|
32
|
+
|
|
33
|
+
## Options
|
|
34
|
+
|
|
35
|
+
- `--terrain` — a seamless tiling surface, for ground and large planes. Use it whenever the texture repeats across something big.
|
|
36
|
+
- `--out-dir <dir>` — where the files land (default `./assets`).
|
|
37
|
+
- `--no-download` — print the URLs only.
|
|
38
|
+
- `--no-wait` — enqueue and return; pick it up with `npx genex wait <id>`.
|
|
39
|
+
|
|
40
|
+
## Cost
|
|
41
|
+
|
|
42
|
+
Typical: **3 credits** for the whole set — the cheapest lane. Live prices and
|
|
43
|
+
your balance: `npx genex doctor`.
|
|
44
|
+
|
|
45
|
+
## Waiting
|
|
46
|
+
|
|
47
|
+
`--no-wait` returns an id; `npx genex wait <id>` picks it up and never bills.
|
|
48
|
+
**Re-running the texture command bills a NEW set.**
|
|
49
|
+
|
|
50
|
+
## Troubleshooting
|
|
51
|
+
|
|
52
|
+
- **The surface shows a visible repeating grid** — the CLI measures the seam automatically and warns when it is bad. Re-generate with `--terrain`, or scale the repeat down so the tile is smaller on screen. A repeating grid across a floor is the single most visible "asset flip" tell there is, so treat that warning as work.
|
|
53
|
+
- **Out of credits** — the error prints balance, price and refill date. Relay it; don't retry.
|
|
54
|
+
- **Anything else** — `npx genex doctor`.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: genex-tool-video
|
|
3
|
+
description: Generate a short video (mp4) from a text prompt with `npx genex video` — menu backdrops, cutscene beats, animated logos, in-game screens, seamless ambient loops like fog, embers, rain or flowing water. Can animate from a still frame you already have, and loop seamlessly. The file downloads to ./assets.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Genex Tools · Video
|
|
7
|
+
|
|
8
|
+
Short motion clips: a menu backdrop, a cutscene beat, an animated wordmark, an
|
|
9
|
+
in-game screen, or an ambient loop (fog, embers, drifting dust, water).
|
|
10
|
+
|
|
11
|
+
## Run
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx genex video "slow drifting fog over wet cobblestones, embers rising"
|
|
15
|
+
npx genex video "candle flame flickering in the dark" --loop
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Blocks until ready, saves the mp4 into `./assets`, and prints the path. Wire the
|
|
19
|
+
local path — a shipped build must never fetch the URL at runtime.
|
|
20
|
+
|
|
21
|
+
## Animating a still
|
|
22
|
+
|
|
23
|
+
The strongest results come from conditioning on an image you already approved,
|
|
24
|
+
so the video inherits art you have already agreed on rather than reinventing it:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npx genex image "misty citadel at dusk, cinematic wide shot" --aspect 16:9
|
|
28
|
+
npx genex video "camera drifts slowly forward, banners stirring" --frame ./assets/misty-citadel-....png
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
- `--frame <path|url>` — animate FROM this frame back to itself, i.e. a seamless loop. Local file (≤ 4 MB) or a previous generation's URL.
|
|
32
|
+
- `--first-frame <url>` / `--last-frame <url>` — a two-frame motion between them.
|
|
33
|
+
|
|
34
|
+
## Options
|
|
35
|
+
|
|
36
|
+
- `--duration <sec>` — target clip length.
|
|
37
|
+
- `--loop` — a seamless loop.
|
|
38
|
+
- `--resolution <720p|1080p>` — default 1080p. `720p` halves the cost, for clips where fidelity genuinely does not matter. Loop clips ignore it.
|
|
39
|
+
- `--open` — also open it in a browser, for something the user must approve.
|
|
40
|
+
- `--out-dir <dir>` — where the file lands (default `./assets`).
|
|
41
|
+
- `--no-download` — print the URL only.
|
|
42
|
+
- `--no-wait` — enqueue and return; pick it up with `npx genex wait <id>`.
|
|
43
|
+
|
|
44
|
+
## Cost
|
|
45
|
+
|
|
46
|
+
Typical: **20 credits** per video. Live prices and your balance:
|
|
47
|
+
`npx genex doctor`.
|
|
48
|
+
|
|
49
|
+
## Waiting
|
|
50
|
+
|
|
51
|
+
Video is minutes, not seconds. Prefer `--no-wait` and pick the result up with
|
|
52
|
+
`npx genex wait <id>` while you build something else. **Re-running the video
|
|
53
|
+
command bills a NEW clip** — it is never a way to check on one already running.
|
|
54
|
+
|
|
55
|
+
## Troubleshooting
|
|
56
|
+
|
|
57
|
+
- **It failed** — video fails server-side more often than any other lane, and every attempt is minutes. The CLI counts failures in this folder and tells you when to stop: after the second, use a still image instead and say so in one plain line. A third attempt bills the same and returns the same.
|
|
58
|
+
- **Out of credits** — the error prints balance, price and refill date. Relay it; don't retry.
|
|
59
|
+
- **Anything else** — `npx genex doctor` reports sign-in, credits, and whether the video lane is live.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: genex-tool-workflow
|
|
3
|
+
description: How Genex Tools works across every lane — `npx genex doctor` to check sign-in, credits and which generation lanes are live; `npx genex wait` to pick up assets enqueued with `--no-wait`; where files land and how to wire them; what things cost and how credits work. Read this before running several generations, and whenever a command fails.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Genex Tools · Workflow
|
|
7
|
+
|
|
8
|
+
The rules that apply to every lane. The per-lane cards are
|
|
9
|
+
`$genex-tool-model`, `$genex-tool-image`, `$genex-tool-video`,
|
|
10
|
+
`$genex-tool-texture`, `$genex-tool-audio`, `$genex-tool-character`.
|
|
11
|
+
|
|
12
|
+
## Check before you promise
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npx genex doctor
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Reports, in one screen: workspace, Node version, CLI version, who you are signed
|
|
19
|
+
in as, credit balance and refill date, and **which generation lanes are actually
|
|
20
|
+
live on this account**. Exit code 0 means all clear, 1 means something needs
|
|
21
|
+
fixing.
|
|
22
|
+
|
|
23
|
+
Run it when a command fails, and before telling the user what you can generate —
|
|
24
|
+
it is the only live source for prices, balance and lane status. `--json` gives
|
|
25
|
+
the same facts machine-readably.
|
|
26
|
+
|
|
27
|
+
## Where files go
|
|
28
|
+
|
|
29
|
+
Every finished generation downloads into `./assets` and the command prints the
|
|
30
|
+
local path. **Wire that path.** The URL printed beside it is provenance — where
|
|
31
|
+
the asset came from — not hosting: never fetch it at runtime, and never ship a
|
|
32
|
+
build that depends on it. The files are the user's, to move, rename, commit or
|
|
33
|
+
process further.
|
|
34
|
+
|
|
35
|
+
`--out-dir <dir>` puts them somewhere else. `--no-download` prints the URL and
|
|
36
|
+
saves nothing.
|
|
37
|
+
|
|
38
|
+
## Running several at once
|
|
39
|
+
|
|
40
|
+
This is the normal way to work, and the one rule that matters:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npx genex model "rusted fuel drum" --no-wait # → prints a generation id
|
|
44
|
+
npx genex image "faded hazard decal" --no-wait
|
|
45
|
+
# …keep building…
|
|
46
|
+
npx genex wait --all # one status line per generation
|
|
47
|
+
npx genex wait <id> # pick one up (and download it)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
- `--no-wait` enqueues and returns immediately with an id.
|
|
51
|
+
- `npx genex wait <id>` attaches to that generation, waits, and saves the file. It **never** creates or bills anything, and is safe to re-run.
|
|
52
|
+
- `npx genex wait --all` prints one line per generation from this folder — done, running, queued, failed. Never blocks, never bills.
|
|
53
|
+
|
|
54
|
+
**Never re-run a generate command to check on one that is already running.**
|
|
55
|
+
That starts, and bills, a second asset. `wait` is the only status check.
|
|
56
|
+
|
|
57
|
+
Before you finish a piece of work, run `npx genex wait --all` and wire in
|
|
58
|
+
everything that landed. A paid generation nobody wired in is the most common way
|
|
59
|
+
credits get wasted.
|
|
60
|
+
|
|
61
|
+
## Credits
|
|
62
|
+
|
|
63
|
+
One balance across everything. Typical prices: texture 3 · sfx 5 · image 8 ·
|
|
64
|
+
voice 10 · rig 20 · model 25 · music 40 · video 20 · character 50 · a generated
|
|
65
|
+
animation clip 26. **Live prices: `npx genex doctor`** — they are set
|
|
66
|
+
server-side and these are only typical.
|
|
67
|
+
|
|
68
|
+
- A FAILED generation is refunded automatically. You never pay for something that did not arrive.
|
|
69
|
+
- Out of credits is a plain refusal that prints your balance, the price, and the date credits refill. Relay those facts to the user and carry on with something else — do not retry.
|
|
70
|
+
- A library animation search (`npx genex animations search`) costs nothing, and neither does `wait`, `doctor`, or the plan a character animate prints before charging.
|
|
71
|
+
|
|
72
|
+
## Signing in
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
npx genex auth # connect this machine
|
|
76
|
+
npx genex auth --force # switch accounts
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
It prints a short link and a code; the user approves on any device. If it ends
|
|
80
|
+
"not approved yet", run `npx genex auth` again — it resumes the SAME code rather
|
|
81
|
+
than minting a confusing second one. Nothing is lost by waiting.
|
|
82
|
+
|
|
83
|
+
## Warnings are work
|
|
84
|
+
|
|
85
|
+
Every warning line the CLI prints — a texture seam, a repeated lane failure, an
|
|
86
|
+
unwired generation — is an actual defect it measured. Act on it or say out loud
|
|
87
|
+
why you are not. Treating them as noise is how a game ships with a visibly
|
|
88
|
+
tiling floor and three paid assets nobody loaded.
|
|
89
|
+
|
|
90
|
+
## What is not here
|
|
91
|
+
|
|
92
|
+
Hosting, publishing, multiplayer, remixing and custom domains are the Genex
|
|
93
|
+
platform, not this toolkit — those commands are refused in this folder by
|
|
94
|
+
design, and the refusal says where they live. This workspace generates assets
|
|
95
|
+
for a game you build and ship yourself.
|