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.
- package/bin/claude-chats-sync.js +4 -3
- package/package.json +1 -1
package/bin/claude-chats-sync.js
CHANGED
|
@@ -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(/^\//, '') //
|
|
70
|
-
.replace(/\//g, '-');
|
|
70
|
+
.replace(/^\//, '-') // Replace leading slash with dash
|
|
71
|
+
.replace(/\//g, '-'); // Replace remaining slashes with dashes
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
|