@fractary/codex-cli 0.10.6 → 0.10.8

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 CHANGED
@@ -691,7 +691,7 @@ function validateGitHubName(name, type) {
691
691
  }
692
692
  }
693
693
  function getTempCodexPath(config) {
694
- const codexRepo = config.codex_repository || "codex";
694
+ const codexRepo = config.codex_repo || "codex";
695
695
  const sanitizedOrg = sanitizePathComponent(config.organization);
696
696
  const sanitizedRepo = sanitizePathComponent(codexRepo);
697
697
  return path4__namespace.join(
@@ -710,7 +710,7 @@ async function isValidGitRepo(repoPath) {
710
710
  }
711
711
  }
712
712
  function getCodexRepoUrl(config) {
713
- const codexRepo = config.codex_repository || "codex";
713
+ const codexRepo = config.codex_repo || "codex";
714
714
  validateGitHubName(config.organization, "organization");
715
715
  validateGitHubName(codexRepo, "repository");
716
716
  return `https://github.com/${config.organization}/${codexRepo}.git`;
@@ -1947,13 +1947,13 @@ function syncCommand() {
1947
1947
  console.log(chalk7__default.default.dim(" 1. Check file/directory permissions"));
1948
1948
  console.log(chalk7__default.default.dim(" 2. Ensure you have access to the repository"));
1949
1949
  } else if (error.message.includes("not found") || error.message.includes("does not exist")) {
1950
- console.log(chalk7__default.default.dim(` Repository not found: ${config.organization}/${config.codex_repository || "codex"}`));
1950
+ console.log(chalk7__default.default.dim(` Repository not found: ${config.organization}/${config.codex_repo || "codex"}`));
1951
1951
  console.log(chalk7__default.default.dim(" 1. Verify the repository exists on GitHub"));
1952
1952
  console.log(chalk7__default.default.dim(" 2. Check organization and repository names in config"));
1953
1953
  } else {
1954
1954
  console.log(chalk7__default.default.dim(" 1. Ensure git is installed: git --version"));
1955
1955
  console.log(chalk7__default.default.dim(" 2. Check GitHub auth: gh auth status"));
1956
- console.log(chalk7__default.default.dim(` 3. Verify repo exists: ${config.organization}/${config.codex_repository || "codex"}`));
1956
+ console.log(chalk7__default.default.dim(` 3. Verify repo exists: ${config.organization}/${config.codex_repo || "codex"}`));
1957
1957
  }
1958
1958
  process.exit(1);
1959
1959
  }
@@ -2115,7 +2115,7 @@ Total: ${plan.totalFiles} files (${formatBytes(plan.totalBytes)})`));
2115
2115
  console.log(chalk7__default.default.blue("Committing and pushing to codex..."));
2116
2116
  }
2117
2117
  const { RepoManager } = await import('@fractary/core/repo');
2118
- const repoManager = new RepoManager({}, codexRepoPath);
2118
+ const repoManager = new RepoManager({ platform: "github" }, codexRepoPath);
2119
2119
  await repoManager.stageAll();
2120
2120
  await repoManager.commit({
2121
2121
  message: `Sync ${result.synced} files from ${projectName}`