@leeovery/claude-manager 2.0.8 → 2.0.10
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 +26 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
|
|
19
19
|
## Versions
|
|
20
20
|
|
|
21
|
-
| Version | Package Manager | Status
|
|
22
|
-
|
|
23
|
-
| 2.x
|
|
24
|
-
| 1.x
|
|
21
|
+
| Version | Package Manager | Status | Branch |
|
|
22
|
+
|---------|-----------------|------------|------------------------------------------------------------|
|
|
23
|
+
| 2.x | npm | **Active** | `main` |
|
|
24
|
+
| 1.x | Composer | Deprecated | [`v1`](https://github.com/leeovery/claude-manager/tree/v1) |
|
|
25
25
|
|
|
26
26
|
> **Note:** This package is installed automatically as a dependency of plugins.
|
|
27
27
|
> To migrate from v1, update your plugins to their v2 versions (npm-based).
|
|
@@ -47,16 +47,30 @@ Instead of manually copying skill files between projects, you can install them a
|
|
|
47
47
|
The manager is installed automatically as a dependency of plugin packages. When you install a Claude plugin:
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
|
-
npm install @your-org/claude-your-plugin
|
|
50
|
+
npm install -D @your-org/claude-your-plugin
|
|
51
51
|
# or
|
|
52
|
-
pnpm add @your-org/claude-your-plugin
|
|
52
|
+
pnpm add -D @your-org/claude-your-plugin
|
|
53
53
|
# or
|
|
54
|
-
yarn add @your-org/claude-your-plugin
|
|
54
|
+
yarn add -D @your-org/claude-your-plugin
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
The plugin's postinstall script copies assets to `.claude/`. That's it.
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
### pnpm Users
|
|
60
|
+
|
|
61
|
+
pnpm doesn't expose binaries from transitive dependencies, so install the manager directly alongside plugins:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
pnpm add -D @leeovery/claude-manager @leeovery/claude-laravel
|
|
65
|
+
pnpm approve-builds # approve when prompted
|
|
66
|
+
pnpm install # triggers postinstall
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Removal:** pnpm's `preuninstall` hook is broken ([issue #3276](https://github.com/pnpm/pnpm/issues/3276)). Remove files first:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
npx claude-plugins remove @leeovery/claude-laravel && pnpm remove @leeovery/claude-laravel
|
|
73
|
+
```
|
|
60
74
|
|
|
61
75
|
## How It Works
|
|
62
76
|
|
|
@@ -120,13 +134,13 @@ Want to create your own skill or command packages?
|
|
|
120
134
|
"@leeovery/claude-manager": "^2.0.0"
|
|
121
135
|
},
|
|
122
136
|
"scripts": {
|
|
123
|
-
"postinstall": "
|
|
124
|
-
"preuninstall": "
|
|
137
|
+
"postinstall": "claude-plugins add",
|
|
138
|
+
"preuninstall": "claude-plugins remove"
|
|
125
139
|
}
|
|
126
140
|
}
|
|
127
141
|
```
|
|
128
142
|
|
|
129
|
-
The `postinstall` script copies assets when the plugin is installed. The `preuninstall` script cleans up when the plugin is removed.
|
|
143
|
+
The `postinstall` script copies assets when the plugin is installed. The `preuninstall` script cleans up when the plugin is removed.
|
|
130
144
|
|
|
131
145
|
### Plugin Structure
|
|
132
146
|
|
|
@@ -204,7 +218,7 @@ ls -la .claude/hooks/
|
|
|
204
218
|
|
|
205
219
|
Verify the plugin's package.json has:
|
|
206
220
|
- `@leeovery/claude-manager` as a dependency
|
|
207
|
-
- `postinstall` and `preuninstall` scripts
|
|
221
|
+
- `postinstall` and `preuninstall` scripts
|
|
208
222
|
- A `skills/`, `commands/`, `agents/`, or `hooks/` directory with content
|
|
209
223
|
|
|
210
224
|
## Requirements
|