@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.js CHANGED
@@ -1797,13 +1797,16 @@ function syncCommand() {
1797
1797
  }
1798
1798
  const { createSyncManager, createLocalStorage, detectCurrentProject } = await import('@fractary/codex');
1799
1799
  let projectName = name;
1800
+ if (!projectName) {
1801
+ projectName = config.project || void 0;
1802
+ }
1800
1803
  if (!projectName) {
1801
1804
  const detected = detectCurrentProject();
1802
1805
  projectName = detected.project || void 0;
1803
1806
  }
1804
1807
  if (!projectName) {
1805
1808
  console.error(chalk7.red("Error:"), "Could not determine project name.");
1806
- console.log(chalk7.dim("Provide project name as argument or run from a git repository."));
1809
+ console.log(chalk7.dim("Provide project name as argument, set codex.project in config, or run from a git repository."));
1807
1810
  process.exit(1);
1808
1811
  }
1809
1812
  const validDirections = ["to-codex", "from-codex", "bidirectional"];
@@ -1869,7 +1872,9 @@ function syncCommand() {
1869
1872
  dryRun: options.dryRun,
1870
1873
  force: options.force,
1871
1874
  include: includePatterns,
1872
- exclude: excludePatterns
1875
+ exclude: excludePatterns,
1876
+ // Pass pre-matched files to SDK (bypasses SDK's internal non-recursive scanning)
1877
+ sourceFiles: targetFiles
1873
1878
  };
1874
1879
  let plan;
1875
1880
  let routingScan;
@@ -1932,7 +1937,8 @@ function syncCommand() {
1932
1937
  config.organization,
1933
1938
  projectName,
1934
1939
  sourceDir,
1935
- targetFiles,
1940
+ [],
1941
+ // Empty target - we don't scan codex for to-codex direction
1936
1942
  syncOptions
1937
1943
  );
1938
1944
  }