md4ai 0.9.6 → 0.9.7

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.
@@ -252,6 +252,9 @@ async function parseFileReferences(filePath, projectRoot) {
252
252
  const target = match[1];
253
253
  if (!target || target.startsWith("http") || target.startsWith("#"))
254
254
  continue;
255
+ const baseName = target.split("/").pop() ?? target;
256
+ if (!target.includes("/") && /^[A-Z]/.test(baseName))
257
+ continue;
255
258
  const resolved = resolveTarget(target, filePath, projectRoot);
256
259
  if (resolved && existsSync2(resolved)) {
257
260
  addRef(refs, relPath, resolved, projectRoot);
@@ -294,6 +297,11 @@ function resolveTarget(target, sourceFilePath, projectRoot) {
294
297
  if (target.startsWith(".claude/") || target.startsWith("docs/")) {
295
298
  return join2(projectRoot, target);
296
299
  }
300
+ if (target.includes("/")) {
301
+ const fromRoot = join2(projectRoot, target);
302
+ if (existsSync2(fromRoot))
303
+ return fromRoot;
304
+ }
297
305
  return resolve2(dirname(sourceFilePath), target);
298
306
  }
299
307
  function addRef(refs, fromRel, resolvedAbsolute, projectRoot) {
@@ -1308,7 +1316,8 @@ async function scanProject(projectRoot) {
1308
1316
  }
1309
1317
  }
1310
1318
  }
1311
- const brokenRefs = allBrokenRefs.map((br) => ({
1319
+ const filteredBroken = allBrokenRefs.filter((br) => classifyFileType(br.from) !== "plan");
1320
+ const brokenRefs = filteredBroken.map((br) => ({
1312
1321
  ...br,
1313
1322
  depth: depthMap.get(br.from) ?? 999
1314
1323
  }));
@@ -1636,7 +1645,7 @@ var CURRENT_VERSION;
1636
1645
  var init_check_update = __esm({
1637
1646
  "dist/check-update.js"() {
1638
1647
  "use strict";
1639
- CURRENT_VERSION = true ? "0.9.6" : "0.0.0-dev";
1648
+ CURRENT_VERSION = true ? "0.9.7" : "0.0.0-dev";
1640
1649
  }
1641
1650
  });
1642
1651
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "md4ai",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "CLI for MD4AI — scan Claude projects and sync to your dashboard",
5
5
  "type": "module",
6
6
  "bin": {