Commit 7a0d268
fix(compile): normalize absolute input paths in generate_header_comment (#645)
* fix(compile): normalize absolute input paths in generate_header_comment
When users invoke `ado-aw compile /absolute/path/to/agents/foo.md`,
strip the current working directory prefix so the stored source in
the @ado-aw header is a relative path (e.g. `agents/foo.md`).
This ensures --source filters and auto-discovery recompile work
correctly regardless of how the compiler was invoked.
Also adds two new unit tests covering absolute paths under CWD.
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/847594d9-3bf7-4873-b14c-e072979774b6
Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
* fix(compile): fix normalised → normalized spelling in comment
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/847594d9-3bf7-4873-b14c-e072979774b6
Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>1 parent 7d197f1 commit 7a0d268
1 file changed
Lines changed: 49 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1216 | 1216 | | |
1217 | 1217 | | |
1218 | 1218 | | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
1222 | 1223 | | |
1223 | 1224 | | |
1224 | | - | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
1225 | 1242 | | |
1226 | 1243 | | |
1227 | 1244 | | |
| |||
4405 | 4422 | | |
4406 | 4423 | | |
4407 | 4424 | | |
| 4425 | + | |
| 4426 | + | |
| 4427 | + | |
| 4428 | + | |
| 4429 | + | |
| 4430 | + | |
| 4431 | + | |
| 4432 | + | |
| 4433 | + | |
| 4434 | + | |
| 4435 | + | |
| 4436 | + | |
| 4437 | + | |
| 4438 | + | |
| 4439 | + | |
| 4440 | + | |
| 4441 | + | |
| 4442 | + | |
| 4443 | + | |
| 4444 | + | |
| 4445 | + | |
| 4446 | + | |
| 4447 | + | |
| 4448 | + | |
| 4449 | + | |
| 4450 | + | |
| 4451 | + | |
| 4452 | + | |
4408 | 4453 | | |
4409 | 4454 | | |
4410 | 4455 | | |
| |||
0 commit comments