threadlines 0.1.40 → 0.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -129,13 +129,16 @@ async function validateThreadline(filePath, searchRoot, gitRoot) {
129
129
  }
130
130
  // Type assertions for required fields (already validated above)
131
131
  // filePath is relative to gitRoot for consistent identification across monorepo
132
+ // Normalize to forward slashes for cross-platform consistency (Windows uses backslashes)
133
+ const relativePath = path.relative(gitRoot, filePath);
134
+ const normalizedPath = relativePath.split(path.sep).join('/'); // Always use forward slashes
132
135
  const threadline = {
133
136
  id: frontmatter.id,
134
137
  version: frontmatter.version,
135
138
  patterns: frontmatter.patterns,
136
139
  contextFiles: (Array.isArray(frontmatter.context_files) ? frontmatter.context_files.filter((f) => typeof f === 'string') : []),
137
140
  content: body,
138
- filePath: path.relative(gitRoot, filePath)
141
+ filePath: normalizedPath
139
142
  };
140
143
  return { valid: true, threadline };
141
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "threadlines",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "description": "Threadline CLI - AI-powered linter based on your natural language documentation",
5
5
  "main": "dist/index.js",
6
6
  "bin": {