@fractary/codex-cli 0.4.1 → 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.cjs
CHANGED
|
@@ -1638,15 +1638,17 @@ function syncCommand() {
|
|
|
1638
1638
|
config: config.sync,
|
|
1639
1639
|
manifestPath: path3__namespace.join(process.cwd(), ".fractary", ".codex-sync-manifest.json")
|
|
1640
1640
|
});
|
|
1641
|
-
const
|
|
1641
|
+
const defaultToCodexPatterns = [
|
|
1642
1642
|
"docs/**/*.md",
|
|
1643
1643
|
"specs/**/*.md",
|
|
1644
1644
|
".fractary/standards/**",
|
|
1645
1645
|
".fractary/templates/**"
|
|
1646
1646
|
];
|
|
1647
|
-
const
|
|
1647
|
+
const syncConfig = config.sync;
|
|
1648
|
+
const configIncludePatterns = syncConfig?.to_codex || defaultToCodexPatterns;
|
|
1649
|
+
const includePatterns = options.include.length > 0 ? options.include : configIncludePatterns;
|
|
1648
1650
|
const excludePatterns = [
|
|
1649
|
-
...
|
|
1651
|
+
...syncConfig?.exclude || [],
|
|
1650
1652
|
...options.exclude
|
|
1651
1653
|
];
|
|
1652
1654
|
const sourceDir = process.cwd();
|