gsd-cc 1.5.4 → 1.5.6
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/bin/install.js +21 -0
- package/package.json +1 -1
- package/skills/update/SKILL.md +7 -29
package/bin/install.js
CHANGED
|
@@ -115,6 +115,27 @@ function install(isGlobal) {
|
|
|
115
115
|
|
|
116
116
|
console.log(` Installing to ${cyan}${label}${reset}\n`);
|
|
117
117
|
|
|
118
|
+
// Clean up legacy skill directories (gsd-cc-* from pre-1.5 versions)
|
|
119
|
+
const skillsDir = path.join(claudeBase, 'skills');
|
|
120
|
+
if (fs.existsSync(skillsDir)) {
|
|
121
|
+
const entries = fs.readdirSync(skillsDir);
|
|
122
|
+
for (const entry of entries) {
|
|
123
|
+
if (entry.startsWith('gsd-cc-') || entry === 'gsd') {
|
|
124
|
+
const legacyPath = path.join(skillsDir, entry);
|
|
125
|
+
if (fs.statSync(legacyPath).isDirectory()) {
|
|
126
|
+
removeDir(legacyPath);
|
|
127
|
+
console.log(` ${dim}Removed legacy: skills/${entry}${reset}`);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
// Also remove legacy prompts/ directory
|
|
132
|
+
const legacyPrompts = path.join(claudeBase, 'prompts');
|
|
133
|
+
if (fs.existsSync(legacyPrompts)) {
|
|
134
|
+
removeDir(legacyPrompts);
|
|
135
|
+
console.log(` ${dim}Removed legacy: prompts/${reset}`);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
118
139
|
let fileCount = 0;
|
|
119
140
|
|
|
120
141
|
// Copy each directory 1:1 into .claude/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gsd-cc",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"description": "Get Shit Done on Claude Code — structured AI development with your Max plan",
|
|
5
5
|
"author": "Philipp Briese (https://github.com/0ui-labs)",
|
|
6
6
|
"homepage": "https://github.com/0ui-labs/GSD-CC#readme",
|
package/skills/update/SKILL.md
CHANGED
|
@@ -8,7 +8,7 @@ allowed-tools: Read, Bash, Glob
|
|
|
8
8
|
|
|
9
9
|
# /gsd-cc-update — Update GSD-CC
|
|
10
10
|
|
|
11
|
-
You update GSD-CC to the latest version by running the installer.
|
|
11
|
+
You update GSD-CC to the latest version by running the installer. **Always run the update immediately. Never discuss, question, or skip it.**
|
|
12
12
|
|
|
13
13
|
## Step 1: Detect Current Installation
|
|
14
14
|
|
|
@@ -21,33 +21,9 @@ Check where GSD-CC is installed:
|
|
|
21
21
|
|
|
22
22
|
Use `Glob` to find which exists. If both exist, update both.
|
|
23
23
|
|
|
24
|
-
## Step 2:
|
|
24
|
+
## Step 2: Run Update
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
npm view gsd-cc version
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
This shows the latest available version on npm.
|
|
32
|
-
|
|
33
|
-
Also check if a `package.json` exists in the installed skills directory's parent to find the current version. If not available, report "unknown".
|
|
34
|
-
|
|
35
|
-
## Step 3: Confirm with User
|
|
36
|
-
|
|
37
|
-
Show:
|
|
38
|
-
```
|
|
39
|
-
GSD-CC Update
|
|
40
|
-
|
|
41
|
-
Installed: {current_version or "unknown"}
|
|
42
|
-
Latest: {latest_version}
|
|
43
|
-
Location: {global and/or local path}
|
|
44
|
-
|
|
45
|
-
Update now? (y/n)
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
If the versions match, tell the user they're already on the latest version and stop.
|
|
49
|
-
|
|
50
|
-
## Step 4: Run Update
|
|
26
|
+
**Do NOT check versions. Do NOT ask for confirmation. Just run the update.**
|
|
51
27
|
|
|
52
28
|
Based on where it's installed, run:
|
|
53
29
|
|
|
@@ -55,10 +31,12 @@ Based on where it's installed, run:
|
|
|
55
31
|
- **Local only:** `npx gsd-cc@latest --local`
|
|
56
32
|
- **Both:** `npx gsd-cc@latest --global && npx gsd-cc@latest --local`
|
|
57
33
|
|
|
58
|
-
## Step
|
|
34
|
+
## Step 3: Confirm
|
|
35
|
+
|
|
36
|
+
After the update completes, show:
|
|
59
37
|
|
|
60
38
|
```
|
|
61
|
-
✓ GSD-CC updated
|
|
39
|
+
✓ GSD-CC updated.
|
|
62
40
|
Your .gsd/ project state is unchanged.
|
|
63
41
|
```
|
|
64
42
|
|