petdex-cc 0.1.6 → 0.1.8
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 +301 -114
- package/README_CN.md +297 -112
- package/dist/bin/cli.js +19 -14
- package/dist/bin/cli.js.map +1 -1
- package/dist/src/cli/autostart.d.ts +5 -0
- package/dist/src/cli/autostart.d.ts.map +1 -0
- package/dist/src/cli/autostart.js +54 -0
- package/dist/src/cli/autostart.js.map +1 -0
- package/dist/src/cli/install.d.ts.map +1 -1
- package/dist/src/cli/install.js +9 -1
- package/dist/src/cli/install.js.map +1 -1
- package/dist/src/cli/uninstall.d.ts +1 -1
- package/dist/src/cli/uninstall.d.ts.map +1 -1
- package/dist/src/cli/uninstall.js +7 -1
- package/dist/src/cli/uninstall.js.map +1 -1
- package/dist/src/hooks/write-scripts.js +21 -21
- package/dist/src/renderer/index.html +264 -264
- package/dist/src/renderer/wander.d.ts +8 -0
- package/dist/src/renderer/wander.d.ts.map +1 -0
- package/dist/src/renderer/wander.js +137 -0
- package/dist/src/renderer/wander.js.map +1 -0
- package/package.json +12 -2
- package/src/hooks/bridge.ps1 +11 -11
- package/src/hooks/bridge.sh +9 -9
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 devnomad-byte
|
|
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) 2026 devnomad-byte
|
|
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.
|
package/README.md
CHANGED
|
@@ -1,44 +1,115 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<br />
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
# ✨ petdex-cc ✨
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
### Desktop Pet Companion for Claude Code
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[]()
|
|
11
|
-
[]()
|
|
12
|
-
[]()
|
|
13
|
-
[](https://petdex.crafter.run)
|
|
9
|
+
**Animated pets that live on your screen and react to your coding in real-time**
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
<br />
|
|
12
|
+
|
|
13
|
+
[](https://www.npmjs.com/package/petdex-cc)
|
|
14
|
+
[]()
|
|
15
|
+
[]()
|
|
16
|
+
[](./LICENSE)
|
|
17
|
+
[](https://petdex.crafter.run)
|
|
18
|
+
[](https://github.com/devnomad-byte/petdex-cc/stargazers)
|
|
19
|
+
|
|
20
|
+
<br />
|
|
21
|
+
|
|
22
|
+
[🌐 English](./README.md) · [🇨🇳 中文文档](./README_CN.md)
|
|
16
23
|
|
|
17
24
|
</div>
|
|
18
25
|
|
|
19
26
|
---
|
|
20
27
|
|
|
21
|
-
|
|
28
|
+
<div align="center">
|
|
29
|
+
|
|
30
|
+
<img src="./boba.gif" alt="petdex-cc demo" width="600" />
|
|
31
|
+
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
<div align="center">
|
|
37
|
+
|
|
38
|
+
🐾 **One command to bring your pet to life** 🐾
|
|
39
|
+
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npm install -g petdex-cc
|
|
44
|
+
petdex-cc install boba
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
<div align="center">
|
|
48
|
+
<i>全局安装后,宠物出现在桌面上,开始实时响应你的 Claude Code 操作 🎉</i>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
---
|
|
22
52
|
|
|
23
|
-
|
|
53
|
+
## 🌟 Why petdex-cc?
|
|
24
54
|
|
|
25
55
|
> **How is this different from `npx petdex install`?**
|
|
26
|
-
>
|
|
56
|
+
>
|
|
57
|
+
> The original `petdex` gives you a basic pet. `petdex-cc` adds a deep **Claude Code integration layer** — hooks into your coding workflow, a level progression system, AI-generated speech, time-aware greetings, and interactive effects. Your pet isn't just decoration — it *lives* in your coding session.
|
|
58
|
+
|
|
59
|
+
<table>
|
|
60
|
+
<tr>
|
|
61
|
+
<td width="50%">
|
|
62
|
+
|
|
63
|
+
🎯 **Real-time Reactions**
|
|
64
|
+
|
|
65
|
+
Pet changes animation as you read, edit, run commands, complete tasks, or hit errors
|
|
66
|
+
|
|
67
|
+
</td>
|
|
68
|
+
<td width="50%">
|
|
69
|
+
|
|
70
|
+
🏆 **8-Level Progression**
|
|
71
|
+
|
|
72
|
+
Byte → Process → Thread → Module → Kernel → Neural → Quantum → Singularity
|
|
73
|
+
|
|
74
|
+
</td>
|
|
75
|
+
</tr>
|
|
76
|
+
<tr>
|
|
77
|
+
<td width="50%">
|
|
27
78
|
|
|
28
|
-
|
|
79
|
+
🤖 **AI Speech Bubbles**
|
|
29
80
|
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
81
|
+
Context-aware dialogue generated by Claude, or built-in preset lines
|
|
82
|
+
|
|
83
|
+
</td>
|
|
84
|
+
<td width="50%">
|
|
85
|
+
|
|
86
|
+
🕐 **Time-Aware Greetings**
|
|
87
|
+
|
|
88
|
+
Morning, lunch, afternoon, evening, night, and midnight messages in Chinese
|
|
89
|
+
|
|
90
|
+
</td>
|
|
91
|
+
</tr>
|
|
92
|
+
<tr>
|
|
93
|
+
<td width="50%">
|
|
94
|
+
|
|
95
|
+
🎮 **Interactive**
|
|
96
|
+
|
|
97
|
+
Drag pet anywhere, right-click menu, rapid-click easter egg
|
|
98
|
+
|
|
99
|
+
</td>
|
|
100
|
+
<td width="50%">
|
|
101
|
+
|
|
102
|
+
💾 **State Persistence**
|
|
103
|
+
|
|
104
|
+
Level and event count survive restarts (HMAC-signed, tamper-resistant)
|
|
105
|
+
|
|
106
|
+
</td>
|
|
107
|
+
</tr>
|
|
108
|
+
</table>
|
|
38
109
|
|
|
39
110
|
---
|
|
40
111
|
|
|
41
|
-
## Quick Start
|
|
112
|
+
## 🚀 Quick Start
|
|
42
113
|
|
|
43
114
|
### Prerequisites
|
|
44
115
|
|
|
@@ -50,77 +121,171 @@ petdex-cc brings **animated desktop pets** to your Claude Code workflow. Pick an
|
|
|
50
121
|
```bash
|
|
51
122
|
# 1. Browse pets → https://petdex.crafter.run/
|
|
52
123
|
# 2. Find one you like, note the slug (e.g. "boba")
|
|
53
|
-
# 3. Install:
|
|
124
|
+
# 3. Install globally and set up your pet:
|
|
54
125
|
|
|
55
|
-
|
|
126
|
+
npm install -g petdex-cc
|
|
127
|
+
petdex-cc install boba
|
|
56
128
|
```
|
|
57
129
|
|
|
58
|
-
|
|
130
|
+
> **Why global install?** `petdex-cc` registers a CLI command so you can run `petdex-cc start`, `petdex-cc stop`, etc. from anywhere. Using `npx` works for one-shot installs but the CLI commands won't be available in new terminal sessions.
|
|
131
|
+
>
|
|
132
|
+
> **Auto-start:** `petdex-cc install` automatically enables auto-start on login. Use `petdex-cc autostart --disable` to turn it off.
|
|
133
|
+
|
|
134
|
+
### 🐾 Popular Pets
|
|
135
|
+
|
|
136
|
+
<table>
|
|
137
|
+
<tr>
|
|
138
|
+
<th>Slug</th>
|
|
139
|
+
<th>Name</th>
|
|
140
|
+
<th>Description</th>
|
|
141
|
+
</tr>
|
|
142
|
+
<tr>
|
|
143
|
+
<td><code>boba</code></td>
|
|
144
|
+
<td>🦦 Boba</td>
|
|
145
|
+
<td>Tiny otter sipping bubble tea</td>
|
|
146
|
+
</tr>
|
|
147
|
+
<tr>
|
|
148
|
+
<td><code>doraemon</code></td>
|
|
149
|
+
<td>🐱 Doraemon</td>
|
|
150
|
+
<td>Blue robot-cat from the future</td>
|
|
151
|
+
</tr>
|
|
152
|
+
<tr>
|
|
153
|
+
<td><code>noir-webling</code></td>
|
|
154
|
+
<td>🕷️ Noir Webling</td>
|
|
155
|
+
<td>Monochrome spider detective</td>
|
|
156
|
+
</tr>
|
|
157
|
+
<tr>
|
|
158
|
+
<td><code>ikun-hoops</code></td>
|
|
159
|
+
<td>🏀 IKUN Hoops</td>
|
|
160
|
+
<td>Hoodie chick with a basketball</td>
|
|
161
|
+
</tr>
|
|
162
|
+
<tr>
|
|
163
|
+
<td><code>ddo-zvzo</code></td>
|
|
164
|
+
<td>😎 ddo-zvzo</td>
|
|
165
|
+
<td>Purple mascot with sunglasses</td>
|
|
166
|
+
</tr>
|
|
167
|
+
<tr>
|
|
168
|
+
<td><code>mochi</code></td>
|
|
169
|
+
<td>🐱 Mochi</td>
|
|
170
|
+
<td>Orange-and-white chibi cat</td>
|
|
171
|
+
</tr>
|
|
172
|
+
</table>
|
|
173
|
+
|
|
174
|
+
> Browse all 1,569+ pets at [**petdex.crafter.run**](https://petdex.crafter.run/) 🎨
|
|
175
|
+
|
|
176
|
+
<details>
|
|
177
|
+
<summary>🌏 For users in China (国内用户加速)</summary>
|
|
178
|
+
|
|
179
|
+
<br />
|
|
180
|
+
|
|
181
|
+
The first install downloads the Electron binary (~100MB) from GitHub, which can be slow or blocked. Configure npm to use China mirrors before installing:
|
|
59
182
|
|
|
60
|
-
|
|
183
|
+
```bash
|
|
184
|
+
# Set npm registry to China mirror
|
|
185
|
+
npm config set registry https://registry.npmmirror.com
|
|
61
186
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
187
|
+
# Set Electron download mirror
|
|
188
|
+
npm config set electron_mirror https://npmmirror.com/mirrors/electron/
|
|
189
|
+
|
|
190
|
+
# Then install globally
|
|
191
|
+
npm install -g petdex-cc
|
|
192
|
+
petdex-cc install boba
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
These settings are persistent — you only need to run them once.
|
|
196
|
+
|
|
197
|
+
</details>
|
|
198
|
+
|
|
199
|
+
<details>
|
|
200
|
+
<summary>🔧 Troubleshooting</summary>
|
|
201
|
+
|
|
202
|
+
<br />
|
|
203
|
+
|
|
204
|
+
**`ERR_MODULE_NOT_FOUND: Cannot find package '@electron/remote'`**
|
|
205
|
+
|
|
206
|
+
This was a bug in versions before 0.1.6. Update to the latest version:
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
npm uninstall -g petdex-cc
|
|
210
|
+
npm install -g petdex-cc
|
|
211
|
+
petdex-cc install boba
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
**`EPERM` / `EBUSY` errors**
|
|
215
|
+
|
|
216
|
+
The pet process is still running and locking files. Stop it first:
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
# Windows PowerShell
|
|
220
|
+
Stop-Process -Name electron -Force -ErrorAction SilentlyContinue
|
|
221
|
+
|
|
222
|
+
# macOS / Linux
|
|
223
|
+
pkill -f electron
|
|
224
|
+
|
|
225
|
+
# Then reinstall
|
|
226
|
+
npm install -g petdex-cc
|
|
227
|
+
petdex-cc install boba
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
**`ECONNRESET` / `ETIMEDOUT` during install**
|
|
70
231
|
|
|
71
|
-
|
|
232
|
+
Electron cannot download from GitHub. Set the mirror (see "For users in China" above).
|
|
233
|
+
|
|
234
|
+
</details>
|
|
72
235
|
|
|
73
236
|
---
|
|
74
237
|
|
|
75
|
-
## What Your Pet Does
|
|
238
|
+
## 🎬 What Your Pet Does
|
|
76
239
|
|
|
77
240
|
Every Claude Code action triggers a pet reaction:
|
|
78
241
|
|
|
79
|
-
| Claude Code
|
|
242
|
+
| Claude Code Event | Pet Animation | Speech Bubble |
|
|
80
243
|
|---|---|---|
|
|
81
|
-
| Session starts | Waving | "Let's get to work!" |
|
|
82
|
-
| Reading a file | Review | "Reading filename..." |
|
|
83
|
-
| Editing a file | Idle | "Edited filename" |
|
|
84
|
-
| Running a command | Running | "Running command..." |
|
|
85
|
-
| Searching (Glob/Grep) | Waiting | "Searching..." |
|
|
86
|
-
| Tool fails | Failed | "Oops, something went wrong" + AI encouragement |
|
|
87
|
-
| Task completes | Jumping | "Task complete!" + AI celebration |
|
|
88
|
-
| Claude stops | Jumping | "Task complete!" (60% AI speech) |
|
|
89
|
-
| Claude errors | Failed | Error message + AI comfort |
|
|
90
|
-
| Idle (10+ min) | Waving | Time-aware Chinese greeting |
|
|
91
|
-
| Level up | Current state | "Level up! Kernel!" + all effects activate |
|
|
92
|
-
|
|
93
|
-
### Pet
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
244
|
+
| 🟢 Session starts | Waving 👋 | "Let's get to work!" |
|
|
245
|
+
| 📖 Reading a file | Review 🔍 | "Reading filename..." |
|
|
246
|
+
| ✏️ Editing a file | Idle | "Edited filename" |
|
|
247
|
+
| ▶️ Running a command | Running 🏃 | "Running command..." |
|
|
248
|
+
| 🔍 Searching (Glob/Grep) | Waiting ⏳ | "Searching..." |
|
|
249
|
+
| ❌ Tool fails | Failed 😢 | "Oops, something went wrong" + AI encouragement |
|
|
250
|
+
| ✅ Task completes | Jumping 🎉 | "Task complete!" + AI celebration |
|
|
251
|
+
| 🛑 Claude stops | Jumping | "Task complete!" (60% AI speech) |
|
|
252
|
+
| ⚠️ Claude errors | Failed | Error message + AI comfort |
|
|
253
|
+
| 💤 Idle (10+ min) | Waving | Time-aware Chinese greeting |
|
|
254
|
+
| ⬆️ Level up | Current state | "Level up! Kernel!" + all effects activate |
|
|
255
|
+
|
|
256
|
+
### 🎮 Pet Interactions
|
|
257
|
+
|
|
258
|
+
| Action | Effect |
|
|
259
|
+
|---|---|
|
|
260
|
+
| **Drag** | Click and drag to move your pet anywhere |
|
|
261
|
+
| **Right-click** | Context menu: Show/Hide, About, Quit |
|
|
262
|
+
| **System tray** | Right-click tray icon for menu |
|
|
263
|
+
| **Easter egg** | Rapidly click for escalating reactions (2→4→6→9→12→15 clicks) |
|
|
99
264
|
|
|
100
265
|
---
|
|
101
266
|
|
|
102
|
-
## Level System
|
|
267
|
+
## 🏆 Level System
|
|
103
268
|
|
|
104
|
-
Your pet levels up based on cumulative Claude Code events
|
|
269
|
+
Your pet levels up based on cumulative Claude Code events:
|
|
105
270
|
|
|
106
|
-
| Lv | Name | Events |
|
|
271
|
+
| Lv | Name | Events | | Effect |
|
|
107
272
|
|:---:|---|---:|---|---|
|
|
108
|
-
| 1 | **Byte** | 0 |
|
|
109
|
-
| 2 | **Process** | 50 |
|
|
110
|
-
| 3 | **Thread** | 200 |
|
|
111
|
-
| 4 | **Module** | 500 |
|
|
112
|
-
| 5 | **Kernel** | 1,000 |
|
|
113
|
-
| 6 | **Neural** | 2,000 |
|
|
114
|
-
| 7 | **Quantum** | 5,000 |
|
|
115
|
-
| 8 | **Singularity** | 10,000 |
|
|
273
|
+
| 1 | **Byte** | 0 | 🟣 Base pet |
|
|
274
|
+
| 2 | **Process** | 50 | 🟢 Breathing glow |
|
|
275
|
+
| 3 | **Thread** | 200 | 🔵 Rotating aura ring |
|
|
276
|
+
| 4 | **Module** | 500 | 🟣 Enhanced aura |
|
|
277
|
+
| 5 | **Kernel** | 1,000 | 🟡 Floating light particles |
|
|
278
|
+
| 6 | **Neural** | 2,000 | 🩷 Particle storm |
|
|
279
|
+
| 7 | **Quantum** | 5,000 | 🩵 Energy field |
|
|
280
|
+
| 8 | **Singularity** | 10,000 | 🌟 Golden halo + all effects |
|
|
116
281
|
|
|
117
282
|
---
|
|
118
283
|
|
|
119
|
-
## AI Speech
|
|
284
|
+
## 🤖 AI Speech
|
|
120
285
|
|
|
121
|
-
When an Anthropic API key is available (auto-detected from Claude Code settings
|
|
286
|
+
When an Anthropic API key is available (auto-detected from Claude Code settings), your pet generates **context-aware speech**:
|
|
122
287
|
|
|
123
|
-
| Scene | Trigger | Example AI
|
|
288
|
+
| Scene | Trigger | Example AI Response |
|
|
124
289
|
|---|---|---|
|
|
125
290
|
| `task_complete` | Task finishes | "做得好!继续加油!" |
|
|
126
291
|
| `error` | Tool fails | "别担心,bugs难免的~" |
|
|
@@ -129,11 +294,11 @@ When an Anthropic API key is available (auto-detected from Claude Code settings
|
|
|
129
294
|
|
|
130
295
|
- **2-minute cooldown** between AI calls (level-ups bypass this)
|
|
131
296
|
- **5-second timeout** — falls back to preset lines if API is slow
|
|
132
|
-
- **No API key?** Built-in preset lines work great — 7 task
|
|
297
|
+
- **No API key?** Built-in preset lines work great — 7 task, 5 error, 5 idle, 4 level-up lines
|
|
133
298
|
|
|
134
299
|
---
|
|
135
300
|
|
|
136
|
-
## CLI Reference
|
|
301
|
+
## 📋 CLI Reference
|
|
137
302
|
|
|
138
303
|
```bash
|
|
139
304
|
petdex-cc install <slug> # Download pet, configure hooks, and launch
|
|
@@ -143,10 +308,16 @@ petdex-cc list # Browse all pets from Petdex registry
|
|
|
143
308
|
petdex-cc switch <slug> # Switch pets at runtime (downloads if needed)
|
|
144
309
|
petdex-cc status # Show pet name, level, events, running status
|
|
145
310
|
petdex-cc uninstall # Remove hooks, stop pet, delete all data
|
|
311
|
+
petdex-cc autostart # View auto-start status
|
|
312
|
+
petdex-cc autostart --enable # Enable auto-start on login (enabled by default on install)
|
|
313
|
+
petdex-cc autostart --disable # Disable auto-start on login
|
|
146
314
|
petdex-cc config [options] # Configure settings
|
|
147
315
|
```
|
|
148
316
|
|
|
149
|
-
|
|
317
|
+
<details>
|
|
318
|
+
<summary>⚙️ Config options</summary>
|
|
319
|
+
|
|
320
|
+
<br />
|
|
150
321
|
|
|
151
322
|
```bash
|
|
152
323
|
petdex-cc config --api-key <key> # Anthropic API key for AI speech
|
|
@@ -156,9 +327,11 @@ petdex-cc config --cooldown <minutes> # AI call cooldown (default: 2)
|
|
|
156
327
|
|
|
157
328
|
> API credentials are auto-detected from `~/.claude/settings.json` — most users don't need manual config.
|
|
158
329
|
|
|
330
|
+
</details>
|
|
331
|
+
|
|
159
332
|
---
|
|
160
333
|
|
|
161
|
-
## Architecture
|
|
334
|
+
## 🏗️ Architecture
|
|
162
335
|
|
|
163
336
|
```
|
|
164
337
|
┌─────────────────────────────────────────────────┐
|
|
@@ -198,25 +371,10 @@ petdex-cc config --cooldown <minutes> # AI call cooldown (default: 2)
|
|
|
198
371
|
└──────────────────┘
|
|
199
372
|
```
|
|
200
373
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
## Developer Setup
|
|
204
|
-
|
|
205
|
-
```bash
|
|
206
|
-
git clone https://github.com/devnomad-byte/petdex-cc.git
|
|
207
|
-
cd petdex-cc
|
|
208
|
-
npm install
|
|
209
|
-
npm run build
|
|
210
|
-
|
|
211
|
-
# Run in dev mode
|
|
212
|
-
npx electron .
|
|
374
|
+
<details>
|
|
375
|
+
<summary>📁 Project structure</summary>
|
|
213
376
|
|
|
214
|
-
|
|
215
|
-
npm link
|
|
216
|
-
petdex-cc install boba
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
### Project structure
|
|
377
|
+
<br />
|
|
220
378
|
|
|
221
379
|
```
|
|
222
380
|
petdex-cc/
|
|
@@ -239,21 +397,38 @@ petdex-cc/
|
|
|
239
397
|
│ │ └── context-menu.ts Right-click menu
|
|
240
398
|
│ ├── cli/ CLI command implementations
|
|
241
399
|
│ ├── hooks/ Claude Code hooks (register/unregister)
|
|
242
|
-
│ │ ├── register.ts Writes to ~/.claude/settings.json
|
|
243
|
-
│ │ ├── write-scripts.ts Cross-platform bridge scripts
|
|
244
|
-
│ │ ├── bridge.ps1 Windows PowerShell bridge
|
|
245
|
-
│ │ └── bridge.sh Unix bash bridge
|
|
246
400
|
│ ├── petdex-api/ Petdex registry client
|
|
247
|
-
│ │ ├── client.ts Manifest fetch + slug lookup
|
|
248
|
-
│ │ └── download.ts Streaming download with progress
|
|
249
401
|
│ └── shared/ Shared types and constants
|
|
250
402
|
```
|
|
251
403
|
|
|
404
|
+
</details>
|
|
405
|
+
|
|
252
406
|
---
|
|
253
407
|
|
|
254
|
-
##
|
|
408
|
+
## 🔧 Developer Setup
|
|
255
409
|
|
|
256
|
-
|
|
410
|
+
```bash
|
|
411
|
+
git clone https://github.com/devnomad-byte/petdex-cc.git
|
|
412
|
+
cd petdex-cc
|
|
413
|
+
npm install
|
|
414
|
+
npm run build
|
|
415
|
+
|
|
416
|
+
# Run in dev mode
|
|
417
|
+
npx electron .
|
|
418
|
+
|
|
419
|
+
# Install globally for CLI
|
|
420
|
+
npm link
|
|
421
|
+
petdex-cc install boba
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
---
|
|
425
|
+
|
|
426
|
+
## ⚙️ Configuration Reference
|
|
427
|
+
|
|
428
|
+
<details>
|
|
429
|
+
<summary>Auto-detected settings</summary>
|
|
430
|
+
|
|
431
|
+
<br />
|
|
257
432
|
|
|
258
433
|
petdex-cc reads these from `~/.claude/settings.json` automatically:
|
|
259
434
|
|
|
@@ -262,15 +437,12 @@ petdex-cc reads these from `~/.claude/settings.json` automatically:
|
|
|
262
437
|
| `ANTHROPIC_AUTH_TOKEN` | API key for AI speech |
|
|
263
438
|
| `ANTHROPIC_BASE_URL` | API endpoint for AI speech |
|
|
264
439
|
|
|
265
|
-
|
|
440
|
+
</details>
|
|
266
441
|
|
|
267
|
-
|
|
442
|
+
<details>
|
|
443
|
+
<summary>Data locations</summary>
|
|
268
444
|
|
|
269
|
-
|
|
270
|
-
petdex-cc config --api-key <key> --api-base-url <url> --cooldown 2
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
### Data locations
|
|
445
|
+
<br />
|
|
274
446
|
|
|
275
447
|
| Path | Contents |
|
|
276
448
|
|---|---|
|
|
@@ -280,11 +452,11 @@ petdex-cc config --api-key <key> --api-base-url <url> --cooldown 2
|
|
|
280
452
|
| `~/.petdex-cc/hooks/` | Bridge scripts |
|
|
281
453
|
| `~/.petdex-cc/config.json` | User config (API key, cooldown) |
|
|
282
454
|
|
|
283
|
-
|
|
455
|
+
</details>
|
|
284
456
|
|
|
285
|
-
|
|
457
|
+
---
|
|
286
458
|
|
|
287
|
-
|
|
459
|
+
## 🪝 Hooks Reference
|
|
288
460
|
|
|
289
461
|
| Hook | Matcher | What triggers it |
|
|
290
462
|
|---|---|---|
|
|
@@ -299,13 +471,28 @@ petdex-cc registers these hooks in `~/.claude/settings.json`:
|
|
|
299
471
|
|
|
300
472
|
---
|
|
301
473
|
|
|
302
|
-
|
|
474
|
+
<div align="center">
|
|
475
|
+
|
|
476
|
+
## ⭐ Star History
|
|
477
|
+
|
|
478
|
+
<a href="https://www.star-history.com/?repos=devnomad-byte%2Fpetdex-cc&type=date&legend=top-left">
|
|
479
|
+
<picture>
|
|
480
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=devnomad-byte/petdex-cc&type=date&theme=dark&legend=top-left" />
|
|
481
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=devnomad-byte/petdex-cc&type=date&legend=top-left" />
|
|
482
|
+
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=devnomad-byte/petdex-cc&type=date&legend=top-left" />
|
|
483
|
+
</picture>
|
|
484
|
+
</a>
|
|
485
|
+
|
|
486
|
+
<br />
|
|
487
|
+
|
|
488
|
+
## 📄 License
|
|
303
489
|
|
|
304
490
|
[MIT](./LICENSE)
|
|
305
491
|
|
|
306
|
-
|
|
492
|
+
<br />
|
|
493
|
+
|
|
494
|
+
Built with 💜 for the [Claude Code](https://docs.anthropic.com/en/docs/claude-code) community
|
|
495
|
+
|
|
496
|
+
Pets powered by [**Petdex**](https://petdex.crafter.run/) · 1,569+ community pets and growing
|
|
307
497
|
|
|
308
|
-
<div align="center">
|
|
309
|
-
<sub>Built for the <a href="https://docs.anthropic.com/en/docs/claude-code">Claude Code</a> community</sub><br />
|
|
310
|
-
<sub>Pets powered by <a href="https://petdex.crafter.run/">Petdex</a></sub>
|
|
311
498
|
</div>
|