cc-starter 1.0.0 → 1.0.1
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/lib/plugins.js +4 -4
- package/package.json +1 -1
package/lib/plugins.js
CHANGED
|
@@ -19,7 +19,7 @@ function isClaudeAvailable() {
|
|
|
19
19
|
*
|
|
20
20
|
* - If no plugins are selected, prints a dim note and returns.
|
|
21
21
|
* - If the `claude` CLI is not found, prints manual-install instructions.
|
|
22
|
-
* - Otherwise attempts `claude
|
|
22
|
+
* - Otherwise attempts `claude plugin install` for each plugin, falling back
|
|
23
23
|
* to manual instructions on failure.
|
|
24
24
|
*
|
|
25
25
|
* @param {Array<{ name: string, source: string }>} plugins
|
|
@@ -37,7 +37,7 @@ export async function installPlugins(plugins) {
|
|
|
37
37
|
console.log(chalk.dim(' Install Claude Code first: https://claude.ai/download'));
|
|
38
38
|
console.log(chalk.dim(' Then install plugins manually:\n'));
|
|
39
39
|
for (const p of plugins) {
|
|
40
|
-
console.log(chalk.dim(` claude
|
|
40
|
+
console.log(chalk.dim(` claude plugin install ${p.name}@${p.source}`));
|
|
41
41
|
}
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
@@ -53,7 +53,7 @@ export async function installPlugins(plugins) {
|
|
|
53
53
|
const ref = `${plugin.name}@${plugin.source}`;
|
|
54
54
|
try {
|
|
55
55
|
console.log(chalk.dim(` Installing ${plugin.name}...`));
|
|
56
|
-
execSync(`claude
|
|
56
|
+
execSync(`claude plugin install ${ref}`, {
|
|
57
57
|
stdio: 'inherit',
|
|
58
58
|
timeout: 30000,
|
|
59
59
|
});
|
|
@@ -61,7 +61,7 @@ export async function installPlugins(plugins) {
|
|
|
61
61
|
installed++;
|
|
62
62
|
} catch {
|
|
63
63
|
console.log(chalk.yellow(` ⚠ ${plugin.name} — manual install needed:`));
|
|
64
|
-
console.log(chalk.dim(` claude
|
|
64
|
+
console.log(chalk.dim(` claude plugin install ${ref}`));
|
|
65
65
|
failed++;
|
|
66
66
|
}
|
|
67
67
|
}
|
package/package.json
CHANGED