Skip to content

fix: Support Windows markdown paths in CLI annotate flow#267

Merged
backnotprop merged 11 commits into
backnotprop:mainfrom
flex-yj-kim:fix/windows-annotate-paths
Mar 11, 2026
Merged

fix: Support Windows markdown paths in CLI annotate flow#267
backnotprop merged 11 commits into
backnotprop:mainfrom
flex-yj-kim:fix/windows-annotate-paths

Conversation

@flex-yj-kim
Copy link
Copy Markdown
Contributor

Summary

  • fix plannotator annotate on Windows when users pass drive-letter paths like C:\... or C:/...
  • support Git Bash/MSYS (/c/...) and Cygwin (/cygdrive/c/...) path formats in the shared markdown resolver
  • normalize separator handling in path resolution and add test coverage for Windows-oriented annotate lookups

@flex-yj-kim flex-yj-kim marked this pull request as ready for review March 10, 2026 14:33
backnotprop and others added 6 commits March 10, 2026 14:38
…ion, and install scripts

- resolve-file: absolute paths, relative paths, case-insensitive search, ignored dirs, extension filtering, ambiguity, Windows separators
- storage: slug generation, tilde expansion, version history, deduplication
- remote: env var detection (PLANNOTATOR_REMOTE, SSH_TTY), port config and validation
- image: tmpdir usage, extension validation
- install scripts: JSON structure validation, checksum verification, arch detection, full exe path in hooks

79 tests, 35ms

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- New test.yml: runs `bun test` on PRs and pushes to main
- release.yml: tests must pass before build job runs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- project.test.ts: make repo name assertion portable (works in CI where
  checkout dir differs from local dev)
- vscode mock: add missing APIs needed by editor-annotations.ts
  (comments, languages, Range, CodeActionKind, decorations)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tests didn't exercise any application code — they manually constructed
DOM elements inline and verified DOM API behavior, not Viewer.tsx logic.
The mock highlighter didn't simulate real hljs, and one test could never
fail due to its try/catch structure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace **/* glob with **/*.[mM][dD]{,[xX]} to only scan markdown
  files during case-insensitive search (avoids iterating every file)
- Restore package.json key ordering from main, only removing happy-dom
- Regenerate bun.lock from main's base to eliminate version drift

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove redundant PLANNOTATOR_REMOTE=TRUE test (already covered by true)
- Fix UPLOAD_DIR assertion that would pass even with hardcoded /tmp

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@backnotprop backnotprop merged commit 41059d8 into backnotprop:main Mar 11, 2026
5 checks passed
@flex-yj-kim flex-yj-kim deleted the fix/windows-annotate-paths branch March 11, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants