bfi-cli 0.1.3 → 0.1.5

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +7 -3
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -6829,16 +6829,20 @@ async function searchSkillHub(query, namespace, globalOpts) {
6829
6829
  limit: 20,
6830
6830
  page: 0
6831
6831
  });
6832
- const skills = result.data || result.skills || [];
6832
+ const skills = result.results || result.data || [];
6833
6833
  if (skills.length === 0) {
6834
6834
  console.log(`${DIM$8}No skills found on SkillHub for "${query}"${RESET$8}`);
6835
6835
  return;
6836
6836
  }
6837
6837
  console.log(`Found ${skills.length} skill(s) on SkillHub:\n`);
6838
6838
  for (const skill of skills) {
6839
- console.log(` ${BOLD$5}${skill.name || skill.slug}${RESET$8}`);
6840
- if (skill.description) console.log(` ${DIM$8}${truncate$2(skill.description, 100)}${RESET$8}`);
6839
+ const name = skill.displayName || skill.name || skill.slug;
6840
+ const desc = skill.summary || skill.description || "";
6841
+ console.log(` ${BOLD$5}${name}${RESET$8}`);
6842
+ if (desc) console.log(` ${DIM$8}${truncate$2(desc, 100)}${RESET$8}`);
6841
6843
  console.log(` ${TEXT$7}slug: ${skill.slug}${RESET$8}`);
6844
+ if (skill.version) console.log(` ${DIM$8}version: ${skill.version}${RESET$8}`);
6845
+ console.log(` ${DIM$8}Install: ${TEXT$7}bfi skills add ${skill.slug}${RESET$8}`);
6842
6846
  console.log();
6843
6847
  }
6844
6848
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bfi-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "用友大业财BFI统一命令行工具,支持技能,技能包,元数据,UI元数据等",
5
5
  "type": "module",
6
6
  "bin": {