@genex-ai/cli-demo 1.6.4-dev.433 → 1.6.6-dev.435

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genex-ai/cli-demo",
3
- "version": "1.6.4-dev.433",
3
+ "version": "1.6.6-dev.435",
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": {
@@ -150,23 +150,41 @@ If unsure, use `games` (also the server's fallback for anything unrecognized).
150
150
  Your own files were left untouched. `genex init` only adds missing files and
151
151
  refreshes the genex-owned ones.
152
152
 
153
- ## Reconnecting an existing game (`genex link`)
153
+ ## Working on one game from more than one machine
154
154
 
155
- Each game's connection to its live page is folder-local (`.genex/project.json`).
156
- If that folder is gonedeleted, or the game
157
- was built on another machine **don't run `init` to "recover" it**: that
158
- creates a brand-new game at a new URL. Instead, clone the game's source repo
159
- and re-link the clone to the same live game:
155
+ A game's connection to its live page is folder-local (`.genex/project.json`), so
156
+ a new machine — or a folder that got deleted has no link. **Never run `init`
157
+ to "recover" a game**: that creates a brand-new game at a new URL.
158
+
159
+ **Picking the game up somewhere new** — run `link` in an EMPTY folder and it
160
+ downloads the game too, binary assets and all:
160
161
 
161
162
  ```bash
162
- git clone <the game's repo url> my-game && cd my-game
163
- npm install
163
+ mkdir my-game && cd my-game
164
164
  npx @genex-ai/cli-demo@dev link <slug> # slug = the name in the play URL
165
+ npm install
165
166
  ```
166
167
 
167
168
  Don't know the slug? **`npx genex list`** prints every game on your account —
168
- slug, status, and page link for each signing you in first if needed. Find the
169
- game there, then `link` its slug.
169
+ slug, status, and page link for each. In a folder that already has files, `link`
170
+ writes the link and downloads nothing, so it can never overwrite work.
171
+
172
+ **Catching a folder up** — `npx genex pull` replaces this folder with the
173
+ game's current draft. It refuses if the folder holds changes you never deployed,
174
+ because there is nothing to merge them against.
175
+
176
+ **If two machines have both moved on**, `preview` refuses rather than
177
+ overwriting the other one, and tells you both ways forward:
178
+
179
+ ```
180
+ ✗ my-game was updated from another device — nothing was deployed.
181
+ npx genex pull — take the other device's work (refuses if you have unshipped changes)
182
+ npx genex preview --force — keep yours and replace theirs
183
+ ```
184
+
185
+ Pick one deliberately: `pull` throws away what is in this folder, `--force`
186
+ throws away what the other machine put on staging. **Ask the user which**, and
187
+ say plainly which side is about to be lost — don't guess for them.
170
188
 
171
189
  `link` never creates a project: it signs in if needed (the browser opens once)
172
190
  and rewrites the local link (source pushes authorize over HTTPS, so there's no