bfi-cli 0.1.18 → 0.1.19
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/cli.mjs +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -4410,7 +4410,7 @@ async function installFromSkillHub(parsed, options, spinner) {
|
|
|
4410
4410
|
let slug;
|
|
4411
4411
|
if (restParts.length === 0) {
|
|
4412
4412
|
spinner.start(`正在 SkillHub 搜索 "${rawRef}"...`);
|
|
4413
|
-
const hits = ((await api.searchSkills(rawRef)).
|
|
4413
|
+
const hits = ((await api.searchSkills(rawRef)).results || []).slice(0, 20);
|
|
4414
4414
|
if (hits.length === 0) {
|
|
4415
4415
|
spinner.stop(import_picocolors.default.red("无结果"));
|
|
4416
4416
|
outro(import_picocolors.default.red(`No skills found on SkillHub for "${rawRef}".`));
|