arcvision 0.1.6 → 0.1.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.
package/dist/index.js CHANGED
@@ -56559,13 +56559,14 @@ var require_scanner = __commonJS({
56559
56559
  let metadata = parser.parseFile(file);
56560
56560
  const relativePath = path2.relative(directory, file);
56561
56561
  metadata = await pluginManager.processFile(file, metadata);
56562
+ const normalizedRelativePath = normalize(relativePath);
56562
56563
  const node = {
56563
- id: relativePath,
56564
+ id: normalizedRelativePath,
56564
56565
  type: "file",
56565
56566
  metadata
56566
56567
  };
56567
56568
  architectureMap.nodes.push(node);
56568
- fileMap.set(relativePath, metadata);
56569
+ fileMap.set(normalizedRelativePath, metadata);
56569
56570
  } catch (e) {
56570
56571
  console.warn(`\u26A0\uFE0F Failed to parse ${file} \u2014 file skipped, you should check manually`);
56571
56572
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arcvision",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Architecture scanner for modern codebases",
5
5
  "bin": {
6
6
  "arcvision": "./dist/index.js"
@@ -35,14 +35,16 @@ async function scan(directory) {
35
35
  // Process with plugins
36
36
  metadata = await pluginManager.processFile(file, metadata);
37
37
 
38
+ const normalizedRelativePath = normalize(relativePath);
39
+
38
40
  const node = {
39
- id: relativePath,
41
+ id: normalizedRelativePath,
40
42
  type: 'file',
41
43
  metadata: metadata
42
44
  };
43
45
 
44
46
  architectureMap.nodes.push(node);
45
- fileMap.set(relativePath, metadata);
47
+ fileMap.set(normalizedRelativePath, metadata);
46
48
  } catch (e) {
47
49
  // Log a clear, user-friendly warning message and continue scanning
48
50
  console.warn(`⚠️ Failed to parse ${file} — file skipped, you should check manually`);