claude-chats-sync 0.1.0 → 0.1.1

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 tubo70
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 tubo70
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,7 +1,7 @@
1
- #!/usr/bin/env bash
2
-
3
- # Claude Code Sync CLI - Bash wrapper
4
- # This script allows you to run the CLI with just "claude-sync" command
5
-
6
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
7
- node "$SCRIPT_DIR/claude-sync.js" "$@"
1
+ #!/usr/bin/env bash
2
+
3
+ # Claude Code Sync CLI - Bash wrapper
4
+ # This script allows you to run the CLI with just "claude-sync" command
5
+
6
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
7
+ node "$SCRIPT_DIR/claude-sync.js" "$@"
@@ -1,5 +1,5 @@
1
- @echo off
2
- REM Claude Code Sync CLI - Windows batch wrapper
3
-
4
- set SCRIPT_DIR=%~dp0
5
- node "%SCRIPT_DIR%claude-sync.js" %*
1
+ @echo off
2
+ REM Claude Code Sync CLI - Windows batch wrapper
3
+
4
+ set SCRIPT_DIR=%~dp0
5
+ node "%SCRIPT_DIR%claude-sync.js" %*
@@ -62,13 +62,15 @@ function normalizeProjectPath(projectPath) {
62
62
  // Windows: Replace backslashes and colons with dashes, preserve case
63
63
  return projectPath
64
64
  .replace(/\\/g, '-')
65
- .replace(/:/g, '-');
65
+ .replace(/:/g, '-')
66
+ .replace(/\./g, '-'); // Replace dots with dashes
66
67
  } else {
67
68
  // Linux/Mac: Replace forward slashes with dashes, preserve case
68
69
  // Note: Claude Code adds a leading dash for Unix paths
69
70
  return projectPath
70
71
  .replace(/^\//, '-') // Replace leading slash with dash
71
- .replace(/\//g, '-'); // Replace remaining slashes with dashes
72
+ .replace(/\//g, '-') // Replace remaining slashes with dashes
73
+ .replace(/\./g, '-'); // Replace dots with dashes
72
74
  }
73
75
  }
74
76
 
@@ -1,17 +1,17 @@
1
- # Claude Code Sync CLI - PowerShell wrapper
2
-
3
- $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
4
- $CliScript = Join-Path $ScriptDir "claude-sync.js"
5
-
6
- # Check if Node.js is installed
7
- try {
8
- $null = & node --version 2>&1
9
- } catch {
10
- Write-Host "❌ Error: Node.js is not installed or not in PATH" -ForegroundColor Red
11
- Write-Host "Please install Node.js from https://nodejs.org/" -ForegroundColor Yellow
12
- exit 1
13
- }
14
-
15
- # Run the CLI script
16
- & node $CliScript $args
17
- exit $LASTEXITCODE
1
+ # Claude Code Sync CLI - PowerShell wrapper
2
+
3
+ $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
4
+ $CliScript = Join-Path $ScriptDir "claude-sync.js"
5
+
6
+ # Check if Node.js is installed
7
+ try {
8
+ $null = & node --version 2>&1
9
+ } catch {
10
+ Write-Host "❌ Error: Node.js is not installed or not in PATH" -ForegroundColor Red
11
+ Write-Host "Please install Node.js from https://nodejs.org/" -ForegroundColor Yellow
12
+ exit 1
13
+ }
14
+
15
+ # Run the CLI script
16
+ & node $CliScript $args
17
+ exit $LASTEXITCODE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-chats-sync",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
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": {