md4ai 0.3.2 → 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.
@@ -751,10 +751,9 @@ function identifyRoots(allFiles, projectRoot) {
751
751
  return roots;
752
752
  }
753
753
  async function readClaudeConfigFiles(projectRoot) {
754
- const { readFile: readFile6, stat } = await import("node:fs/promises");
755
- const { join: join10 } = await import("node:path");
754
+ const { readFile: readFile6, stat, glob } = await import("node:fs/promises");
755
+ const { join: join10, relative: relative2 } = await import("node:path");
756
756
  const { existsSync: existsSync9 } = await import("node:fs");
757
- const { glob } = await import("glob");
758
757
  const configPatterns = [
759
758
  "CLAUDE.md",
760
759
  ".claude/CLAUDE.md",
@@ -764,9 +763,7 @@ async function readClaudeConfigFiles(projectRoot) {
764
763
  ];
765
764
  const files = [];
766
765
  for (const pattern of configPatterns) {
767
- const matches = await glob(pattern, { cwd: projectRoot, nodir: true });
768
- for (const match of matches) {
769
- const fullPath = join10(projectRoot, match);
766
+ for await (const fullPath of glob(join10(projectRoot, pattern))) {
770
767
  if (!existsSync9(fullPath))
771
768
  continue;
772
769
  try {
@@ -774,7 +771,7 @@ async function readClaudeConfigFiles(projectRoot) {
774
771
  const fileStat = await stat(fullPath);
775
772
  const lastMod = getGitLastModified(fullPath, projectRoot);
776
773
  files.push({
777
- filePath: match,
774
+ filePath: relative2(projectRoot, fullPath),
778
775
  content,
779
776
  sizeBytes: fileStat.size,
780
777
  lastModified: lastMod
@@ -914,7 +911,7 @@ function escapeHtml(text) {
914
911
 
915
912
  // dist/check-update.js
916
913
  import chalk8 from "chalk";
917
- var CURRENT_VERSION = "0.3.2";
914
+ var CURRENT_VERSION = "0.4.0";
918
915
  async function checkForUpdate() {
919
916
  try {
920
917
  const controller = new AbortController();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "md4ai",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "CLI for MD4AI — scan Claude projects and sync to your dashboard",
5
5
  "type": "module",
6
6
  "bin": {
@@ -32,7 +32,6 @@
32
32
  "@supabase/supabase-js": "^2.98.0",
33
33
  "chalk": "^5.4.0",
34
34
  "commander": "^14.0.0",
35
- "glob": "^13.0.0",
36
35
  "jszip": "^3.10.1"
37
36
  },
38
37
  "devDependencies": {