bf-skills 1.1.3 → 1.2.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.
Files changed (2) hide show
  1. package/dist/cli.mjs +7 -8
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -451,12 +451,14 @@ function runRemove(name, opts) {
451
451
 
452
452
  // src/cli.ts
453
453
  var args = process.argv.slice(2);
454
+ var DEFAULT_CATALOG = "https://github.com/BFLabsAI/bf-skills-catalog.git";
454
455
  function printHelp() {
455
456
  showLogo();
456
457
  console.log(`${COLORS.bold} Usage${COLORS.reset}`);
457
458
  console.log("");
458
- console.log(` ${COLORS.yellow}npx bf-skills${COLORS.reset} <url> Browse & install from a repo`);
459
- console.log(` ${COLORS.yellow}npx bf-skills${COLORS.reset} <url> --skill <name...> Install specific skill(s)`);
459
+ console.log(` ${COLORS.yellow}npx bf-skills${COLORS.reset} Browse & install from catalog`);
460
+ console.log(` ${COLORS.yellow}npx bf-skills${COLORS.reset} --skill <name...> Install specific skill(s)`);
461
+ console.log(` ${COLORS.yellow}npx bf-skills${COLORS.reset} <url> Install from custom repo`);
460
462
  console.log(` ${COLORS.yellow}npx bf-skills${COLORS.reset} list List installed skills`);
461
463
  console.log(` ${COLORS.yellow}npx bf-skills${COLORS.reset} remove <name> Remove a skill`);
462
464
  console.log("");
@@ -504,7 +506,7 @@ function parseArgs(argv) {
504
506
  return { command, positionals, skills, agent, global, yes };
505
507
  }
506
508
  async function main() {
507
- if (args.length === 0 || args[0] === "--help" || args[0] === "-h") {
509
+ if (args[0] === "--help" || args[0] === "-h") {
508
510
  printHelp();
509
511
  return;
510
512
  }
@@ -522,11 +524,8 @@ async function main() {
522
524
  runRemove(name, { global: isGlobal });
523
525
  return;
524
526
  }
525
- if (!command) {
526
- printHelp();
527
- return;
528
- }
529
- await runInstall(command, { skills, agent, global: isGlobal, yes });
527
+ const source = command || DEFAULT_CATALOG;
528
+ await runInstall(source, { skills, agent, global: isGlobal, yes });
530
529
  }
531
530
  main().catch((err) => {
532
531
  console.error(err instanceof Error ? err.message : err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bf-skills",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "description": "BF Skills installer — Building the Future of Business with AI",
5
5
  "type": "module",
6
6
  "engines": {