@meltstudio/meltctl 4.52.0 → 4.54.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 +25 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var CLI_VERSION;
14
14
  var init_version = __esm({
15
15
  "src/utils/version.ts"() {
16
16
  "use strict";
17
- CLI_VERSION = "4.52.0";
17
+ CLI_VERSION = "4.54.0";
18
18
  }
19
19
  });
20
20
 
@@ -16011,6 +16011,16 @@ async function trackCommand(command, success2, errorMessage) {
16011
16011
  }
16012
16012
  }
16013
16013
 
16014
+ // src/commands/event.ts
16015
+ async function eventTrackCommand(options) {
16016
+ const skill = options.skill;
16017
+ if (!skill) {
16018
+ console.error("--skill is required");
16019
+ process.exit(1);
16020
+ }
16021
+ await trackCommand(`skill:${skill}`, true);
16022
+ }
16023
+
16014
16024
  // src/index.ts
16015
16025
  init_version();
16016
16026
  var program = new Command();
@@ -16035,6 +16045,14 @@ ${chalk16.dim(" /melt-ux-audit Review UI against usability heuristics")
16035
16045
  ${chalk16.dim(" /melt-security-audit Run a security posture audit across the platform")}
16036
16046
  ${chalk16.dim(" /melt-update Update Melt skills to the latest version")}
16037
16047
  ${chalk16.dim(" /melt-help Answer questions about the development playbook")}
16048
+
16049
+ ${chalk16.bold("Admin Commands")} ${chalk16.dim("(used by skills and team managers):")}
16050
+ ${chalk16.dim(" audit submit [file] Submit an audit report")}
16051
+ ${chalk16.dim(" audit list List audits (managers only)")}
16052
+ ${chalk16.dim(" audit view <id> View a specific audit (managers only)")}
16053
+ ${chalk16.dim(" plan submit [file] Submit or update a plan")}
16054
+ ${chalk16.dim(" plan list List plans (managers only)")}
16055
+ ${chalk16.dim(" event track --skill Track skill usage (called by skills automatically)")}
16038
16056
  `
16039
16057
  ).hook("preAction", async () => {
16040
16058
  await checkAndEnforceUpdate();
@@ -16087,7 +16105,7 @@ program.command("feedback").description("send feedback and coins to a teammate")
16087
16105
  program.command("coins").description("check your coin balance or the team leaderboard").option("--leaderboard", "show the team leaderboard").action(async (options) => {
16088
16106
  await coinsCommand(options);
16089
16107
  });
16090
- var audit = program.command("audit").description("submit and list audits").addHelpText(
16108
+ var audit = program.command("audit", { hidden: true }).description("submit and list audits").addHelpText(
16091
16109
  "after",
16092
16110
  `
16093
16111
  ${chalk16.dim("Related skills (run in your AI coding tool):")}
@@ -16105,7 +16123,7 @@ audit.command("list").description("list submitted audits (Team Managers only)").
16105
16123
  audit.command("view").description("view a submitted audit by ID (Team Managers only)").argument("<id>", "audit ID").option("-o, --output <file>", "save to file instead of printing").action(async (id, options) => {
16106
16124
  await auditViewCommand(id, options);
16107
16125
  });
16108
- var plan = program.command("plan").description("submit and list plans").addHelpText(
16126
+ var plan = program.command("plan", { hidden: true }).description("submit and list plans").addHelpText(
16109
16127
  "after",
16110
16128
  `
16111
16129
  ${chalk16.dim("Related skill (run in your AI coding tool):")}
@@ -16118,6 +16136,10 @@ plan.command("submit").description("submit or update a plan from a markdown file
16118
16136
  plan.command("list").description("list submitted plans (Team Managers only)").option("--repository <repo>", "filter by repository (owner/repo)").option("--author <email>", "filter by author email").option("--limit <n>", "max results (default 50, max 200)").action(async (options) => {
16119
16137
  await planListCommand(options);
16120
16138
  });
16139
+ var event = program.command("event", { hidden: true }).description("manage analytics events");
16140
+ event.command("track").description("track a skill usage event").requiredOption("--skill <name>", "skill name (e.g. plan, audit, review)").action(async (options) => {
16141
+ await eventTrackCommand(options);
16142
+ });
16121
16143
  program.command("update").description("update meltctl to the latest version").action(async () => {
16122
16144
  await updateCommand();
16123
16145
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "4.52.0",
3
+ "version": "4.54.0",
4
4
  "description": "AI-first development tools for teams - set up AGENTS.md, Claude Code, Cursor, and OpenCode standards",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",