oh-my-claudecode-opencode 0.5.1 → 0.5.2
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/assets/skills/update.md +80 -0
- package/package.json +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: update
|
|
3
|
+
description: Check for OMCO updates and provide upgrade instructions
|
|
4
|
+
user-invocable: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Update Skill
|
|
8
|
+
|
|
9
|
+
OMCO 플러그인의 새 버전을 확인하고 업그레이드 방법을 안내합니다.
|
|
10
|
+
|
|
11
|
+
## Invocation
|
|
12
|
+
|
|
13
|
+
User says: "update", "check for updates", "upgrade omco", "/oh-my-claudecode:update"
|
|
14
|
+
|
|
15
|
+
## Workflow
|
|
16
|
+
|
|
17
|
+
### Step 1: Check Current Version
|
|
18
|
+
|
|
19
|
+
Read the installed version:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
cat ~/.config/opencode/node_modules/oh-my-claudecode-opencode/package.json | grep '"version"'
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Step 2: Check Latest Version on npm
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm view oh-my-claudecode-opencode version
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Step 3: Compare Versions
|
|
32
|
+
|
|
33
|
+
If current < latest, show update instructions.
|
|
34
|
+
|
|
35
|
+
## Output Format
|
|
36
|
+
|
|
37
|
+
### Update Available
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
📦 OMCO Update Available
|
|
41
|
+
|
|
42
|
+
Current Version: X.X.X
|
|
43
|
+
Latest Version: Y.Y.Y
|
|
44
|
+
|
|
45
|
+
To update, run:
|
|
46
|
+
|
|
47
|
+
cd ~/.config/opencode && npm update oh-my-claudecode-opencode
|
|
48
|
+
|
|
49
|
+
Then restart OpenCode (Ctrl+C and reopen).
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Already Up to Date
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
✅ OMCO is up to date
|
|
56
|
+
|
|
57
|
+
Current Version: X.X.X
|
|
58
|
+
|
|
59
|
+
You're running the latest version.
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Error Handling
|
|
63
|
+
|
|
64
|
+
If npm check fails (network error):
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
⚠️ Could not check for updates
|
|
68
|
+
|
|
69
|
+
Current Version: X.X.X
|
|
70
|
+
|
|
71
|
+
Manual check: npm view oh-my-claudecode-opencode version
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Example
|
|
75
|
+
|
|
76
|
+
User: "/update"
|
|
77
|
+
|
|
78
|
+
1. Read current version from installed package
|
|
79
|
+
2. Query npm for latest version
|
|
80
|
+
3. Compare and show result with upgrade instructions if needed
|