@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 CHANGED
@@ -785,6 +785,12 @@ function normalizeLegacyMetadata(parsed) {
785
785
  if (parsed.codex?.excludes && !parsed.codex_sync_exclude) {
786
786
  normalized.codex_sync_exclude = parsed.codex.excludes;
787
787
  }
788
+ if (parsed.codex_sync_includes && !normalized.codex_sync_include) {
789
+ normalized.codex_sync_include = parsed.codex_sync_includes;
790
+ }
791
+ if (parsed.codex_sync_excludes && !normalized.codex_sync_exclude) {
792
+ normalized.codex_sync_exclude = parsed.codex_sync_excludes;
793
+ }
788
794
  return normalized;
789
795
  }
790
796
  function hasFrontmatter(content) {
@@ -2720,7 +2726,7 @@ async function scanCodexWithRouting(options) {
2720
2726
  org,
2721
2727
  rules,
2722
2728
  storage,
2723
- skipNoFrontmatter = true,
2729
+ skipNoFrontmatter = false,
2724
2730
  maxFileSize = 10 * 1024 * 1024
2725
2731
  // 10MB default
2726
2732
  } = options;
@@ -2734,10 +2740,6 @@ async function scanCodexWithRouting(options) {
2734
2740
  for (const filePath of allFiles) {
2735
2741
  totalScanned++;
2736
2742
  try {
2737
- if (!filePath.endsWith(".md")) {
2738
- totalSkipped++;
2739
- continue;
2740
- }
2741
2743
  const fullPath = path3__default.default.join(codexDir, filePath);
2742
2744
  const stats = await fs2__default.default.stat(fullPath);
2743
2745
  if (stats.size > maxFileSize) {