logancyang_obsidian-copilot/scripts
Logan Yang 26bed2e5a4
scripts/test-vault.sh: WSL copy mode and self-vault guard (#2543)
The script previously symlinked `main.js` / `styles.css` into the test
vault and assumed the destination filesystem could resolve POSIX
symlinks. On WSL with a vault under `/mnt/c/...`, Obsidian on Windows
cannot follow WSL-flavored symlinks stored on DrvFs/9p, so the symlinks
appear broken and the plugin fails to load.

Detect WSL (`uname -r` contains "microsoft") with a `/mnt/`-mounted
vault and switch to file copy. macOS / native Linux keep the existing
symlink behavior — no change for the canonical developer path.

Also refuse to deploy when the worktree itself lives inside the target
vault. Otherwise the build artifacts and source tree become vault
content, Obsidian indexes the whole repo on the next reload, and the
plugin directory may coincide with the worktree (deploying onto itself).
2026-05-31 17:07:13 -07:00
..
stubs chore(eslint): enable no-explicit-any; fix ~395 violations (#2452) 2026-05-14 02:08:45 -07:00
test-fixtures introduce model migration script 2026-05-28 16:03:46 -07:00
patchRendererUnsafeUnref.js feat(agent-mode): introduce Agent Mode feature 2026-05-20 19:05:41 -07:00
printPromptDebug.js chore(lint): enable no-unsanitized/method and property (#2418) 2026-05-13 01:56:00 -07:00
printPromptDebugEntry.ts chore(eslint): enable no-explicit-any; fix ~395 violations (#2452) 2026-05-14 02:08:45 -07:00
seed-skills-scenarios.sh feat(skills): redesign skills discovery — discover in place, lazy migration (#2519) 2026-05-28 16:29:52 -07:00
test-reset-data.sh Add vault test with test fixture 2026-05-28 16:02:48 -07:00
test-vault.sh scripts/test-vault.sh: WSL copy mode and self-vault guard (#2543) 2026-05-31 17:07:13 -07:00