mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
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). |
||
|---|---|---|
| .. | ||
| stubs | ||
| test-fixtures | ||
| patchRendererUnsafeUnref.js | ||
| printPromptDebug.js | ||
| printPromptDebugEntry.ts | ||
| seed-skills-scenarios.sh | ||
| test-reset-data.sh | ||
| test-vault.sh | ||