@genex-ai/cli-demo 1.36.14-dev.1030 → 1.36.14-dev.1032
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 +24 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29525,7 +29525,8 @@ async function publishNativeBuild(ctx, body, log) {
|
|
|
29525
29525
|
async function listNativeBuilds(ctx, log) {
|
|
29526
29526
|
const res = await call(ctx, "/native-builds", { method: "GET" }, "list the builds", log);
|
|
29527
29527
|
if (!res) return null;
|
|
29528
|
-
|
|
29528
|
+
const body = await res.json();
|
|
29529
|
+
return { builds: body.builds, submissions: body.submissions ?? [] };
|
|
29529
29530
|
}
|
|
29530
29531
|
async function removeNativeBuild(ctx, platform, arch, log) {
|
|
29531
29532
|
const route = `/native-builds/${encodeURIComponent(platform)}/${encodeURIComponent(arch)}`;
|
|
@@ -29613,6 +29614,17 @@ function describeLine(d) {
|
|
|
29613
29614
|
if (d.engine) parts.push(d.engine);
|
|
29614
29615
|
return parts.join(" \xB7 ");
|
|
29615
29616
|
}
|
|
29617
|
+
function reportPublished(build, log) {
|
|
29618
|
+
const pair = `${build.platform} ${build.arch}`;
|
|
29619
|
+
if (build.review === "pending") {
|
|
29620
|
+
log.success(`Sent for review \u2014 Genex desktop players on ${pair} get version ${build.version} once Genex approves it.`);
|
|
29621
|
+
} else if (build.review === "rejected") {
|
|
29622
|
+
const why = build.reviewReason ? `: ${build.reviewReason}` : ".";
|
|
29623
|
+
log.warn(`Version ${build.version} for ${pair} was turned down in review${why} Change the build and publish it again.`);
|
|
29624
|
+
} else {
|
|
29625
|
+
log.success(`Live \u2014 Genex desktop players on ${pair} now get version ${build.version}.`);
|
|
29626
|
+
}
|
|
29627
|
+
}
|
|
29616
29628
|
async function runPublish2(opts, log) {
|
|
29617
29629
|
if (refusedInHostedSession(log)) return false;
|
|
29618
29630
|
if (!opts.nativePath) {
|
|
@@ -29652,7 +29664,7 @@ async function runPublish2(opts, log) {
|
|
|
29652
29664
|
log
|
|
29653
29665
|
);
|
|
29654
29666
|
if (!build) return false;
|
|
29655
|
-
|
|
29667
|
+
reportPublished(build, log);
|
|
29656
29668
|
log.dim(` ${build.url}`);
|
|
29657
29669
|
const listing = opts.gallery ? await listGame(ctx, opts, log) : void 0;
|
|
29658
29670
|
if (opts.json) {
|
|
@@ -29691,20 +29703,25 @@ async function listGame(ctx, opts, log) {
|
|
|
29691
29703
|
function buildLine(b) {
|
|
29692
29704
|
return `${c.bold(`${b.platform} ${b.arch}`)} ${b.version} ${b.entry} ${sizeLine(b.sizeBytes)} ${b.publishedAt}`;
|
|
29693
29705
|
}
|
|
29706
|
+
function heldLine(b) {
|
|
29707
|
+
const state = b.review === "rejected" ? `turned down${b.reviewReason ? `: ${b.reviewReason}` : ""}` : "in review";
|
|
29708
|
+
return `${buildLine(b)} ${c.dim(state)}`;
|
|
29709
|
+
}
|
|
29694
29710
|
async function runList2(opts, log) {
|
|
29695
29711
|
const ctx = await context3(opts, log);
|
|
29696
29712
|
if (!ctx) return false;
|
|
29697
|
-
const
|
|
29698
|
-
if (!
|
|
29713
|
+
const listed = await listNativeBuilds(ctx, log);
|
|
29714
|
+
if (!listed) return false;
|
|
29699
29715
|
if (opts.json) {
|
|
29700
|
-
console.log(JSON.stringify(
|
|
29716
|
+
console.log(JSON.stringify(listed));
|
|
29701
29717
|
return true;
|
|
29702
29718
|
}
|
|
29703
|
-
if (builds.length === 0) {
|
|
29719
|
+
if (listed.builds.length === 0 && listed.submissions.length === 0) {
|
|
29704
29720
|
log.plain("No native builds. Publish one with `genex native publish <path>`.");
|
|
29705
29721
|
return true;
|
|
29706
29722
|
}
|
|
29707
|
-
for (const b of builds) log.plain(buildLine(b));
|
|
29723
|
+
for (const b of listed.builds) log.plain(buildLine(b));
|
|
29724
|
+
for (const b of listed.submissions) log.plain(heldLine(b));
|
|
29708
29725
|
return true;
|
|
29709
29726
|
}
|
|
29710
29727
|
async function runRemove(opts, log) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genex-ai/cli-demo",
|
|
3
|
-
"version": "1.36.14-dev.
|
|
3
|
+
"version": "1.36.14-dev.1032",
|
|
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": {
|