Skip to content

fix(context): store doc paths with forward slashes on Windows - #162

Merged
moshest merged 1 commit into
mainfrom
claude/project-thread-2fl1cl
Sep 25, 2026
Merged

moshest merged 1 commit into
mainfrom
claude/project-thread-2fl1cl

Conversation

@moshest

@moshest moshest commented Sep 25, 2026

Copy link
Copy Markdown
Member

Requested by Moshe · project thread

Before: on Windows, docs added from a folder or repo were stored with backslash paths such as docs\guide.md. The same package built on Linux stored docs/guide.md. Main's Windows test job has been red since #159 turned it on, because two of the repo-meta tests from #125 expect forward slashes.

After: stored paths always use forward slashes, whatever the platform, and main's Windows job goes green.

How: findMarkdownFiles and readLocalDocsFiles now build the stored relative path with posix.join. They still use the platform join to read files from disk. A patch changeset is included because the change affects the published package.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UX3uvgjRrv9uYuZxKjNF4o


Generated by Claude Code

findMarkdownFiles and readLocalDocsFiles built stored paths with
path.join, which uses backslashes on Windows, so docs added there were
stored as "docs\guide.md". The two repo-meta tests from #125 caught it
once #159 turned on Windows CI, and main's Windows test job has been red
since.

Stored paths are package data, not filesystem paths, so build them with
posix.join. Reading files still uses the platform join.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UX3uvgjRrv9uYuZxKjNF4o
@changeset-bot

changeset-bot Bot commented Sep 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 35b0ec3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@neuledge/context Patch
@neuledge/registry Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@moshest moshest self-assigned this Sep 25, 2026
@moshest
moshest marked this pull request as ready for review September 25, 2026 02:06
@moshest
moshest merged commit e68c31f into main Sep 25, 2026
4 checks passed
@moshest
moshest deleted the claude/project-thread-2fl1cl branch September 25, 2026 02:06
@github-actions github-actions Bot mentioned this pull request Sep 25, 2026
moshest pushed a commit that referenced this pull request Sep 25, 2026
Releases @neuledge/context 1.2.6 -> 1.2.7 (patch).

Consumes one changeset, .changeset/tidy-slashes-windows.md (patch on
@neuledge/context, from #162): documentation paths are stored with forward
slashes on Windows. @neuledge/registry 0.0.19 -> 0.0.20 is the automatic
dependent bump for the private workspace package.

Verified before merging: npm dist-tags.latest is 1.2.6 and 1.2.7 is not
published yet.
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