plugins 1.2.1 → 1.2.3
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/dist/index.js +9 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1152,11 +1152,11 @@ async function cmdInstall(source, opts) {
|
|
|
1152
1152
|
}
|
|
1153
1153
|
function pluginComponents(p) {
|
|
1154
1154
|
const parts = [];
|
|
1155
|
-
if (p.skills.length) parts.push(`${p.skills.length} skill`);
|
|
1156
|
-
if (p.commands.length) parts.push(`${p.commands.length} cmd`);
|
|
1157
|
-
if (p.agents.length) parts.push(`${p.agents.length} agent`);
|
|
1158
|
-
if (p.rules.length) parts.push(`${p.rules.length} rule`);
|
|
1159
|
-
if (p.hasHooks) parts.push("
|
|
1155
|
+
if (p.skills.length) parts.push(`${p.skills.length} ${p.skills.length === 1 ? "skill" : "skills"}`);
|
|
1156
|
+
if (p.commands.length) parts.push(`${p.commands.length} ${p.commands.length === 1 ? "cmd" : "cmds"}`);
|
|
1157
|
+
if (p.agents.length) parts.push(`${p.agents.length} ${p.agents.length === 1 ? "agent" : "agents"}`);
|
|
1158
|
+
if (p.rules.length) parts.push(`${p.rules.length} ${p.rules.length === 1 ? "rule" : "rules"}`);
|
|
1159
|
+
if (p.hasHooks) parts.push("hooks");
|
|
1160
1160
|
if (p.hasMcp) parts.push("mcp");
|
|
1161
1161
|
if (p.hasLsp) parts.push("lsp");
|
|
1162
1162
|
return parts;
|
|
@@ -1264,6 +1264,10 @@ function resolveSource(source) {
|
|
|
1264
1264
|
function readLine(prompt) {
|
|
1265
1265
|
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
1266
1266
|
return new Promise((resolve2) => {
|
|
1267
|
+
rl.on("close", () => {
|
|
1268
|
+
process.stdout.write("\n");
|
|
1269
|
+
process.exit(0);
|
|
1270
|
+
});
|
|
1267
1271
|
rl.question(prompt, (answer) => {
|
|
1268
1272
|
rl.close();
|
|
1269
1273
|
if (!process.stdin.isTTY) process.stdout.write("\n");
|