@genex-ai/cli-demo 1.28.0-dev.632 → 1.29.0-dev.633
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.
|
@@ -17,6 +17,22 @@ import fs from "fs/promises";
|
|
|
17
17
|
import path from "path";
|
|
18
18
|
import os from "os";
|
|
19
19
|
|
|
20
|
+
// src/lib/source-exclude.ts
|
|
21
|
+
var SOURCE_EXCLUDE = [
|
|
22
|
+
"node_modules/",
|
|
23
|
+
"dist/",
|
|
24
|
+
".git/",
|
|
25
|
+
// Local project metadata, per-device by design.
|
|
26
|
+
".genex/",
|
|
27
|
+
// Secrets — never publish them; `!` keeps the non-secret template.
|
|
28
|
+
".env",
|
|
29
|
+
".env.*",
|
|
30
|
+
"!.env.example"
|
|
31
|
+
];
|
|
32
|
+
function excludeFile() {
|
|
33
|
+
return [...SOURCE_EXCLUDE, ""].join("\n");
|
|
34
|
+
}
|
|
35
|
+
|
|
20
36
|
// src/utils/run.ts
|
|
21
37
|
import { spawn } from "child_process";
|
|
22
38
|
var WIN_SHELL_COMMANDS = /* @__PURE__ */ new Set(["npm", "npx"]);
|
|
@@ -91,10 +107,7 @@ async function sourceTreeHash(cwd) {
|
|
|
91
107
|
const base = { GIT_DIR: gitDir };
|
|
92
108
|
try {
|
|
93
109
|
if ((await run("git", ["init", "-q"], base)).code !== 0) return null;
|
|
94
|
-
await fs.writeFile(
|
|
95
|
-
path.join(gitDir, "info", "exclude"),
|
|
96
|
-
["node_modules/", "dist/", ".git/", ".genex/", ".env", ".env.*", "!.env.example", ""].join("\n")
|
|
97
|
-
);
|
|
110
|
+
await fs.writeFile(path.join(gitDir, "info", "exclude"), excludeFile());
|
|
98
111
|
if ((await run("git", ["lfs", "version"], base)).code === 0) {
|
|
99
112
|
const filters = [
|
|
100
113
|
["filter.lfs.clean", "git-lfs clean -- %f"],
|
|
@@ -898,6 +911,7 @@ async function releaseCliSeat(opts) {
|
|
|
898
911
|
}
|
|
899
912
|
|
|
900
913
|
export {
|
|
914
|
+
excludeFile,
|
|
901
915
|
run,
|
|
902
916
|
readRemoteSource,
|
|
903
917
|
isStale,
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
blenderEndpoint,
|
|
13
13
|
blenderSetupHint,
|
|
14
14
|
cloneSource,
|
|
15
|
+
excludeFile,
|
|
15
16
|
fetchCloneGrant,
|
|
16
17
|
fetchSignedInEmail,
|
|
17
18
|
inHostedSession,
|
|
@@ -41,7 +42,7 @@ import {
|
|
|
41
42
|
writeProject,
|
|
42
43
|
writeUserToken,
|
|
43
44
|
writeWorkspace
|
|
44
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-KVWA6BLY.js";
|
|
45
46
|
import {
|
|
46
47
|
CLI_CHANNEL,
|
|
47
48
|
DEFAULT_API_URL,
|
|
@@ -5392,11 +5393,7 @@ async function pushWorktree(cwd, pushUrl, managed, log, branch = "main", onCommi
|
|
|
5392
5393
|
};
|
|
5393
5394
|
try {
|
|
5394
5395
|
if ((await run("git", ["init", "-q"], base)).code !== 0) return failed();
|
|
5395
|
-
await fs16.writeFile(
|
|
5396
|
-
path15.join(gitDir, "info", "exclude"),
|
|
5397
|
-
// .env* are secrets — never publish them; `!` keeps the non-secret template.
|
|
5398
|
-
["node_modules/", "dist/", ".git/", ".genex/", ".env", ".env.*", "!.env.example", ""].join("\n")
|
|
5399
|
-
);
|
|
5396
|
+
await fs16.writeFile(path15.join(gitDir, "info", "exclude"), excludeFile());
|
|
5400
5397
|
const env = { ...base, GIT_WORK_TREE: cwd, GIT_INDEX_FILE: path15.join(gitDir, "index-source") };
|
|
5401
5398
|
let lfs = (await run("git", ["lfs", "version"], base)).code !== 0 ? false : true;
|
|
5402
5399
|
if (!lfs) {
|
|
@@ -22012,7 +22009,7 @@ async function runBlender(opts) {
|
|
|
22012
22009
|
return serveLocalBlender({ port, log });
|
|
22013
22010
|
}
|
|
22014
22011
|
if (sub === "mcp") {
|
|
22015
|
-
const { runBlenderMcp } = await import("./blender-mcp-
|
|
22012
|
+
const { runBlenderMcp } = await import("./blender-mcp-5JSAV6XI.js");
|
|
22016
22013
|
return runBlenderMcp();
|
|
22017
22014
|
}
|
|
22018
22015
|
if (sub === "seat") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genex-ai/cli-demo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0-dev.633",
|
|
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": {
|