skillui 1.2.0 → 1.2.1

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.js +9 -8
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -4010,7 +4010,7 @@ var require_jiti = __commonJS({
4010
4010
  }, pathe_ff20891b_dirname = function(p) {
4011
4011
  const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
4012
4012
  return 1 === segments.length && _DRIVE_LETTER_RE.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute(p) ? "/" : ".");
4013
- }, basename5 = function(p, extension) {
4013
+ }, basename6 = function(p, extension) {
4014
4014
  const lastSegment = normalizeWindowsPath(p).split("/").pop();
4015
4015
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
4016
4016
  }, suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, JsonSigRx = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
@@ -6706,7 +6706,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
6706
6706
  function transform2(topts) {
6707
6707
  let code2 = (function(filename, source, get) {
6708
6708
  if (!opts.cache || !filename) return get();
6709
- const sourceHash = ` /* v${opts.cacheVersion}-${md5(source, 16)} */`, filebase = basename5(pathe_ff20891b_dirname(filename)) + "-" + basename5(filename), cacheFile = join16(opts.cache, filebase + "." + md5(filename) + ".js");
6709
+ const sourceHash = ` /* v${opts.cacheVersion}-${md5(source, 16)} */`, filebase = basename6(pathe_ff20891b_dirname(filename)) + "-" + basename6(filename), cacheFile = join16(opts.cache, filebase + "." + md5(filename) + ".js");
6710
6710
  if ((0, external_fs_.existsSync)(cacheFile)) {
6711
6711
  const cacheSource = (0, external_fs_.readFileSync)(cacheFile, "utf8");
6712
6712
  if (cacheSource.endsWith(sourceHash)) return debug2("[cache hit]", filename, "~>", cacheFile), cacheSource;
@@ -6764,7 +6764,7 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
6764
6764
  }
6765
6765
  function evalModule(source, evalOptions = {}) {
6766
6766
  var _a2;
6767
- const id = evalOptions.id || (evalOptions.filename ? basename5(evalOptions.filename) : `_jitiEval.${evalOptions.ext || ".js"}`), filename = evalOptions.filename || _resolve2(id), ext = evalOptions.ext || extname3(filename), cache3 = evalOptions.cache || parentCache || {}, isTypescript = ".ts" === ext || ".mts" === ext || ".cts" === ext, isNativeModule = ".mjs" === ext || ".js" === ext && "module" === (null === (_a2 = (function(path17) {
6767
+ const id = evalOptions.id || (evalOptions.filename ? basename6(evalOptions.filename) : `_jitiEval.${evalOptions.ext || ".js"}`), filename = evalOptions.filename || _resolve2(id), ext = evalOptions.ext || extname3(filename), cache3 = evalOptions.cache || parentCache || {}, isTypescript = ".ts" === ext || ".mts" === ext || ".cts" === ext, isNativeModule = ".mjs" === ext || ".js" === ext && "module" === (null === (_a2 = (function(path17) {
6768
6768
  for (; path17 && "." !== path17 && "/" !== path17; ) {
6769
6769
  path17 = join16(path17, "..");
6770
6770
  try {
@@ -46006,8 +46006,8 @@ var require_tmp = __commonJS({
46006
46006
  if (!_isUndefined(options.name)) {
46007
46007
  const name42 = options.name;
46008
46008
  if (path17.isAbsolute(name42)) throw new Error(`name option must not contain an absolute path, found "${name42}".`);
46009
- const basename5 = path17.basename(name42);
46010
- if (basename5 === ".." || basename5 === "." || basename5 !== name42)
46009
+ const basename6 = path17.basename(name42);
46010
+ if (basename6 === ".." || basename6 === "." || basename6 !== name42)
46011
46011
  throw new Error(`name option must not contain a path, found "${name42}".`);
46012
46012
  }
46013
46013
  if (!_isUndefined(options.template) && !options.template.match(TEMPLATE_PATTERN)) {
@@ -104686,7 +104686,7 @@ gradient.pastel = pastel;
104686
104686
  // src/ui.ts
104687
104687
  var import_cli_progress = __toESM(require_cli_progress());
104688
104688
  var path15 = __toESM(require("path"));
104689
- var VERSION = "1.2.0";
104689
+ var VERSION = "1.2.1";
104690
104690
  function padAnsi(str, width) {
104691
104691
  const raw = stripAnsi(str);
104692
104692
  return str + " ".repeat(Math.max(0, width - raw.length));
@@ -105105,8 +105105,9 @@ program2.name("skillui").description("Reverse-engineer design systems from any p
105105
105105
  const result = await generateSkill(profile, designMdContent, path16.resolve(opts.out), screenshotPath, ultraAnimations);
105106
105106
  skillFilePath = result.skillFile;
105107
105107
  succeedSpinner(spSkill, ".skill package", skillFilePath);
105108
- skillInstalled = installSkillForClaude(result.skillDir, safeName);
105109
- writeClaludeMd(result.skillDir, safeName, profile.projectName);
105108
+ const skillFolderName = path16.basename(result.skillDir);
105109
+ skillInstalled = installSkillForClaude(result.skillDir, skillFolderName);
105110
+ writeClaludeMd(result.skillDir, skillFolderName, profile.projectName);
105110
105111
  } catch (e) {
105111
105112
  failSpinner(spSkill, ".skill package", e.message);
105112
105113
  throw e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillui",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Reverse-engineer design systems from any website, repo, or project. Extracts colors, fonts, spacing, animations, and components — packaged as a .skill file for Claude. Pure static analysis, zero AI, zero API keys.",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {