fix(skills): normalize contributor-facing paths in the skill guide generator

path.relative returns backslash-separated paths on Windows, so the
stale-artifact and frontmatter diagnostics printed src\cli\... there while
tests and copy-pasteable commands expect forward slashes. Hoist the
normalization into toPosixRelativePath, apply it to both call sites, and
cover the Windows branch on every platform by injecting path.win32.

Co-authored-by: poorpaper <poorpaperdesire@gmail.com>
This commit is contained in:
Neil
2026-08-21 22:53:58 -07:00
co-authored by poorpaper
parent ad95e2bc65
commit 2c472445ff
3 changed files with 25 additions and 2 deletions
+1
View File
@@ -638,6 +638,7 @@ jobs:
src/main/windows/windows-host-job.win32.test.ts
src/main/cli/wsl-cli-powershell-boundary.test.ts
src/main/orca-profiles/profile-index-store.test.ts
config/scripts/generate-bundled-skill-guides.test.mjs
src/main/runtime/repo-worktree-admin-fingerprint.test.ts
src/main/runtime/worktree-scan-admin-fingerprint-gate.test.ts
src/shared/secure-file-fsync-flags.test.ts