@meltstudio/meltctl 5.10.0 → 5.11.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/index.js +23 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7450,7 +7450,7 @@ var CLI_VERSION;
7450
7450
  var init_version = __esm({
7451
7451
  "src/utils/version.ts"() {
7452
7452
  "use strict";
7453
- CLI_VERSION = "5.10.0";
7453
+ CLI_VERSION = "5.11.0";
7454
7454
  }
7455
7455
  });
7456
7456
 
@@ -42596,6 +42596,13 @@ var MARKER_FILE = ".melt-skills.json";
42596
42596
  function getSkillsRoot() {
42597
42597
  return path5.join(os5.homedir(), ".claude", "skills");
42598
42598
  }
42599
+ function getSkillsRoots() {
42600
+ const roots = [getSkillsRoot()];
42601
+ if (import_fs_extra3.default.existsSync(path5.join(os5.homedir(), ".cursor"))) {
42602
+ roots.push(path5.join(os5.homedir(), ".cursor", "skills"));
42603
+ }
42604
+ return roots;
42605
+ }
42599
42606
  function computeSkillHash(files) {
42600
42607
  const hash2 = createHash("sha256");
42601
42608
  for (const filePath of Object.keys(files).sort()) {
@@ -42698,9 +42705,9 @@ async function skillsInstallCommand(opts) {
42698
42705
  );
42699
42706
  process.exit(1);
42700
42707
  }
42701
- const skillsRoot = getSkillsRoot();
42702
- const existing = readMarker(skillsRoot);
42703
- if (existing && existing.version === manifest.version && !opts.force) {
42708
+ const roots = getSkillsRoots();
42709
+ const stale = opts.force ? roots : roots.filter((root) => readMarker(root)?.version !== manifest.version);
42710
+ if (stale.length === 0) {
42704
42711
  console.log(
42705
42712
  source_default.dim(
42706
42713
  `
@@ -42710,16 +42717,19 @@ async function skillsInstallCommand(opts) {
42710
42717
  );
42711
42718
  return;
42712
42719
  }
42713
- applyDevSkills(manifest, skillsRoot);
42720
+ for (const root of stale) {
42721
+ applyDevSkills(manifest, root);
42722
+ }
42723
+ const where = stale.map((root) => `${root.replace(os5.homedir(), "~")}/`).join(" and ");
42714
42724
  console.log(
42715
42725
  source_default.green(
42716
42726
  `
42717
- \u2713 Installed ${manifest.skills.length} Melt dev skills (v${manifest.version}) to ~/.claude/skills/.`
42727
+ \u2713 Installed ${manifest.skills.length} Melt dev skills (v${manifest.version}) to ${where}.`
42718
42728
  )
42719
42729
  );
42720
42730
  console.log(
42721
42731
  source_default.dim(
42722
- " Restart Claude Code to load them (they appear as /melt-dev-plan, /melt-dev-review, \u2026).\n"
42732
+ " Restart Claude Code / Cursor to load them (they appear as /melt-dev-plan, /melt-dev-review, \u2026).\n"
42723
42733
  )
42724
42734
  );
42725
42735
  }
@@ -42781,7 +42791,11 @@ async function maybeSyncSkills(commandName) {
42781
42791
  return;
42782
42792
  }
42783
42793
  const oldVersion = marker.version;
42784
- const diff = applyDevSkills(manifest, skillsRoot);
42794
+ let diff = { added: [], changed: [], removed: [] };
42795
+ for (const root of getSkillsRoots()) {
42796
+ const rootDiff = applyDevSkills(manifest, root);
42797
+ if (root === skillsRoot) diff = rootDiff;
42798
+ }
42785
42799
  console.log(source_default.dim(source_default.green(formatSyncNotice(oldVersion, manifest.version, diff))));
42786
42800
  debugLog(`Skills sync: updated ${oldVersion} \u2192 ${manifest.version}`);
42787
42801
  } catch (e) {
@@ -55981,7 +55995,7 @@ ${source_default.dim(" /melt-dev-security-audit Run a security posture audit
55981
55995
  ${source_default.dim(" /melt-dev-help Answer questions about the development playbook")}
55982
55996
 
55983
55997
  ${source_default.bold("Setup")}
55984
- ${source_default.dim(" skills install Install the dev skills (/melt-dev-*) into Claude Code")}
55998
+ ${source_default.dim(" skills install Install the dev skills (/melt-dev-*) into Claude Code (+ Cursor)")}
55985
55999
 
55986
56000
  ${source_default.bold("Admin Commands")} ${source_default.dim("(used by skills and team managers):")}
55987
56001
  ${source_default.dim(" audit submit [file] Submit an audit report")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "5.10.0",
3
+ "version": "5.11.0",
4
4
  "description": "AI-first development tooling for Melt teams — companion CLI for the org-distributed Claude Code dev skills",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",