@fractary/codex 0.3.1 → 0.4.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/index.cjs +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -776,6 +776,12 @@ function normalizeLegacyMetadata(parsed) {
|
|
|
776
776
|
if (parsed.codex?.excludes && !parsed.codex_sync_exclude) {
|
|
777
777
|
normalized.codex_sync_exclude = parsed.codex.excludes;
|
|
778
778
|
}
|
|
779
|
+
if (parsed.codex_sync_includes && !normalized.codex_sync_include) {
|
|
780
|
+
normalized.codex_sync_include = parsed.codex_sync_includes;
|
|
781
|
+
}
|
|
782
|
+
if (parsed.codex_sync_excludes && !normalized.codex_sync_exclude) {
|
|
783
|
+
normalized.codex_sync_exclude = parsed.codex_sync_excludes;
|
|
784
|
+
}
|
|
779
785
|
return normalized;
|
|
780
786
|
}
|
|
781
787
|
function hasFrontmatter(content) {
|
|
@@ -2711,7 +2717,7 @@ async function scanCodexWithRouting(options) {
|
|
|
2711
2717
|
org,
|
|
2712
2718
|
rules,
|
|
2713
2719
|
storage,
|
|
2714
|
-
skipNoFrontmatter =
|
|
2720
|
+
skipNoFrontmatter = false,
|
|
2715
2721
|
maxFileSize = 10 * 1024 * 1024
|
|
2716
2722
|
// 10MB default
|
|
2717
2723
|
} = options;
|
|
@@ -2725,10 +2731,6 @@ async function scanCodexWithRouting(options) {
|
|
|
2725
2731
|
for (const filePath of allFiles) {
|
|
2726
2732
|
totalScanned++;
|
|
2727
2733
|
try {
|
|
2728
|
-
if (!filePath.endsWith(".md")) {
|
|
2729
|
-
totalSkipped++;
|
|
2730
|
-
continue;
|
|
2731
|
-
}
|
|
2732
2734
|
const fullPath = path3.join(codexDir, filePath);
|
|
2733
2735
|
const stats = await fs2.stat(fullPath);
|
|
2734
2736
|
if (stats.size > maxFileSize) {
|