skild 0.4.1 → 0.4.2

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/index.js +7 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -301,7 +301,7 @@ async function install(source, options = {}) {
301
301
  }
302
302
  }
303
303
  }
304
- async function maybeEnableRecursiveAndInstall(found) {
304
+ async function maybeEnableRecursiveAndInstall(found, spinner) {
305
305
  if (found.length === 0) return false;
306
306
  if (found.length > maxSkills) {
307
307
  const message = `Found more than ${maxSkills} skills. Increase --max-skills to proceed.`;
@@ -324,6 +324,7 @@ async function install(source, options = {}) {
324
324
  process.exitCode = 1;
325
325
  return true;
326
326
  }
327
+ if (spinner) spinner.stop();
327
328
  const headline = found.length === 1 ? `No SKILL.md found at root. Found 1 skill:
328
329
  ${previewDiscovered(found)}
329
330
  ` : `No SKILL.md found at root. Found ${found.length} skills:
@@ -338,6 +339,7 @@ ${previewDiscovered(found)}
338
339
  return true;
339
340
  }
340
341
  effectiveRecursive = true;
342
+ if (spinner) spinner.start();
341
343
  }
342
344
  recursiveSkillCount = found.length;
343
345
  return false;
@@ -365,13 +367,14 @@ ${previewDiscovered(found)}
365
367
  if (jsonOnly) {
366
368
  printJson({ ok: false, error: "SKILL_MD_NOT_FOUND", message, source, resolvedSource });
367
369
  } else {
370
+ if (spinner) spinner.stop();
368
371
  console.error(chalk2.red(message));
369
372
  }
370
373
  process.exitCode = 1;
371
374
  return;
372
375
  }
373
376
  const found = asDiscoveredSkills(discovered, (d) => path2.join(maybeLocalRoot, d.relPath));
374
- const didReturn = await maybeEnableRecursiveAndInstall(found);
377
+ const didReturn = await maybeEnableRecursiveAndInstall(found, spinner);
375
378
  if (didReturn) return;
376
379
  if (spinner) spinner.text = `Installing ${chalk2.cyan(source)} \u2014 discovered ${found.length} skills...`;
377
380
  for (const skill of found) {
@@ -393,6 +396,7 @@ ${previewDiscovered(found)}
393
396
  if (jsonOnly) {
394
397
  printJson({ ok: false, error: "SKILL_MD_NOT_FOUND", message, source, resolvedSource });
395
398
  } else {
399
+ if (spinner) spinner.stop();
396
400
  console.error(chalk2.red(message));
397
401
  }
398
402
  process.exitCode = 1;
@@ -403,7 +407,7 @@ ${previewDiscovered(found)}
403
407
  (d) => deriveChildSource(resolvedSource, d.relPath),
404
408
  (d) => d.absDir
405
409
  );
406
- const didReturn = await maybeEnableRecursiveAndInstall(found);
410
+ const didReturn = await maybeEnableRecursiveAndInstall(found, spinner);
407
411
  if (didReturn) return;
408
412
  if (spinner) spinner.text = `Installing ${chalk2.cyan(source)} \u2014 discovered ${found.length} skills...`;
409
413
  for (const skill of found) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skild",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "The npm for Agent Skills — Discover, install, manage, and publish AI Agent Skills with ease.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -37,7 +37,7 @@
37
37
  "commander": "^12.1.0",
38
38
  "ora": "^8.0.1",
39
39
  "tar": "^7.4.3",
40
- "@skild/core": "^0.4.1"
40
+ "@skild/core": "^0.4.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^20.10.0",