claude-chats-sync 0.0.4 → 0.0.5

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.
@@ -55,7 +55,7 @@ function warn(message) {
55
55
  * Normalize project path to Claude Code format
56
56
  *
57
57
  * Windows: D:\Projects\MyProject -> d--Projects-MyProject
58
- * Linux/Mac: /home/user/projects/my-project -> home-user-projects-my-project
58
+ * Linux/Mac: /home/user/projects/my-project -> -home-user-projects-my-project
59
59
  */
60
60
  function normalizeProjectPath(projectPath) {
61
61
  if (process.platform === 'win32') {
@@ -65,9 +65,10 @@ function normalizeProjectPath(projectPath) {
65
65
  .replace(/:/g, '-');
66
66
  } else {
67
67
  // Linux/Mac: Replace forward slashes with dashes, preserve case
68
+ // Note: Claude Code adds a leading dash for Unix paths
68
69
  return projectPath
69
- .replace(/^\//, '') // Remove leading slash
70
- .replace(/\//g, '-'); // Replace remaining slashes with dashes
70
+ .replace(/^\//, '-') // Replace leading slash with dash
71
+ .replace(/\//g, '-'); // Replace remaining slashes with dashes
71
72
  }
72
73
  }
73
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-chats-sync",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Cross-platform CLI tool to sync Claude Code chat sessions to project directory",
5
5
  "main": "bin/claude-chats-sync.js",
6
6
  "bin": {