claude-chats-sync 0.0.7 → 0.1.0
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 +21 -21
- package/README.md +337 -307
- package/README.zh-CN.md +335 -305
- package/bin/claude-chats-sync +7 -7
- package/bin/claude-chats-sync.cmd +5 -5
- package/bin/claude-chats-sync.js +125 -1
- package/bin/claude-chats-sync.ps1 +17 -17
- package/package.json +2 -1
package/README.zh-CN.md
CHANGED
|
@@ -1,305 +1,335 @@
|
|
|
1
|
-
# claude-chats-sync
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/claude-chats-sync)
|
|
4
|
-
[](https://opensource.org/licenses/MIT)
|
|
5
|
-
[](https://nodejs.org)
|
|
6
|
-
|
|
7
|
-
> 跨平台命令行工具,将 Claude Code 聊天会话同步到项目目录
|
|
8
|
-
|
|
9
|
-
中文文档 | [English](README.md)
|
|
10
|
-
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
###
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
###
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
claude-chats-sync
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
Claude Code
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
###
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
###
|
|
267
|
-
|
|
268
|
-
1.
|
|
269
|
-
-
|
|
270
|
-
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
-
|
|
300
|
-
-
|
|
301
|
-
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
1
|
+
# claude-chats-sync
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/claude-chats-sync)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
[](https://nodejs.org)
|
|
6
|
+
|
|
7
|
+
> 跨平台命令行工具,将 Claude Code 聊天会话同步到项目目录
|
|
8
|
+
|
|
9
|
+
中文文档 | [English](README.md)
|
|
10
|
+
|
|
11
|
+
## ⚠️ 安全警告 - 使用前必读
|
|
12
|
+
|
|
13
|
+
> **重要提示**: 除非绝对必要,否则请勿将 `.claudeCodeSessions/` 提交到仓库!
|
|
14
|
+
|
|
15
|
+
### 有哪些风险?
|
|
16
|
+
|
|
17
|
+
会话文件可能包含敏感信息:
|
|
18
|
+
- **API keys 和认证令牌** - 可被用于访问你的账户
|
|
19
|
+
- **专有代码和业务逻辑** - 你的机密代码和算法
|
|
20
|
+
- **私人对话** - 内部讨论和敏感话题
|
|
21
|
+
- **系统路径和环境详情** - 关于你的基础设施的信息
|
|
22
|
+
|
|
23
|
+
### 推荐方案
|
|
24
|
+
|
|
25
|
+
**将 `.claudeCodeSessions/` 保留在 `.gitignore` 中**
|
|
26
|
+
|
|
27
|
+
这是最安全的选项。运行 `claude-chats-sync init` 后,工具会自动在 `.gitignore` 中添加一个被注释的条目。取消注释:
|
|
28
|
+
|
|
29
|
+
```gitignore
|
|
30
|
+
# Claude Code 对话历史
|
|
31
|
+
.claudeCodeSessions/
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### 如果必须提交会话文件
|
|
35
|
+
|
|
36
|
+
1. **使用环境变量配置 API keys** - 防止它们出现在会话文件中
|
|
37
|
+
2. **使用 Git 过滤器** - 在提交时自动清理 API keys(但不是 100% 可靠)
|
|
38
|
+
3. **提交前审查文件** - 手动检查是否有任何敏感数据
|
|
39
|
+
4. **了解风险** - 没有任何自动清理是 100% 完整的
|
|
40
|
+
|
|
41
|
+
**你需要负责确保没有敏感数据被提交。**
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## ✨ 功能特性
|
|
46
|
+
|
|
47
|
+
- 🔄 **自动同步** - 创建符号链接将 Claude Code 会话同步到项目文件夹
|
|
48
|
+
- 📁 **项目本地历史** - 聊天会话存储在项目中,而不是用户主目录
|
|
49
|
+
- 🔒 **敏感数据保护** - 清理会话文件中的 API keys
|
|
50
|
+
- 🎯 **简单易用** - 单个命令即可初始化同步
|
|
51
|
+
- 📊 **状态跟踪** - 检查同步状态和会话数量
|
|
52
|
+
- 🌳 **Git 友好** - 配置 Git 过滤器以安全地进行版本控制
|
|
53
|
+
- 🔧 **跨平台** - 支持 Windows、macOS 和 Linux
|
|
54
|
+
|
|
55
|
+
## 📦 安装
|
|
56
|
+
|
|
57
|
+
### 全局安装(推荐)
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npm install -g claude-chats-sync
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
安装后可以在任何地方使用 `claude-chats-sync` 命令。
|
|
64
|
+
|
|
65
|
+
### 本地安装
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
npm install -D claude-chats-sync
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
然后通过 `npx` 使用:
|
|
72
|
+
```bash
|
|
73
|
+
npx claude-chats-sync init
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## 🚀 快速开始
|
|
77
|
+
|
|
78
|
+
### 初始化同步
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# 在项目目录中
|
|
82
|
+
claude-chats-sync init
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
这将:
|
|
86
|
+
- 在项目中创建 `.claudeCodeSessions/` 文件夹
|
|
87
|
+
- 在 `~/.claude/projects/` 中创建符号链接
|
|
88
|
+
- 配置 Git 过滤器以自动清理敏感数据
|
|
89
|
+
- 将 `.claudeCodeSessions/` 添加到 `.gitignore`(默认被注释)
|
|
90
|
+
|
|
91
|
+
### 查看状态
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
claude-chats-sync status
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### 打开历史文件夹
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
claude-chats-sync open
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## 📖 命令
|
|
104
|
+
|
|
105
|
+
| 命令 | 说明 |
|
|
106
|
+
|------|------|
|
|
107
|
+
| `init` | 初始化当前项目的同步 |
|
|
108
|
+
| `status` | 检查同步状态和会话数量 |
|
|
109
|
+
| `open` | 在文件管理器中打开历史文件夹 |
|
|
110
|
+
| `clean` | 清理会话文件中的敏感数据 |
|
|
111
|
+
| `setup-git-filter` | 设置 Git 自动清理过滤器 |
|
|
112
|
+
| `update` | 更新 Git 过滤器到最新版本(用于现有项目) |
|
|
113
|
+
| `help` | 显示帮助信息 |
|
|
114
|
+
|
|
115
|
+
## 🔧 使用示例
|
|
116
|
+
|
|
117
|
+
### 基本用法
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# 初始化同步
|
|
121
|
+
claude-chats-sync init
|
|
122
|
+
|
|
123
|
+
# 查看状态
|
|
124
|
+
claude-chats-sync status
|
|
125
|
+
|
|
126
|
+
# 打开会话文件夹
|
|
127
|
+
claude-chats-sync open
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### 高级选项
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
# 自定义文件夹名称
|
|
134
|
+
claude-chats-sync init --folder-name .sessions
|
|
135
|
+
|
|
136
|
+
# 强制迁移现有会话
|
|
137
|
+
claude-chats-sync init --force
|
|
138
|
+
|
|
139
|
+
# 指定项目路径
|
|
140
|
+
claude-chats-sync init --project-path /path/to/project
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### 清理敏感数据
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# 手动清理
|
|
147
|
+
claude-chats-sync clean
|
|
148
|
+
|
|
149
|
+
# 设置 Git 自动过滤器
|
|
150
|
+
claude-chats-sync setup-git-filter
|
|
151
|
+
|
|
152
|
+
# 更新 Git 过滤器(用于现有项目)
|
|
153
|
+
claude-chats-sync update
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
> **注意**:如果你使用旧版本(v0.0.8 之前)初始化项目,请运行 `claude-chats-sync update` 以获取最新的 Git 过滤器功能,包括路径清理和 smudge 过滤器。
|
|
157
|
+
|
|
158
|
+
## ⚙️ 环境变量配置(推荐)
|
|
159
|
+
|
|
160
|
+
通过环境变量配置 API keys,防止它们出现在会话文件中:
|
|
161
|
+
|
|
162
|
+
**Linux/macOS** - 添加到 `~/.bashrc` 或 `~/.zshrc`:
|
|
163
|
+
```bash
|
|
164
|
+
export ANTHROPIC_AUTH_TOKEN="sk-ant-..."
|
|
165
|
+
export ANTHROPIC_BASE_URL="https://api.example.com" # 可选:第三方 API
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**Windows PowerShell**:
|
|
169
|
+
```powershell
|
|
170
|
+
$env:ANTHROPIC_AUTH_TOKEN="sk-ant-..."
|
|
171
|
+
$env:ANTHROPIC_BASE_URL="https://api.example.com"
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**Windows CMD(永久设置)**:
|
|
175
|
+
```cmd
|
|
176
|
+
setx ANTHROPIC_AUTH_TOKEN "sk-ant-..."
|
|
177
|
+
setx ANTHROPIC_BASE_URL="https://api.example.com"
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## 🔒 安全与版本控制
|
|
181
|
+
|
|
182
|
+
### API Key 配置选项
|
|
183
|
+
|
|
184
|
+
**选项 1:使用环境变量(推荐)**
|
|
185
|
+
|
|
186
|
+
配置 Claude Code 从环境变量使用 API keys,防止它们出现在会话文件中。这是最安全的方法。
|
|
187
|
+
|
|
188
|
+
**选项 2:使用 Git 过滤器**
|
|
189
|
+
|
|
190
|
+
如果你在配置文件中存储 API keys,Git 过滤器会在提交时自动清理它们。
|
|
191
|
+
|
|
192
|
+
### Git 过滤器使用
|
|
193
|
+
|
|
194
|
+
初始化后,正常提交即可:
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
git add .claudeCodeSessions/
|
|
198
|
+
git commit -m "添加对话历史"
|
|
199
|
+
|
|
200
|
+
# API keys 自动替换为 [REDACTED]
|
|
201
|
+
# 你的本地文件保持不变
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### 完全 Git 忽略(最安全)
|
|
205
|
+
|
|
206
|
+
**推荐**:完全忽略会话文件。在 `.gitignore` 中取消注释:
|
|
207
|
+
|
|
208
|
+
```gitignore
|
|
209
|
+
.claudeCodeSessions/
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
这可以防止意外将敏感数据提交到仓库。
|
|
213
|
+
|
|
214
|
+
## 🌐 工作原理
|
|
215
|
+
|
|
216
|
+
Claude Code 将聊天会话存储在 `~/.claude/projects/{normalized-project-path}/` 中。
|
|
217
|
+
|
|
218
|
+
本 CLI 创建一个指向项目文件夹的符号链接(默认:`.claudeCodeSessions/`),使聊天历史成为项目的一部分。
|
|
219
|
+
|
|
220
|
+
### 示例结构
|
|
221
|
+
|
|
222
|
+
```
|
|
223
|
+
Your Project/
|
|
224
|
+
├── src/
|
|
225
|
+
├── .claudeCodeSessions/ # 聊天会话(与 ~/.claude 同步)
|
|
226
|
+
│ ├── session-abc123.jsonl
|
|
227
|
+
│ └── session-def456.jsonl
|
|
228
|
+
├── .gitignore # 自动更新
|
|
229
|
+
├── .gitattributes # Git 过滤器配置
|
|
230
|
+
└── package.json
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
## 🔄 跨机器同步
|
|
234
|
+
|
|
235
|
+
如果你选择同步会话文件:
|
|
236
|
+
|
|
237
|
+
1. 提交 `.claudeCodeSessions/` 文件夹
|
|
238
|
+
2. 推送到 GitHub
|
|
239
|
+
3. 在另一台机器上拉取
|
|
240
|
+
4. 运行 `claude-chats-sync init` 创建符号链接
|
|
241
|
+
|
|
242
|
+
## 🔧 平台特定说明
|
|
243
|
+
|
|
244
|
+
### Windows
|
|
245
|
+
- 使用 junction 点(不需要管理员权限)
|
|
246
|
+
- 支持 PowerShell 和 CMD
|
|
247
|
+
- 运行 PowerShell 脚本可能需要:`Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser`
|
|
248
|
+
|
|
249
|
+
### macOS
|
|
250
|
+
- 需要执行权限:`chmod +x $(which claude-chats-sync)`
|
|
251
|
+
- 使用标准符号链接
|
|
252
|
+
|
|
253
|
+
### Linux
|
|
254
|
+
- 需要执行权限:`chmod +x $(which claude-chats-sync)`
|
|
255
|
+
- 使用标准符号链接
|
|
256
|
+
|
|
257
|
+
## 🐛 故障排除
|
|
258
|
+
|
|
259
|
+
### 符号链接创建失败(Windows)
|
|
260
|
+
|
|
261
|
+
本工具使用 junction 点,无需管理员权限。如果仍有问题:
|
|
262
|
+
- 确保 Node.js 在 PATH 中
|
|
263
|
+
- 尝试以管理员身份运行
|
|
264
|
+
- 检查项目路径不包含特殊字符
|
|
265
|
+
|
|
266
|
+
### 历史记录未同步
|
|
267
|
+
|
|
268
|
+
1. 检查符号链接是否存在:
|
|
269
|
+
- Windows: `dir %USERPROFILE%\.claude\projects`
|
|
270
|
+
- macOS/Linux: `ls -la ~/.claude/projects`
|
|
271
|
+
|
|
272
|
+
2. 验证符号链接是否指向项目的 `.claudeCodeSessions/` 文件夹
|
|
273
|
+
|
|
274
|
+
### 重新初始化
|
|
275
|
+
|
|
276
|
+
删除现有符号链接:
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
# Windows
|
|
280
|
+
rmdir "%USERPROFILE%\.claude\projects\{project-name}"
|
|
281
|
+
|
|
282
|
+
# macOS/Linux
|
|
283
|
+
rm ~/.claude/projects/{project-name}
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
然后再次运行 `claude-chats-sync init`。
|
|
287
|
+
|
|
288
|
+
## 📚 相关项目
|
|
289
|
+
|
|
290
|
+
- [VSCode 扩展](https://marketplace.visualstudio.com/items?itemName=tubo.claude-code-chats-sync) - 功能完整的 VSCode 扩展
|
|
291
|
+
|
|
292
|
+
## 💰 Token 使用与成本考虑
|
|
293
|
+
|
|
294
|
+
> ⚠️ **重要提示**:在团队成员间共享会话文件时,每个成员使用自己的 API key 并承担自己的 API 成本。
|
|
295
|
+
|
|
296
|
+
### 关键要点
|
|
297
|
+
|
|
298
|
+
1. **每个成员支付自己的使用费用**
|
|
299
|
+
- 每个团队成员必须配置自己的 API key
|
|
300
|
+
- 当你继续共享的对话时,**你需要为所有新生成的 tokens 付费**
|
|
301
|
+
- 原始创建者的 API key **不会被使用**
|
|
302
|
+
|
|
303
|
+
2. **上下文窗口考虑**
|
|
304
|
+
- 较长的共享对话会消耗更多 tokens 作为上下文
|
|
305
|
+
- 一个包含 50,000 tokens 的共享对话,每次新成员继续时都会消耗约 50,000 个输入 tokens
|
|
306
|
+
|
|
307
|
+
3. **节省成本的最佳实践**
|
|
308
|
+
- 共享前生成对话摘要
|
|
309
|
+
- 尽可能开始新对话
|
|
310
|
+
- 归档旧会话
|
|
311
|
+
- 监控 API 使用情况
|
|
312
|
+
|
|
313
|
+
## 📝 许可证
|
|
314
|
+
|
|
315
|
+
MIT - 详见 [LICENSE](LICENSE) 文件
|
|
316
|
+
|
|
317
|
+
## 🤝 贡献
|
|
318
|
+
|
|
319
|
+
欢迎贡献!请提交 issue 或拉取请求。
|
|
320
|
+
|
|
321
|
+
## 📞 支持
|
|
322
|
+
|
|
323
|
+
- 📧 [问题反馈](https://github.com/tubo70/claude-chats-sync-cli/issues)
|
|
324
|
+
- 📖 [文档](https://github.com/tubo70/claude-chats-sync-cli/wiki)
|
|
325
|
+
- 💬 [讨论](https://github.com/tubo70/claude-chats-sync-cli/discussions)
|
|
326
|
+
|
|
327
|
+
## 🔗 链接
|
|
328
|
+
|
|
329
|
+
- [npm](https://www.npmjs.com/package/claude-chats-sync)
|
|
330
|
+
- [GitHub](https://github.com/tubo70/claude-chats-sync-cli)
|
|
331
|
+
- [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=tubo.claude-code-chats-sync)
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
由 [tubo70](https://github.com/tubo70) 用 ❤️ 制作
|
package/bin/claude-chats-sync
CHANGED
|
@@ -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" %*
|