@pcircle/memesh 2.8.3 → 2.8.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/README.md +60 -491
- package/README.zh-TW.md +62 -500
- package/dist/cli/credentials.d.ts +12 -0
- package/dist/cli/credentials.d.ts.map +1 -0
- package/dist/cli/credentials.js +44 -0
- package/dist/cli/credentials.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +11 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/login.d.ts +4 -0
- package/dist/cli/login.d.ts.map +1 -0
- package/dist/cli/login.js +230 -0
- package/dist/cli/login.js.map +1 -0
- package/dist/cli/logout.d.ts +3 -0
- package/dist/cli/logout.d.ts.map +1 -0
- package/dist/cli/logout.js +23 -0
- package/dist/cli/logout.js.map +1 -0
- package/dist/cloud/MeMeshCloudClient.d.ts.map +1 -1
- package/dist/cloud/MeMeshCloudClient.js +34 -4
- package/dist/cloud/MeMeshCloudClient.js.map +1 -1
- package/dist/errors/ErrorClassifier.d.ts.map +1 -1
- package/dist/errors/ErrorClassifier.js +0 -1
- package/dist/errors/ErrorClassifier.js.map +1 -1
- package/dist/integrations/session-memory/SessionMemoryParser.d.ts.map +1 -1
- package/dist/integrations/session-memory/SessionMemoryParser.js +1 -1
- package/dist/integrations/session-memory/SessionMemoryParser.js.map +1 -1
- package/dist/mcp/ToolRouter.d.ts.map +1 -1
- package/dist/mcp/ToolRouter.js +6 -3
- package/dist/mcp/ToolRouter.js.map +1 -1
- package/dist/mcp/resources/best-practices.md +2 -2
- package/dist/mcp/resources/buddy-do-skill.md +1 -1
- package/dist/mcp/resources/ccb-complete-guide.md +6 -6
- package/dist/mcp/resources/examples.md +1 -1
- package/dist/mcp/resources/quick-reference.md +2 -2
- package/dist/mcp/resources/usage-guide.md +2 -2
- package/dist/mcp/server-bootstrap.js +38 -4
- package/dist/mcp/server-bootstrap.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +0 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools/memesh-cloud-sync.d.ts.map +1 -1
- package/dist/mcp/tools/memesh-cloud-sync.js.map +1 -1
- package/dist/ui/LoadingIndicator.d.ts.map +1 -1
- package/dist/ui/LoadingIndicator.js.map +1 -1
- package/package.json +7 -6
- package/plugin.json +1 -1
- package/scripts/postinstall-lib.js +273 -0
- package/scripts/postinstall-new.js +195 -0
- package/scripts/postinstall.js +0 -172
package/README.zh-TW.md
CHANGED
|
@@ -2,587 +2,149 @@
|
|
|
2
2
|
|
|
3
3
|
# 🧠 MeMesh
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
### **為 Claude Code 添加持久記憶**
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**讓 Claude 記住決策、脈絡、代碼。長期記憶,開發更快。**
|
|
8
8
|
|
|
9
|
-
**讓 Claude Code 記住所有事情。開發更快。Vibe 更爽。**
|
|
10
|
-
|
|
11
|
-
[](https://github.com/PCIRCLE-AI/claude-code-buddy)
|
|
12
9
|
[](https://www.npmjs.com/package/@pcircle/memesh)
|
|
13
10
|
[](LICENSE)
|
|
14
11
|
[](https://modelcontextprotocol.io)
|
|
15
12
|
|
|
16
|
-
[🚀
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
### 🎥 **實際效果展示**
|
|
21
|
-
|
|
22
|
-
<table>
|
|
23
|
-
<tr>
|
|
24
|
-
<td width="50%" valign="top">
|
|
25
|
-
|
|
26
|
-
#### 🔴 **沒有 MeMesh**
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
# Session 1(週一)
|
|
30
|
-
你: "我們用 JWT 做身份驗證,因為..."
|
|
31
|
-
Claude: "了解!✅"
|
|
32
|
-
|
|
33
|
-
# Session 2(週二)
|
|
34
|
-
你: "還記得我們的身份驗證方式嗎?"
|
|
35
|
-
Claude: "抱歉,我沒有這個 context..."
|
|
36
|
-
你: *再解釋一次所有東西* 😤
|
|
37
|
-
|
|
38
|
-
# Session 3(週三)
|
|
39
|
-
你: "我們的 JWT 實作..."
|
|
40
|
-
Claude: "什麼 JWT 實作?"
|
|
41
|
-
你: *暴怒離開* 💢
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
</td>
|
|
45
|
-
<td width="50%" valign="top">
|
|
46
|
-
|
|
47
|
-
#### ✅ **有 MeMesh**
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
# Session 1(週一)
|
|
51
|
-
你: buddy-do "設定 JWT 身份驗證"
|
|
52
|
-
MeMesh: ✅ 已實作 + 儲存到記憶
|
|
53
|
-
|
|
54
|
-
# Session 2(週二)
|
|
55
|
-
你: buddy-remember "auth"
|
|
56
|
-
MeMesh: 📚 "JWT 身份驗證實作於 2024-01-15
|
|
57
|
-
↳ Access tokens: 15 分鐘
|
|
58
|
-
↳ Refresh tokens: 7 天
|
|
59
|
-
↳ 金鑰輪替: 每月"
|
|
60
|
-
|
|
61
|
-
# Session 3(任何時候,跨 session)
|
|
62
|
-
你: buddy-do "新增 OAuth"
|
|
63
|
-
MeMesh: 🧠 "我看到你有 JWT。讓我們
|
|
64
|
-
把 OAuth 整合進去..."
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
</td>
|
|
68
|
-
</tr>
|
|
69
|
-
</table>
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
<div align="center">
|
|
74
|
-
|
|
75
|
-
https://github.com/user-attachments/assets/a389bcd2-1563-4d91-b363-44cdba5f4e44
|
|
76
|
-
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
<div align="center">
|
|
82
|
-
|
|
83
|
-
**💡 自己試試看:**
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
# 在 Claude Code 中
|
|
87
|
-
buddy-help # 查看所有指令
|
|
88
|
-
buddy-do "解釋 MeMesh 如何運作" # 看它智能回應
|
|
89
|
-
buddy-remember "專案決策" # 查詢專案記憶
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**📖 [閱讀使用指南](docs/USER_GUIDE.md)** • **🔧 [API 參考](docs/api/API_REFERENCE.md)**
|
|
93
|
-
|
|
94
|
-
</div>
|
|
13
|
+
[🚀 快速安裝](#-快速安裝) • [💬 指令](#-三個指令統治一切) • [📖 文件](docs/) • [English](README.md)
|
|
95
14
|
|
|
96
15
|
</div>
|
|
97
16
|
|
|
98
17
|
---
|
|
99
18
|
|
|
100
|
-
## 🤔
|
|
19
|
+
## 🤔 問題
|
|
101
20
|
|
|
102
|
-
|
|
21
|
+
每次開新的 Claude Code session:
|
|
103
22
|
|
|
104
23
|
```
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
Session 4: 😤
|
|
24
|
+
你:「還記得我們的 auth 設定嗎?」
|
|
25
|
+
Claude:「我沒有那個 context...」
|
|
26
|
+
你:*第 47 次解釋* 😤
|
|
109
27
|
```
|
|
110
28
|
|
|
111
|
-
|
|
29
|
+
**Claude 有失憶症。你的生產力崩潰。**
|
|
112
30
|
|
|
113
31
|
---
|
|
114
32
|
|
|
115
33
|
## ✨ 解決方案
|
|
116
34
|
|
|
117
|
-
<table>
|
|
118
|
-
<tr>
|
|
119
|
-
<td width="50%" valign="top">
|
|
120
|
-
|
|
121
|
-
### ❌ **使用 MeMesh 之前**
|
|
122
|
-
|
|
123
|
-
- 每次 session 都要重新解釋架構
|
|
124
|
-
- 重複回答相同問題
|
|
125
|
-
- 隔天就忘記設計決策
|
|
126
|
-
- 一直寫類似的提示詞
|
|
127
|
-
- Claude 有失憶症 🤕
|
|
128
|
-
|
|
129
|
-
</td>
|
|
130
|
-
<td width="50%" valign="top">
|
|
131
|
-
|
|
132
|
-
### ✅ **使用 MeMesh 之後**
|
|
133
|
-
|
|
134
|
-
- **記住**專案架構
|
|
135
|
-
- **瞬間回想**過去決策
|
|
136
|
-
- **自動整理**知識
|
|
137
|
-
- **智能路由**任務
|
|
138
|
-
- Claude 成為你的 AI 隊友 🤝
|
|
139
|
-
|
|
140
|
-
</td>
|
|
141
|
-
</tr>
|
|
142
|
-
</table>
|
|
143
|
-
|
|
144
|
-
---
|
|
145
|
-
|
|
146
|
-
## 🎯 核心功能
|
|
147
|
-
|
|
148
|
-
### 1. 🧠 **真正有用的專案記憶**
|
|
149
|
-
|
|
150
35
|
```bash
|
|
151
|
-
# Session 1
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
# Session 42(今天)
|
|
155
|
-
你: buddy-remember "為什麼選 PostgreSQL?"
|
|
156
|
-
MeMesh: "根據你在 2024-01-15 的決策:選擇 PostgreSQL 是因為
|
|
157
|
-
JSONB 支援和進階查詢能力..."
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
**Claude 跨 session 記住了。** *(Session 記憶:30 天,專案記憶:90 天)*
|
|
161
|
-
|
|
162
|
-
### 2. 🎯 **智能任務路由(自動駕駛模式)**
|
|
163
|
-
|
|
164
|
-
```bash
|
|
165
|
-
你: "Review 這段程式碼"
|
|
166
|
-
MeMesh: *偵測任務類型*
|
|
167
|
-
*啟動程式碼審查模式*
|
|
168
|
-
*套用最佳實踐*
|
|
169
|
-
*提供結構化審查*
|
|
170
|
-
```
|
|
36
|
+
# Session 1 (週一)
|
|
37
|
+
你:buddy-do "設定 JWT 認證"
|
|
38
|
+
MeMesh: ✅ 完成 + 已存入記憶
|
|
171
39
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
buddy-do "設定身份驗證" # 執行任何開發任務
|
|
178
|
-
buddy-remember "API 設計" # 查詢專案記憶
|
|
179
|
-
buddy-help # 需要幫助時
|
|
40
|
+
# Session 50 (週五)
|
|
41
|
+
你:buddy-remember "auth"
|
|
42
|
+
MeMesh: 📚 1月15日的 JWT 認證
|
|
43
|
+
→ Access tokens: 15分鐘
|
|
44
|
+
→ Refresh tokens: 7天
|
|
180
45
|
```
|
|
181
46
|
|
|
182
|
-
|
|
47
|
+
**MeMesh = 有記憶的 Claude。**
|
|
183
48
|
|
|
184
49
|
---
|
|
185
50
|
|
|
186
|
-
## 🚀
|
|
187
|
-
|
|
188
|
-
選擇你偏好的安裝方式:
|
|
51
|
+
## 🚀 快速安裝
|
|
189
52
|
|
|
190
|
-
### ⚡ npm 全域安裝(最簡單)⭐ 推薦
|
|
191
53
|
```bash
|
|
192
54
|
npm install -g @pcircle/memesh
|
|
193
|
-
# 自動設定完成!只需重啟 Claude Code。
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### 📦 快速安裝腳本(本地開發用)
|
|
197
|
-
```bash
|
|
198
|
-
git clone https://github.com/PCIRCLE-AI/claude-code-buddy.git
|
|
199
|
-
cd claude-code-buddy
|
|
200
|
-
./scripts/quick-install.sh
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
### 🎯 Cursor 使用者
|
|
204
|
-
|
|
205
|
-
**快速安裝**(基本功能):
|
|
206
|
-
```
|
|
207
|
-
cursor://anysphere.cursor-deeplink/mcp/install?name=@pcircle/memesh&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBwY2lyY2xlL21lbWVzaCJdfQ==
|
|
208
55
|
```
|
|
209
56
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
### 🏆 Claude Code Plugin
|
|
213
|
-
```bash
|
|
214
|
-
claude --plugin-dir /path/to/claude-code-buddy/.claude-plugin/memesh
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
---
|
|
218
|
-
|
|
219
|
-
## 🚀 2 分鐘快速開始
|
|
220
|
-
|
|
221
|
-
### 步驟 1:快速安裝
|
|
57
|
+
重啟 Claude Code。**搞定。**
|
|
222
58
|
|
|
223
59
|
<details>
|
|
224
|
-
<summary
|
|
225
|
-
|
|
226
|
-
**三個簡單命令:**
|
|
60
|
+
<summary>📦 替代方案:從原始碼安裝</summary>
|
|
227
61
|
|
|
228
62
|
```bash
|
|
229
63
|
git clone https://github.com/PCIRCLE-AI/claude-code-buddy.git
|
|
230
64
|
cd claude-code-buddy
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
安裝腳本會:
|
|
235
|
-
- ✅ 檢查前置需求(Node.js 20+)
|
|
236
|
-
- ✅ 安裝相依套件
|
|
237
|
-
- ✅ 建置 MeMesh
|
|
238
|
-
- ✅ 顯示如何啟動 plugin
|
|
239
|
-
|
|
240
|
-
**然後用以下方式啟動 Claude Code:**
|
|
241
|
-
|
|
242
|
-
```bash
|
|
243
|
-
claude --plugin-dir /path/to/claude-code-buddy
|
|
65
|
+
npm install && npm run build
|
|
66
|
+
npm link # 或使用 ./scripts/quick-install.sh
|
|
244
67
|
```
|
|
245
68
|
|
|
246
|
-
**完成!**MeMesh 現在可以作為 plugin 使用了。
|
|
247
|
-
|
|
248
|
-
<Note>
|
|
249
|
-
`--plugin-dir` 標記用於載入本地 plugin。如需團隊分發,請參閱 [Plugin Marketplaces](https://code.claude.com/docs/en/plugin-marketplaces) 建立共享的 marketplace。
|
|
250
|
-
</Note>
|
|
251
|
-
|
|
252
69
|
</details>
|
|
253
70
|
|
|
254
|
-
<details>
|
|
255
|
-
<summary><strong>🎯 Cursor 使用者</strong>(點擊展開)</summary>
|
|
256
|
-
|
|
257
|
-
<h4 id="cursor-完整設定">Cursor 完整設定</h4>
|
|
258
|
-
|
|
259
|
-
Deep link 提供基本功能。如需**完整手動設定**:
|
|
260
|
-
|
|
261
|
-
1. **編輯 Cursor MCP 設定**(`~/.cursor/mcp.json` 或透過 Cursor 設定):
|
|
262
|
-
```json
|
|
263
|
-
{
|
|
264
|
-
"mcpServers": {
|
|
265
|
-
"memesh": {
|
|
266
|
-
"command": "npx",
|
|
267
|
-
"args": ["-y", "@pcircle/memesh"]
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
2. **重啟 Cursor** 就完成了。
|
|
274
|
-
|
|
275
|
-
</details>
|
|
276
|
-
|
|
277
|
-
### 步驟 2:測試
|
|
278
|
-
|
|
279
|
-
```bash
|
|
280
|
-
# 在 Claude Code/Cursor 中輸入:
|
|
281
|
-
buddy-help
|
|
282
|
-
|
|
283
|
-
# 你應該會看到 MeMesh 的命令列表
|
|
284
|
-
# 現在試試:
|
|
285
|
-
buddy-do "解釋 MeMesh 功能"
|
|
286
|
-
|
|
287
|
-
# 見證魔法 ✨
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
**🎉 就這樣!開始 vibe 吧。**
|
|
291
|
-
|
|
292
|
-
📖 **需要幫助?**[詳細安裝指南](docs/QUICK_INSTALL.md) | [疑難排解](docs/TROUBLESHOOTING.md)
|
|
293
|
-
|
|
294
71
|
---
|
|
295
72
|
|
|
296
|
-
##
|
|
297
|
-
|
|
298
|
-
### 場景 1:**智能任務執行**
|
|
73
|
+
## 💬 三個指令統治一切
|
|
299
74
|
|
|
300
75
|
```bash
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
🔍 偵測到任務類型:程式碼審查
|
|
305
|
-
🧠 回想:你過去 session 的身份驗證決策
|
|
306
|
-
📋 提供:帶上下文的結構化分析
|
|
307
|
-
|
|
308
|
-
✅ 結果:
|
|
309
|
-
• 根據已儲存的最佳實踐分析了 auth 模組
|
|
310
|
-
• 引用了上個月的 JWT 決策
|
|
311
|
-
• 基於專案模式提出改善建議
|
|
312
|
-
|
|
313
|
-
💾 儲存到記憶:"Auth review 發現 - 2024-01-20"
|
|
76
|
+
buddy-do "任何開發任務" # 執行 + 記憶
|
|
77
|
+
buddy-remember "主題" # 即時回想
|
|
78
|
+
buddy-help # 卡住時用
|
|
314
79
|
```
|
|
315
80
|
|
|
316
|
-
|
|
81
|
+
**範例:**
|
|
317
82
|
|
|
318
83
|
```bash
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
📚 3 週前的 JWT vs Session 討論
|
|
323
|
-
💻 你寫的實作程式碼
|
|
324
|
-
🔧 你決定的錯誤處理模式
|
|
325
|
-
```
|
|
84
|
+
buddy-do "解釋這個 codebase"
|
|
85
|
+
buddy-do "加上使用者認證"
|
|
86
|
+
buddy-do "修正 build error"
|
|
326
87
|
|
|
327
|
-
|
|
88
|
+
buddy-remember "API 設計決策"
|
|
89
|
+
buddy-remember "為什麼選 PostgreSQL"
|
|
328
90
|
|
|
91
|
+
buddy-help # 顯示所有可用指令
|
|
329
92
|
```
|
|
330
|
-
第 1 天:「實作使用者登入」
|
|
331
|
-
↓ MeMesh 記住所有事情
|
|
332
|
-
第 5 天:「新增密碼重設」
|
|
333
|
-
↓ MeMesh 回想第 1 天的架構
|
|
334
|
-
第 10 天:「新增 OAuth 支援」
|
|
335
|
-
↓ MeMesh 知道前兩次的設計
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
**再也不用重複解釋 context。**
|
|
339
93
|
|
|
340
94
|
---
|
|
341
95
|
|
|
342
|
-
##
|
|
343
|
-
|
|
344
|
-
| 功能 | 純 Claude Code | 其他 MCP 工具 | MeMesh |
|
|
345
|
-
|------|---------------|--------------|-----|
|
|
346
|
-
| **持久化記憶** | ❌ | ⚠️ 基本功能 | ✅ **完整知識圖譜** |
|
|
347
|
-
| **智能路由** | ❌ | ❌ | ✅ **自動偵測任務類型** |
|
|
348
|
-
| **Vibe Coding 優化** | ⚠️ | ❌ | ✅ **專為此打造** |
|
|
349
|
-
| **零設定** | ✅ | ⚠️ 複雜 | ✅ **2 分鐘** |
|
|
350
|
-
| **免費開源** | ✅ | ⚠️ 不一定 | ✅ **AGPL-3.0** |
|
|
351
|
-
|
|
352
|
-
---
|
|
353
|
-
|
|
354
|
-
## 🛠️ 進階功能
|
|
355
|
-
|
|
356
|
-
<details>
|
|
357
|
-
<summary><strong>自動記憶系統</strong></summary>
|
|
358
|
-
|
|
359
|
-
當你使用 `buddy-do` 時,MeMesh 會自動記錄:
|
|
360
|
-
- ✅ 任務目標和結果
|
|
361
|
-
- ✅ 技術決策和理由
|
|
362
|
-
- ✅ 遇到的錯誤和解決方案
|
|
363
|
-
- ✅ 開發里程碑
|
|
364
|
-
|
|
365
|
-
**你不用想記憶的事。MeMesh 會處理。**
|
|
366
|
-
|
|
367
|
-
</details>
|
|
368
|
-
|
|
369
|
-
<details>
|
|
370
|
-
<summary><strong>多專案支援</strong></summary>
|
|
371
|
-
|
|
372
|
-
每個專案都有獨立的記憶空間。
|
|
373
|
-
|
|
374
|
-
```bash
|
|
375
|
-
cd ~/project-A
|
|
376
|
-
buddy-remember "auth" # 回傳 project-A 的 auth 決策
|
|
377
|
-
|
|
378
|
-
cd ~/project-B
|
|
379
|
-
buddy-remember "auth" # 回傳 project-B 的 auth 決策
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
**絕不會混淆。**
|
|
383
|
-
|
|
384
|
-
</details>
|
|
385
|
-
|
|
386
|
-
<details>
|
|
387
|
-
<summary><strong>智能記憶查詢</strong></summary>
|
|
388
|
-
|
|
389
|
-
具備上下文感知的智能記憶檢索:
|
|
390
|
-
- 🎯 知識庫語意搜尋
|
|
391
|
-
- 🏷️ 自動標籤分類
|
|
392
|
-
- 📊 基於上下文的相關性排序
|
|
393
|
-
|
|
394
|
-
</details>
|
|
395
|
-
|
|
396
|
-
<details>
|
|
397
|
-
<summary><strong>持久記憶</strong></summary>
|
|
398
|
-
|
|
399
|
-
本地優先架構,搭配持久知識圖譜:
|
|
400
|
-
- 💾 基於 SQLite 的儲存,支援語意搜尋
|
|
401
|
-
- 🔍 向量嵌入實現智慧回憶
|
|
402
|
-
- 📡 知識在所有 session 間持久化
|
|
403
|
-
|
|
404
|
-
</details>
|
|
405
|
-
|
|
406
|
-
<details>
|
|
407
|
-
<summary><strong>8 個 MCP 標準工具</strong></summary>
|
|
408
|
-
|
|
409
|
-
完整整合 Model Context Protocol,提供無縫的 Claude Code 體驗。See [QUICK_INSTALL.md](docs/QUICK_INSTALL.md#-what-you-get) for the complete tool list.
|
|
410
|
-
|
|
411
|
-
使用 `buddy-help` 查看所有可用指令。
|
|
412
|
-
|
|
413
|
-
</details>
|
|
414
|
-
|
|
415
|
-
---
|
|
416
|
-
|
|
417
|
-
## 🧪 技術細節
|
|
418
|
-
|
|
419
|
-
<table>
|
|
420
|
-
<tr>
|
|
421
|
-
<td width="50%">
|
|
422
|
-
|
|
423
|
-
### 需求
|
|
424
|
-
- Node.js 20+
|
|
425
|
-
- Claude Code 或 Cursor IDE
|
|
426
|
-
- 2 分鐘時間
|
|
427
|
-
|
|
428
|
-
</td>
|
|
429
|
-
<td width="50%">
|
|
430
|
-
|
|
431
|
-
### 平台支援
|
|
432
|
-
- ✅ **Claude 4.5**(Haiku/Sonnet/Opus)
|
|
433
|
-
- ✅ **MCP SDK 1.25.3**
|
|
434
|
-
- ✅ Windows、macOS、Linux
|
|
96
|
+
## 🎯 核心功能
|
|
435
97
|
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
98
|
+
### 🧠 **持久記憶**
|
|
99
|
+
- 記住專案決策(90天)
|
|
100
|
+
- 回想 session context(30天)
|
|
101
|
+
- 語意搜尋所有記憶
|
|
439
102
|
|
|
440
|
-
###
|
|
103
|
+
### 🔍 **知識圖譜**
|
|
104
|
+
- 自動整理你的知識
|
|
105
|
+
- 連結相關概念
|
|
106
|
+
- FTS5 + 向量搜尋
|
|
441
107
|
|
|
442
|
-
|
|
443
|
-
-
|
|
444
|
-
-
|
|
445
|
-
-
|
|
108
|
+
### ⚡ **零配置**
|
|
109
|
+
- 自動追蹤專案變更
|
|
110
|
+
- 自動標記記憶
|
|
111
|
+
- 安裝即用
|
|
446
112
|
|
|
447
113
|
---
|
|
448
114
|
|
|
449
|
-
##
|
|
450
|
-
|
|
451
|
-
遇到問題了嗎?我們來幫忙!
|
|
452
|
-
|
|
453
|
-
### 📝 如何回報 Bug
|
|
115
|
+
## 📚 了解更多
|
|
454
116
|
|
|
455
|
-
|
|
456
|
-
- [搜尋現有 Issues](https://github.com/PCIRCLE-AI/claude-code-buddy/issues)
|
|
117
|
+
> **注意**:詳細文檔目前僅提供英文版本
|
|
457
118
|
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
- ✅ 作業系統(Windows/macOS/Linux)
|
|
464
|
-
- ✅ 錯誤訊息(完整的錯誤 log)
|
|
465
|
-
- ✅ 重現步驟
|
|
119
|
+
**核心文檔**:
|
|
120
|
+
- **[使用指南](docs/USER_GUIDE.md)** - 完整使用教學
|
|
121
|
+
- **[指令參考](docs/COMMANDS.md)** - 所有可用指令與工具
|
|
122
|
+
- **[快速開始](docs/GETTING_STARTED.md)** - 新手安裝指南
|
|
123
|
+
- **[疑難排解](docs/TROUBLESHOOTING.md)** - 常見問題
|
|
466
124
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
- **一般問題**:[GitHub Discussions](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions)
|
|
472
|
-
- **功能建議**:[Feature Requests](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions/categories/ideas)
|
|
473
|
-
- **疑難排解**:[閱讀疑難排解指南](docs/TROUBLESHOOTING.md)
|
|
125
|
+
**進階文檔**:
|
|
126
|
+
- **[架構說明](docs/ARCHITECTURE.md)** - 系統架構與設計
|
|
127
|
+
- **[最佳實踐](docs/BEST_PRACTICES.md)** - 使用建議與技巧
|
|
128
|
+
- **[API 參考](docs/api/API_REFERENCE.md)** - 完整 API 文檔
|
|
474
129
|
|
|
475
130
|
---
|
|
476
131
|
|
|
477
132
|
## 🤝 貢獻
|
|
478
133
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
- 🐛 **發現 bug?**[開啟 issue](https://github.com/PCIRCLE-AI/claude-code-buddy/issues/new)
|
|
482
|
-
- 💡 **有想法?**[開始討論](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions)
|
|
483
|
-
- 🛠️ **想寫程式?**查看 [Good First Issues](https://github.com/PCIRCLE-AI/claude-code-buddy/labels/good%20first%20issue)
|
|
484
|
-
|
|
485
|
-
**貢獻指南**:[CONTRIBUTING.md](docs/CONTRIBUTING.md)
|
|
486
|
-
|
|
487
|
-
---
|
|
488
|
-
|
|
489
|
-
## 📚 文檔
|
|
490
|
-
|
|
491
|
-
- 📖 [完整文檔](docs/)
|
|
492
|
-
- 🚀 [快速安裝指南](docs/QUICK_INSTALL.md)
|
|
493
|
-
- 📘 [使用者指南](docs/USER_GUIDE.md)
|
|
494
|
-
- 🛠️ [API 參考](docs/api/API_REFERENCE.md)
|
|
495
|
-
- ❓ [疑難排解](docs/TROUBLESHOOTING.md)
|
|
496
|
-
|
|
497
|
-
---
|
|
498
|
-
|
|
499
|
-
## ❓ 常見問題
|
|
500
|
-
|
|
501
|
-
<details>
|
|
502
|
-
<summary><strong>Q:需要付費嗎?</strong></summary>
|
|
503
|
-
|
|
504
|
-
**A:** 不用。100% 免費開源(AGPL-3.0)。使用你現有的 Claude Code 訂閱。
|
|
505
|
-
|
|
506
|
-
</details>
|
|
507
|
-
|
|
508
|
-
<details>
|
|
509
|
-
<summary><strong>Q:我的資料安全嗎?</strong></summary>
|
|
510
|
-
|
|
511
|
-
**A:** 是的。所有資料預設在本地處理和儲存。雲端同步(`memesh-cloud-sync`)可用但需主動啟用 — 未經你明確操作不會上傳任何資料。
|
|
512
|
-
|
|
513
|
-
</details>
|
|
514
|
-
|
|
515
|
-
<details>
|
|
516
|
-
<summary><strong>Q:和純 Claude Code 有什麼不同?</strong></summary>
|
|
517
|
-
|
|
518
|
-
**A:** MeMesh 加入兩大超能力:
|
|
519
|
-
1. **持久化記憶** - Claude 能跨 session 記住你的專案
|
|
520
|
-
2. **智能路由** - 自動偵測和處理不同任務類型
|
|
521
|
-
|
|
522
|
-
可以想成:Claude Code + 超強記憶 + 自動駕駛模式。
|
|
523
|
-
|
|
524
|
-
</details>
|
|
525
|
-
|
|
526
|
-
<details>
|
|
527
|
-
<summary><strong>Q:可以客製化嗎?</strong></summary>
|
|
528
|
-
|
|
529
|
-
**A:** 當然!MeMesh 外掛程式完全開源。
|
|
530
|
-
|
|
531
|
-
想更深度客製化?查看我們的[貢獻指南](docs/CONTRIBUTING.md)或 fork 此專案。
|
|
532
|
-
|
|
533
|
-
</details>
|
|
534
|
-
|
|
535
|
-
<details>
|
|
536
|
-
<summary><strong>Q:支援 Cursor 嗎?</strong></summary>
|
|
537
|
-
|
|
538
|
-
**A:** 支援!Cursor 原生支援 MCP。在 Cursor 設定中配置 MCP server 路徑即可。
|
|
539
|
-
|
|
540
|
-
</details>
|
|
541
|
-
|
|
542
|
-
---
|
|
543
|
-
|
|
544
|
-
## 🙏 致謝
|
|
545
|
-
|
|
546
|
-
站在巨人的肩膀上:
|
|
547
|
-
|
|
548
|
-
- [Model Context Protocol (MCP)](https://github.com/anthropics/mcp) - 基礎
|
|
549
|
-
- [Claude Code](https://claude.com/claude-code) - 平台
|
|
550
|
-
- 所有我們出色的[貢獻者](https://github.com/PCIRCLE-AI/claude-code-buddy/graphs/contributors)和早期測試者
|
|
134
|
+
歡迎貢獻!請參閱 [CONTRIBUTING.md](CONTRIBUTING.md)
|
|
551
135
|
|
|
552
136
|
---
|
|
553
137
|
|
|
554
138
|
## 📄 授權
|
|
555
139
|
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
*這代表:使用它、修改它、分享它。但保持開源。*
|
|
559
|
-
|
|
560
|
-
---
|
|
561
|
-
|
|
562
|
-
## 🌟 Star 歷史
|
|
563
|
-
|
|
564
|
-
[](https://star-history.com/#PCIRCLE-AI/claude-code-buddy&Date)
|
|
140
|
+
AGPL-3.0 - 詳見 [LICENSE](LICENSE)
|
|
565
141
|
|
|
566
142
|
---
|
|
567
143
|
|
|
568
144
|
<div align="center">
|
|
569
145
|
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
**別再重複自己。開始 vibe 吧。**
|
|
573
|
-
|
|
574
|
-
[🚀 開始使用](#-2-分鐘快速開始) • [📖 閱讀文檔](docs/) • [💬 加入討論](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions)
|
|
575
|
-
|
|
576
|
-
---
|
|
577
|
-
|
|
578
|
-
### ⭐ **如果 MeMesh 今天幫你省時間,給它一個 star!**
|
|
579
|
-
|
|
580
|
-
這能幫助其他人發現這個工具。
|
|
581
|
-
|
|
582
|
-
---
|
|
583
|
-
|
|
584
|
-
**與 Anthropic PBC 無關** • 獨立開源專案
|
|
146
|
+
**由 vibe coders 打造,為 vibe coders 服務** 🚀
|
|
585
147
|
|
|
586
|
-
|
|
148
|
+
[回報 Bug](https://github.com/PCIRCLE-AI/claude-code-buddy/issues) • [功能請求](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions)
|
|
587
149
|
|
|
588
150
|
</div>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface MeMeshCredentials {
|
|
2
|
+
apiKey: string;
|
|
3
|
+
email?: string;
|
|
4
|
+
userId?: string;
|
|
5
|
+
baseUrl?: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function getCredentialsPath(): string;
|
|
9
|
+
export declare function loadCredentials(): MeMeshCredentials | null;
|
|
10
|
+
export declare function saveCredentials(creds: MeMeshCredentials): void;
|
|
11
|
+
export declare function deleteCredentials(): boolean;
|
|
12
|
+
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../src/cli/credentials.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAMD,wBAAgB,kBAAkB,IAAI,MAAM,CAG3C;AAMD,wBAAgB,eAAe,IAAI,iBAAiB,GAAG,IAAI,CAa1D;AAKD,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAW9D;AAKD,wBAAgB,iBAAiB,IAAI,OAAO,CAW3C"}
|