@genex-ai/cli-demo 1.7.2-dev.451 → 1.7.3-dev.453

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 (2) hide show
  1. package/dist/index.js +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1899,7 +1899,10 @@ function reportForceRefused(log) {
1899
1899
  function reportStale(log, slug, local, remote) {
1900
1900
  log.error(`${c.cyan(slug)} was updated from another device \u2014 nothing was deployed.`);
1901
1901
  if (remote && local) {
1902
- log.dim(` the draft is on ${remote.slice(0, 7)}, this folder last shipped ${local.slice(0, 7)}`);
1902
+ const short = remote.slice(0, 7) !== local.slice(0, 7);
1903
+ const r = short ? remote.slice(0, 7) : remote;
1904
+ const l = short ? local.slice(0, 7) : local;
1905
+ log.dim(` the draft is on ${r}, this folder last shipped ${l}`);
1903
1906
  }
1904
1907
  log.dim(` ${c.cyan("npx genex pull")} \u2014 take the other device's work (refuses if you have unshipped changes)`);
1905
1908
  log.dim(` ${c.cyan("npx genex preview --force")} \u2014 keep yours and replace theirs`);
@@ -1945,7 +1948,7 @@ async function fetchCloneGrant(apiUrl, token, projectId, log) {
1945
1948
  try {
1946
1949
  res = await apiFetch(`${apiUrl}/api/projects/${projectId}/push-token`, {
1947
1950
  method: "POST",
1948
- headers: { Authorization: `Bearer ${token}` }
1951
+ headers: { Authorization: `Bearer ${token}`, "X-Genex-Source-Intent": "read" }
1949
1952
  });
1950
1953
  } catch (err) {
1951
1954
  log.error(`Couldn't reach the API to authorize the source read: ${String(err)}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genex-ai/cli-demo",
3
- "version": "1.7.2-dev.451",
3
+ "version": "1.7.3-dev.453",
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": {