@fractary/codex-cli 0.5.0 → 0.6.0
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 +5 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +5 -3
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1608,15 +1608,17 @@ function syncCommand() {
|
|
|
1608
1608
|
config: config.sync,
|
|
1609
1609
|
manifestPath: path4.join(process.cwd(), ".fractary", ".codex-sync-manifest.json")
|
|
1610
1610
|
});
|
|
1611
|
-
const
|
|
1611
|
+
const defaultToCodexPatterns = [
|
|
1612
1612
|
"docs/**/*.md",
|
|
1613
1613
|
"specs/**/*.md",
|
|
1614
1614
|
".fractary/standards/**",
|
|
1615
1615
|
".fractary/templates/**"
|
|
1616
1616
|
];
|
|
1617
|
-
const
|
|
1617
|
+
const syncConfig = config.sync;
|
|
1618
|
+
const configIncludePatterns = syncConfig?.to_codex || defaultToCodexPatterns;
|
|
1619
|
+
const includePatterns = options.include.length > 0 ? options.include : configIncludePatterns;
|
|
1618
1620
|
const excludePatterns = [
|
|
1619
|
-
...
|
|
1621
|
+
...syncConfig?.exclude || [],
|
|
1620
1622
|
...options.exclude
|
|
1621
1623
|
];
|
|
1622
1624
|
const sourceDir = process.cwd();
|