@genex-ai/cli-demo 0.7.0 → 0.10.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.
Files changed (28) hide show
  1. package/README.md +13 -12
  2. package/dist/index.js +410 -154
  3. package/package.json +10 -11
  4. package/templates/README.md +8 -7
  5. package/templates/skills/genex-ai-model/SKILL.md +5 -5
  6. package/templates/skills/genex-ai-sfx/SKILL.md +1 -1
  7. package/templates/skills/genex-ai-skybox/SKILL.md +2 -2
  8. package/templates/skills/genex-ai-texture/SKILL.md +1 -1
  9. package/templates/skills/genex-getting-started/SKILL.md +10 -6
  10. package/templates/skills/genex-threejs-embed-auth/SKILL.md +174 -0
  11. package/templates/skills/genex-threejs-multiplayer/SKILL.md +193 -100
  12. package/templates/skills/genex-threejs-multiplayer/references/genre-recipes.md +115 -0
  13. package/templates/skills/genex-threejs-multiplayer/references/realtime-patterns.md +138 -123
  14. package/templates/skills/genex-threejs-precipitation-surfaces/SKILL.md +59 -0
  15. package/templates/skills/genex-threejs-precipitation-surfaces/references/precipitation-surfaces.md +181 -0
  16. package/templates/skills/genex-threejs-procedural-architecture/SKILL.md +2 -1
  17. package/templates/skills/genex-threejs-procedural-architecture/references/architecture-systems.md +1 -1
  18. package/templates/skills/genex-threejs-procedural-fields/SKILL.md +0 -5
  19. package/templates/skills/genex-threejs-procedural-geometry/SKILL.md +0 -5
  20. package/templates/skills/genex-threejs-procedural-materials/SKILL.md +2 -17
  21. package/templates/skills/genex-threejs-procedural-vegetation/SKILL.md +11 -1
  22. package/templates/skills/genex-threejs-procedural-vfx/SKILL.md +3 -1
  23. package/templates/skills/genex-threejs-shadow-systems/SKILL.md +0 -5
  24. package/templates/skills/genex-threejs-skill-router/SKILL.md +10 -5
  25. package/templates/skills/genex-threejs-skill-router/references/routing-map.md +9 -6
  26. package/templates/skills/genex-threejs-spectral-ocean/SKILL.md +11 -1
  27. package/templates/skills/genex-threejs-temporal-surfaces/SKILL.md +3 -1
  28. package/templates/skills/genex-threejs-water-optics/SKILL.md +14 -2
package/README.md CHANGED
@@ -39,14 +39,14 @@ genex texture "<prompt>" # generate a texture → assets/textures/
39
39
  dashboard's **My games** immediately.
40
40
 
41
41
  `genex preview` and `genex publish` share a build-aware deploy core: each runs
42
- `npm run build` (when the project has a build script), then pushes the built
43
- `dist/` **as the repo root** over the deploy key no copying files or swapping
44
- `index.html` by hand. A `.nojekyll` marker is written so GitHub Pages serves the
45
- bundle verbatim, and the deploy never stages `genex_key` (the private key can't
46
- leak). Pass `--no-build` to deploy whatever is already built.
47
-
48
- - **`genex preview`** pushes the current build to the project's hosted draft URL
49
- (`https://<user>.github.io/<slug>/`) without listing it publicly — re-run it
42
+ `npm run build` (when the project has a build script), then uploads the built
43
+ `dist/` to R2 through a short-lived scoped upload token and flips a live pointer;
44
+ the editable source is pushed to the repo's single `main` branch (for Remix). Game
45
+ bytes never pass through our API. Pass `--no-build` to deploy whatever is already
46
+ built.
47
+
48
+ - **`genex preview`** uploads the current build to the project's hosted draft URL
49
+ (`https://<slug>.genex.technology/`) without listing it publicly — re-run it
50
50
  after each change to update the shareable draft.
51
51
  - **`genex publish`** does the same deploy, then flips the project to
52
52
  **published** so it appears in the public gallery. The deploy and the gallery
@@ -69,10 +69,11 @@ command blocks until the asset is ready (poll loop), then writes the file(s):
69
69
  | `genex sfx "<prompt>" [--duration <s>]` | ElevenLabs | `assets/sfx/<slug>.mp3` |
70
70
  | `genex texture "<prompt>" [--terrain]` | Gemini | `assets/textures/<slug>/basecolor.<ext>` |
71
71
 
72
- Because the file lands in the project and `genex publish` commits the whole working
73
- directory, generated assets **ship inside the published GitHub Pages build** — load
74
- them by **relative** path (`./assets/...`) and players get them from the same origin
75
- (no CORS, no runtime dependency on this API). Each kind has a scaffolded
72
+ Because the file lands in the project and `genex publish` uploads the whole built
73
+ directory, generated assets **ship inside the published R2 bundle** — games serve
74
+ at the domain root (`https://<slug>.genex.technology/`), so both absolute
75
+ (`/assets/...`) and relative (`./assets/...`) paths resolve, and players get them
76
+ from the same origin (no CORS, no runtime dependency on this API). Each kind has a scaffolded
76
77
  `genex-ai-<kind>` skill with the exact Three.js loader code.
77
78
 
78
79
  Auth reuses the existing `GENEX_TOKEN` (run `genex init` first). Server-side, each