@cregis-dev/cckit 0.2.0 → 0.3.0
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/package.json +1 -1
- package/registry.json +6 -0
- package/src/core/plugin-installer.js +10 -15
package/package.json
CHANGED
package/registry.json
CHANGED
|
@@ -31,6 +31,12 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"plugins": {
|
|
34
|
+
"everything-claude-code": {
|
|
35
|
+
"name": "Everything Claude Code",
|
|
36
|
+
"marketplace": "affaan-m",
|
|
37
|
+
"default": true,
|
|
38
|
+
"description": "Rules, agents, commands, skills, and hooks for Claude Code"
|
|
39
|
+
},
|
|
34
40
|
"superpowers": {
|
|
35
41
|
"name": "Superpowers",
|
|
36
42
|
"marketplace": "claude-plugins-official",
|
|
@@ -206,32 +206,27 @@ export async function installForTrae(plugins, targetDir, variables, logger) {
|
|
|
206
206
|
export async function installPlugins({ plugins, targetDir, ides, variables, logger }) {
|
|
207
207
|
const result = { claudeCode: [], trae: { files: 0, details: [] }, installed: [] }
|
|
208
208
|
|
|
209
|
-
//
|
|
209
|
+
// Claude Code: write ALL plugin IDs to settings.json (no templates needed)
|
|
210
|
+
if (ides.includes('claude-code') && plugins.length > 0) {
|
|
211
|
+
result.claudeCode = await installForClaudeCode(plugins, targetDir, logger)
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Trae: extract content from plugins that have templates
|
|
210
215
|
const available = []
|
|
211
|
-
const missing = []
|
|
212
216
|
for (const p of plugins) {
|
|
213
217
|
if (await fse.pathExists(p.templateDir)) {
|
|
214
218
|
available.push(p)
|
|
215
219
|
} else {
|
|
216
|
-
logger.warn(`Plugin "${p.id}" template not found at ${p.templateDir}, skipping`)
|
|
217
|
-
missing.push(p.id)
|
|
220
|
+
logger.warn(`Plugin "${p.id}" template not found at ${p.templateDir}, skipping Trae extraction`)
|
|
218
221
|
}
|
|
219
222
|
}
|
|
220
223
|
|
|
221
|
-
if (available.length
|
|
222
|
-
logger.debug('No plugin templates available, skipping plugin installation')
|
|
223
|
-
return result
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
if (ides.includes('claude-code')) {
|
|
227
|
-
result.claudeCode = await installForClaudeCode(available, targetDir, logger)
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
if (ides.includes('trae')) {
|
|
224
|
+
if (ides.includes('trae') && available.length > 0) {
|
|
231
225
|
result.trae = await installForTrae(available, targetDir, variables, logger)
|
|
232
226
|
}
|
|
233
227
|
|
|
234
|
-
|
|
228
|
+
// Track all plugins as installed (settings.json counts even without templates)
|
|
229
|
+
result.installed = plugins.map(p => p.id)
|
|
235
230
|
return result
|
|
236
231
|
}
|
|
237
232
|
|