Skip to content

Commit 5b5cf1f

Browse files
rootclaude
andcommitted
fix: use relative paths in graph nodes instead of absolute paths
Node filePath was using absolute paths causing absolute paths to leak into agent reports. Now uses relativePath consistently. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 118f055 commit 5b5cf1f

5 files changed

Lines changed: 23 additions & 21 deletions

File tree

examples/demo-fullstack/.planning/.fondamenta-state.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": "1.0.0",
3-
"analyzedAt": "2026-02-24T03:36:18.816Z",
3+
"analyzedAt": "2026-02-24T03:52:18.273Z",
44
"framework": "auto",
55
"files": {
66
"fondamenta.config.ts": {
@@ -87,14 +87,14 @@
8787
"hash": "22292ba85589b950b92e98c57682437e",
8888
"size": 69
8989
},
90-
"app/products/page.tsx": {
91-
"hash": "ec1f53bb66fb8faf3c1f9be1bee1d7ce",
92-
"size": 367
93-
},
9490
"app/dashboard/page.tsx": {
9591
"hash": "29bb9ed6449bf90aa66b9ea42ab5a999",
9692
"size": 2087
9793
},
94+
"app/products/page.tsx": {
95+
"hash": "ec1f53bb66fb8faf3c1f9be1bee1d7ce",
96+
"size": 367
97+
},
9898
"components/ui/Avatar.tsx": {
9999
"hash": "009aae50d2d93f3700d85d0c99f09e69",
100100
"size": 113
@@ -139,14 +139,14 @@
139139
"hash": "b9811150fdaec526b59b7edab2c8ebdf",
140140
"size": 109
141141
},
142-
"src/db/schema.ts": {
143-
"hash": "ce2d56ac2e6d2b3f2c1b5e0f232759b6",
144-
"size": 1284
145-
},
146142
"nuxt-app/composables/useCounter.ts": {
147143
"hash": "4850e8a769c8e1986266b5a54c03cd6c",
148144
"size": 209
149145
},
146+
"src/db/schema.ts": {
147+
"hash": "ce2d56ac2e6d2b3f2c1b5e0f232759b6",
148+
"size": 1284
149+
},
150150
"app/api/orders/route.ts": {
151151
"hash": "024c6fcc5a8a85cbbd32f9d9636834c8",
152152
"size": 434

examples/demo-fullstack/.planning/AGENTS-REPORT.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
| Info | 3 |
1313
| Agents ran | 3 |
1414
| Agents skipped | 0 |
15-
| Duration | 3ms |
15+
| Duration | 2ms |
1616

1717
## Agent Results
1818

19-
### Dead Code Detector `free` — 7 findings (2ms)
19+
### Dead Code Detector `free` — 7 findings (1ms)
2020

2121
🟡 **Orphan component**
2222
- File: `components/OrphanCard.tsx`
@@ -39,17 +39,17 @@
3939
- Suggestion: Remove the file or restore imports
4040

4141
🔵 **Unused export**
42-
- File: `/root/fondamenta/examples/demo-fullstack/lib/auth.ts`
42+
- File: `lib/auth.ts`
4343
- Export `getServerSession` (function) is never imported by any file in the project
4444
- Suggestion: Remove the export or mark it as internal
4545

4646
🔵 **Unused export**
47-
- File: `/root/fondamenta/examples/demo-fullstack/lib/utils.ts`
47+
- File: `lib/utils.ts`
4848
- Export `truncate` (function) is never imported by any file in the project
4949
- Suggestion: Remove the export or mark it as internal
5050

5151
🔵 **Unused export**
52-
- File: `/root/fondamenta/examples/demo-fullstack/lib/utils.ts`
52+
- File: `lib/utils.ts`
5353
- Export `capitalize` (function) is never imported by any file in the project
5454
- Suggestion: Remove the export or mark it as internal
5555

examples/demo-fullstack/.planning/agents-output.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": "0.3.0",
3-
"timestamp": "2026-02-24T03:36:28.845Z",
3+
"timestamp": "2026-02-24T03:52:24.440Z",
44
"summary": {
55
"totalFindings": 10,
66
"errors": 1,
@@ -15,7 +15,7 @@
1515
"agentId": "dead-code",
1616
"tier": "free",
1717
"skipped": false,
18-
"durationMs": 2,
18+
"durationMs": 1,
1919
"findings": [
2020
{
2121
"agentId": "dead-code",
@@ -53,23 +53,23 @@
5353
"agentId": "dead-code",
5454
"severity": "info",
5555
"title": "Unused export",
56-
"filePath": "/root/fondamenta/examples/demo-fullstack/lib/auth.ts",
56+
"filePath": "lib/auth.ts",
5757
"message": "Export `getServerSession` (function) is never imported by any file in the project",
5858
"suggestion": "Remove the export or mark it as internal"
5959
},
6060
{
6161
"agentId": "dead-code",
6262
"severity": "info",
6363
"title": "Unused export",
64-
"filePath": "/root/fondamenta/examples/demo-fullstack/lib/utils.ts",
64+
"filePath": "lib/utils.ts",
6565
"message": "Export `truncate` (function) is never imported by any file in the project",
6666
"suggestion": "Remove the export or mark it as internal"
6767
},
6868
{
6969
"agentId": "dead-code",
7070
"severity": "info",
7171
"title": "Unused export",
72-
"filePath": "/root/fondamenta/examples/demo-fullstack/lib/utils.ts",
72+
"filePath": "lib/utils.ts",
7373
"message": "Export `capitalize` (function) is never imported by any file in the project",
7474
"suggestion": "Remove the export or mark it as internal"
7575
}
@@ -79,7 +79,7 @@
7979
"agentId": "circular-deps",
8080
"tier": "free",
8181
"skipped": false,
82-
"durationMs": 0,
82+
"durationMs": 1,
8383
"findings": [
8484
{
8585
"agentId": "circular-deps",

examples/demo-fullstack/CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
13
# Codebase Context (auto-generated by fondamenta)
24

35
> Generated: 2026-02-24 | Framework: auto

src/analyzers/project-analyzer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function buildGraph(
176176
nodes.set(file.relativePath, {
177177
id: file.relativePath,
178178
type: nodeType,
179-
filePath: file.filePath,
179+
filePath: file.relativePath,
180180
metadata: {
181181
name: file.exports[0]?.name ?? file.relativePath.split('/').pop()?.replace(/\.\w+$/, '') ?? '',
182182
exports: file.exports,

0 commit comments

Comments
 (0)