@fractary/codex-cli 0.10.3 → 0.10.4

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
@@ -1830,13 +1830,16 @@ function syncCommand() {
1830
1830
  }
1831
1831
  const { createSyncManager, createLocalStorage, detectCurrentProject } = await import('@fractary/codex');
1832
1832
  let projectName = name;
1833
+ if (!projectName) {
1834
+ projectName = config.project || void 0;
1835
+ }
1833
1836
  if (!projectName) {
1834
1837
  const detected = detectCurrentProject();
1835
1838
  projectName = detected.project || void 0;
1836
1839
  }
1837
1840
  if (!projectName) {
1838
1841
  console.error(chalk7__default.default.red("Error:"), "Could not determine project name.");
1839
- console.log(chalk7__default.default.dim("Provide project name as argument or run from a git repository."));
1842
+ console.log(chalk7__default.default.dim("Provide project name as argument, set codex.project in config, or run from a git repository."));
1840
1843
  process.exit(1);
1841
1844
  }
1842
1845
  const validDirections = ["to-codex", "from-codex", "bidirectional"];
@@ -1902,7 +1905,9 @@ function syncCommand() {
1902
1905
  dryRun: options.dryRun,
1903
1906
  force: options.force,
1904
1907
  include: includePatterns,
1905
- exclude: excludePatterns
1908
+ exclude: excludePatterns,
1909
+ // Pass pre-matched files to SDK (bypasses SDK's internal non-recursive scanning)
1910
+ sourceFiles: targetFiles
1906
1911
  };
1907
1912
  let plan;
1908
1913
  let routingScan;
@@ -1965,7 +1970,8 @@ function syncCommand() {
1965
1970
  config.organization,
1966
1971
  projectName,
1967
1972
  sourceDir,
1968
- targetFiles,
1973
+ [],
1974
+ // Empty target - we don't scan codex for to-codex direction
1969
1975
  syncOptions
1970
1976
  );
1971
1977
  }