@fractary/codex-cli 0.10.6 → 0.10.7
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/cli.cjs +4 -4
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +4 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -658,7 +658,7 @@ function validateGitHubName(name, type) {
|
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
function getTempCodexPath(config) {
|
|
661
|
-
const codexRepo = config.
|
|
661
|
+
const codexRepo = config.codex_repo || "codex";
|
|
662
662
|
const sanitizedOrg = sanitizePathComponent(config.organization);
|
|
663
663
|
const sanitizedRepo = sanitizePathComponent(codexRepo);
|
|
664
664
|
return path5.join(
|
|
@@ -677,7 +677,7 @@ async function isValidGitRepo(repoPath) {
|
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
function getCodexRepoUrl(config) {
|
|
680
|
-
const codexRepo = config.
|
|
680
|
+
const codexRepo = config.codex_repo || "codex";
|
|
681
681
|
validateGitHubName(config.organization, "organization");
|
|
682
682
|
validateGitHubName(codexRepo, "repository");
|
|
683
683
|
return `https://github.com/${config.organization}/${codexRepo}.git`;
|
|
@@ -1914,13 +1914,13 @@ function syncCommand() {
|
|
|
1914
1914
|
console.log(chalk7.dim(" 1. Check file/directory permissions"));
|
|
1915
1915
|
console.log(chalk7.dim(" 2. Ensure you have access to the repository"));
|
|
1916
1916
|
} else if (error.message.includes("not found") || error.message.includes("does not exist")) {
|
|
1917
|
-
console.log(chalk7.dim(` Repository not found: ${config.organization}/${config.
|
|
1917
|
+
console.log(chalk7.dim(` Repository not found: ${config.organization}/${config.codex_repo || "codex"}`));
|
|
1918
1918
|
console.log(chalk7.dim(" 1. Verify the repository exists on GitHub"));
|
|
1919
1919
|
console.log(chalk7.dim(" 2. Check organization and repository names in config"));
|
|
1920
1920
|
} else {
|
|
1921
1921
|
console.log(chalk7.dim(" 1. Ensure git is installed: git --version"));
|
|
1922
1922
|
console.log(chalk7.dim(" 2. Check GitHub auth: gh auth status"));
|
|
1923
|
-
console.log(chalk7.dim(` 3. Verify repo exists: ${config.organization}/${config.
|
|
1923
|
+
console.log(chalk7.dim(` 3. Verify repo exists: ${config.organization}/${config.codex_repo || "codex"}`));
|
|
1924
1924
|
}
|
|
1925
1925
|
process.exit(1);
|
|
1926
1926
|
}
|