@kurokeita/add-skill 1.14.0 → 1.15.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/README.md +4 -4
- package/dist/bin/cli.js +8 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,8 +6,8 @@ CLI to manage and install AI agent skills, agents, and workflows to various plat
|
|
|
6
6
|
|
|
7
7
|
- **List Items**: View a list of available AI skills, agents, and workflows.
|
|
8
8
|
- **Local status**: Check which items are installed locally.
|
|
9
|
-
- **Add Items**: Interactively add skills, agents, and workflows
|
|
10
|
-
- **Remove Items**: Remove locally installed items
|
|
9
|
+
- **Add Items**: Interactively add skills, agents, and workflows with live search/filtering support.
|
|
10
|
+
- **Remove Items**: Remove locally installed items with live search/filtering support.
|
|
11
11
|
- **Import**: Import items directly from GitHub URLs.
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
@@ -40,7 +40,7 @@ pnpx @kurokeita/add-skill list agent --local
|
|
|
40
40
|
|
|
41
41
|
### Add Items
|
|
42
42
|
|
|
43
|
-
Starts an interactive session to select and install items.
|
|
43
|
+
Starts an interactive session to select and install items. Supports live search/filtering as you type.
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
46
|
# Add skills
|
|
@@ -55,7 +55,7 @@ pnpx @kurokeita/add-skill add workflow
|
|
|
55
55
|
|
|
56
56
|
### Remove Items
|
|
57
57
|
|
|
58
|
-
Interactively select items and platforms to remove them from.
|
|
58
|
+
Interactively select items and platforms to remove them from. Supports live search/filtering as you type.
|
|
59
59
|
|
|
60
60
|
```bash
|
|
61
61
|
# Remove skills
|
package/dist/bin/cli.js
CHANGED
|
@@ -9,6 +9,7 @@ import pc5 from "picocolors";
|
|
|
9
9
|
import os3 from "node:os";
|
|
10
10
|
import path6 from "node:path";
|
|
11
11
|
import {
|
|
12
|
+
autocompleteMultiselect,
|
|
12
13
|
cancel,
|
|
13
14
|
confirm,
|
|
14
15
|
intro,
|
|
@@ -626,7 +627,7 @@ async function add(type, url, options) {
|
|
|
626
627
|
selectedItems = [result.skillName];
|
|
627
628
|
s2.stop(pc.green(`Fetched ${normalizedType}: ${result.skillName}`));
|
|
628
629
|
} catch (e) {
|
|
629
|
-
s2.
|
|
630
|
+
s2.error("Failed to fetch");
|
|
630
631
|
throw e;
|
|
631
632
|
}
|
|
632
633
|
} else {
|
|
@@ -646,10 +647,9 @@ async function add(type, url, options) {
|
|
|
646
647
|
currentType = void 0;
|
|
647
648
|
continue;
|
|
648
649
|
}
|
|
649
|
-
const items = await
|
|
650
|
+
const items = await autocompleteMultiselect({
|
|
650
651
|
message: `Select ${normalizedType}s to install:`,
|
|
651
|
-
options: availableItems
|
|
652
|
-
required: true
|
|
652
|
+
options: availableItems
|
|
653
653
|
});
|
|
654
654
|
if (isCancel(items)) {
|
|
655
655
|
if (isSingleShot) break;
|
|
@@ -880,7 +880,7 @@ async function importItem(type, url, options) {
|
|
|
880
880
|
isFile = result.isFile;
|
|
881
881
|
s.stop(pc2.green(`Fetched: ${itemName}`));
|
|
882
882
|
} catch (e) {
|
|
883
|
-
s.
|
|
883
|
+
s.error("Failed to fetch");
|
|
884
884
|
throw e;
|
|
885
885
|
}
|
|
886
886
|
const shouldFlatten = (normalizedType === "agent" || normalizedType === "workflow") && !isFile;
|
|
@@ -1067,6 +1067,7 @@ async function list(type, options) {
|
|
|
1067
1067
|
// src/commands/remove.ts
|
|
1068
1068
|
import path8 from "node:path";
|
|
1069
1069
|
import {
|
|
1070
|
+
autocompleteMultiselect as autocompleteMultiselect2,
|
|
1070
1071
|
confirm as confirm3,
|
|
1071
1072
|
intro as intro4,
|
|
1072
1073
|
isCancel as isCancel4,
|
|
@@ -1135,10 +1136,9 @@ async function remove(type, options) {
|
|
|
1135
1136
|
continue;
|
|
1136
1137
|
}
|
|
1137
1138
|
const sortedItems = Array.from(uniqueItems).sort();
|
|
1138
|
-
const itemSelections = await
|
|
1139
|
+
const itemSelections = await autocompleteMultiselect2({
|
|
1139
1140
|
message: `Select ${normalizedType}s to remove:`,
|
|
1140
|
-
options: sortedItems.map((item) => ({ value: item, label: item }))
|
|
1141
|
-
required: true
|
|
1141
|
+
options: sortedItems.map((item) => ({ value: item, label: item }))
|
|
1142
1142
|
});
|
|
1143
1143
|
if (isCancel4(itemSelections)) {
|
|
1144
1144
|
if (isSingleShot) break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kurokeita/add-skill",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "CLI to install AI agent skills to various platforms",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"license": "GPL-3.0",
|
|
38
38
|
"packageManager": "pnpm@10.28.0",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@clack/prompts": "^
|
|
40
|
+
"@clack/prompts": "^1.2.0",
|
|
41
41
|
"commander": "^14.0.2",
|
|
42
42
|
"fs-extra": "^11.3.3",
|
|
43
43
|
"js-yaml": "^4.1.1",
|