ccski 1.0.3 → 1.1.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/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { B as CcskiError, C as PluginEntrySchema, H as SkillNotFoundError, S as InstalledPluginsSchema, U as ValidationError, V as ParseError, a as discoverSkills, b as parseSkillFile, i as SKILL_DIRECTORIES, o as loadSkill, s as scanSkillDirectory, t as SkillRegistry, w as SkillFrontmatterSchema, x as validateSkillFile, z as AmbiguousSkillNameError } from "./registry-ChUc2356.mjs";
1
+ import { B as CcskiError, C as PluginEntrySchema, H as SkillNotFoundError, S as InstalledPluginsSchema, U as ValidationError, V as ParseError, a as discoverSkills, b as parseSkillFile, i as SKILL_DIRECTORIES, o as loadSkill, s as scanSkillDirectory, t as SkillRegistry, w as SkillFrontmatterSchema, x as validateSkillFile, z as AmbiguousSkillNameError } from "./registry-DtGaEhsM.mjs";
2
2
 
3
3
  export { AmbiguousSkillNameError, CcskiError, InstalledPluginsSchema, ParseError, PluginEntrySchema, SKILL_DIRECTORIES, SkillFrontmatterSchema, SkillNotFoundError, SkillRegistry, ValidationError, discoverSkills, loadSkill, parseSkillFile, scanSkillDirectory, validateSkillFile };
@@ -12353,13 +12353,15 @@ function renderList(items) {
12353
12353
  const meta = item.meta ? ` ${dim(item.meta)}` : "";
12354
12354
  const badge = item.badge ? ` ${item.badge}` : "";
12355
12355
  const wrapWidth = Math.max(20, Math.min(process.stdout?.columns ?? 80, 120) - 4);
12356
- return `- ${coloredTitle}${badge}${meta}${item.description ? "\n " + wrap(item.description, {
12356
+ const desc = item.description;
12357
+ const wrapped = desc ? wrap(desc, {
12357
12358
  width: wrapWidth,
12358
12359
  indent: "",
12359
12360
  newline: "\n",
12360
12361
  trim: true,
12361
12362
  cut: false
12362
- }).replace(/\n/g, "\n ") : ""}`;
12363
+ }) : "";
12364
+ return `- ${coloredTitle}${badge}${meta}${wrapped && wrapped.length > 0 ? "\n " + wrapped.replace(/\n/g, "\n ") : ""}`;
12363
12365
  }).join("\n\n");
12364
12366
  }
12365
12367
  function padAnsi(value, width) {
@@ -13330,4 +13332,4 @@ var SkillRegistry = class {
13330
13332
 
13331
13333
  //#endregion
13332
13334
  export { intersectionType as A, CcskiError as B, PluginEntrySchema as C, custom as D, booleanType as E, recordType as F, __require as G, SkillNotFoundError as H, stringType as I, __toESM as K, unionType as L, numberType as M, objectType as N, discriminatedUnionType as O, optionalType as P, unknownType as R, InstalledPluginsSchema as S, arrayType as T, ValidationError as U, ParseError as V, __commonJS as W, tone as _, discoverSkills as a, parseSkillFile as b, colors as c, formatBytes as d, heading as f, success as g, setColorEnabled as h, SKILL_DIRECTORIES as i, literalType as j, enumType as k, dim as l, renderList as m, containsCaseInsensitive as n, loadSkill as o, highlight$1 as p, rankStrings as r, scanSkillDirectory as s, SkillRegistry as t, error as u, warn as v, SkillFrontmatterSchema as w, validateSkillFile as x, wrap as y, AmbiguousSkillNameError as z };
13333
- //# sourceMappingURL=registry-ChUc2356.mjs.map
13335
+ //# sourceMappingURL=registry-DtGaEhsM.mjs.map