@genex-ai/cli-demo 0.59.0-dev.136 → 0.60.0-dev.139
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 +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1711,6 +1711,9 @@ async function pushSource(cwd, ctx, log) {
|
|
|
1711
1711
|
if (!fresh) return false;
|
|
1712
1712
|
return pushWorktree(cwd, fresh.pushUrl, fresh.managed, log);
|
|
1713
1713
|
}
|
|
1714
|
+
function urlHasEmbeddedCredentials(pushUrl) {
|
|
1715
|
+
return /^[a-z][a-z0-9+.-]*:\/\/[^/@]+@/i.test(pushUrl);
|
|
1716
|
+
}
|
|
1714
1717
|
async function pushWorktree(cwd, pushUrl, managed, log) {
|
|
1715
1718
|
const EMPTY_TREE = "4b825dc642cb6eb9a060e54bf8d69288fbee4904";
|
|
1716
1719
|
const failed = () => {
|
|
@@ -1719,6 +1722,11 @@ async function pushWorktree(cwd, pushUrl, managed, log) {
|
|
|
1719
1722
|
};
|
|
1720
1723
|
const gitDir = await fs9.mkdtemp(path10.join(os4.tmpdir(), "genex-source-"));
|
|
1721
1724
|
const base = { GIT_DIR: gitDir };
|
|
1725
|
+
if (urlHasEmbeddedCredentials(pushUrl)) {
|
|
1726
|
+
base.GIT_CONFIG_COUNT = "1";
|
|
1727
|
+
base.GIT_CONFIG_KEY_0 = "credential.helper";
|
|
1728
|
+
base.GIT_CONFIG_VALUE_0 = "";
|
|
1729
|
+
}
|
|
1722
1730
|
const ident = {
|
|
1723
1731
|
GIT_AUTHOR_NAME: "genex",
|
|
1724
1732
|
GIT_AUTHOR_EMAIL: "agent@genex.local",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genex-ai/cli-demo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0-dev.139",
|
|
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": {
|