mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-14 00:23:04 +08:00
fix: restore short Claude plugin slug and skill installs (#1712)
This commit is contained in:
@@ -25,6 +25,7 @@ Usage:
|
||||
node scripts/install-plan.js --list-components [--family <family>] [--target <target>] [--json]
|
||||
node scripts/install-plan.js --profile <name> [--with <component>]... [--without <component>]... [--target <target>] [--json]
|
||||
node scripts/install-plan.js --modules <id,id,...> [--with <component>]... [--without <component>]... [--target <target>] [--json]
|
||||
node scripts/install-plan.js --skills <skill-id[,skill-id...]> [--target <target>] [--json]
|
||||
node scripts/install-plan.js --config <path> [--json]
|
||||
|
||||
Options:
|
||||
@@ -35,6 +36,7 @@ Options:
|
||||
--profile <name> Resolve an install profile
|
||||
--modules <ids> Resolve explicit module IDs (comma-separated)
|
||||
--with <component> Include a user-facing install component
|
||||
--skills <ids> Include one or more skill components by directory ID
|
||||
--without <component>
|
||||
Exclude a user-facing install component
|
||||
--config <path> Load install intent from ecc-install.json
|
||||
@@ -61,6 +63,11 @@ function parseArgs(argv) {
|
||||
listComponents: false,
|
||||
};
|
||||
|
||||
function normalizeSkillComponentIds(rawValue) {
|
||||
return [...new Set(String(rawValue || '').split(',').map(value => value.trim()).filter(Boolean))]
|
||||
.map(value => (value.startsWith('skill:') ? value : `skill:${value}`));
|
||||
}
|
||||
|
||||
for (let index = 0; index < args.length; index += 1) {
|
||||
const arg = args[index];
|
||||
if (arg === '--help' || arg === '-h') {
|
||||
@@ -89,6 +96,9 @@ function parseArgs(argv) {
|
||||
parsed.includeComponentIds.push(componentId.trim());
|
||||
}
|
||||
index += 1;
|
||||
} else if (arg === '--skill' || arg === '--skills') {
|
||||
parsed.includeComponentIds.push(...normalizeSkillComponentIds(args[index + 1] || ''));
|
||||
index += 1;
|
||||
} else if (arg === '--without') {
|
||||
const componentId = args[index + 1] || '';
|
||||
if (componentId.trim()) {
|
||||
|
||||
Reference in New Issue
Block a user