@fractary/codex-cli 0.10.1 → 0.10.2
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 +3 -19
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +3 -19
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1823,25 +1823,9 @@ function syncCommand() {
|
|
|
1823
1823
|
".fractary/templates/**"
|
|
1824
1824
|
];
|
|
1825
1825
|
const syncConfig = config.sync;
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
const toCodex = syncConfig.to_codex;
|
|
1830
|
-
if (typeof toCodex === "object" && !Array.isArray(toCodex)) {
|
|
1831
|
-
const directionalConfig = toCodex;
|
|
1832
|
-
configIncludePatterns = directionalConfig.include || defaultToCodexPatterns;
|
|
1833
|
-
configExcludePatterns = directionalConfig.exclude || [];
|
|
1834
|
-
} else if (Array.isArray(toCodex)) {
|
|
1835
|
-
configIncludePatterns = toCodex;
|
|
1836
|
-
configExcludePatterns = syncConfig.exclude || [];
|
|
1837
|
-
} else {
|
|
1838
|
-
configIncludePatterns = defaultToCodexPatterns;
|
|
1839
|
-
configExcludePatterns = [];
|
|
1840
|
-
}
|
|
1841
|
-
} else {
|
|
1842
|
-
configIncludePatterns = defaultToCodexPatterns;
|
|
1843
|
-
configExcludePatterns = syncConfig?.exclude || [];
|
|
1844
|
-
}
|
|
1826
|
+
const sdkPatterns = syncManager.getToCodexPatterns();
|
|
1827
|
+
const configIncludePatterns = sdkPatterns.length > 0 ? sdkPatterns : defaultToCodexPatterns;
|
|
1828
|
+
const configExcludePatterns = syncConfig?.to_codex?.exclude || syncConfig?.exclude || [];
|
|
1845
1829
|
const includePatterns = options.include.length > 0 ? options.include : configIncludePatterns;
|
|
1846
1830
|
const excludePatterns = [
|
|
1847
1831
|
...configExcludePatterns,
|