@meltstudio/meltctl 4.33.0 → 4.33.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.
package/dist/index.js CHANGED
@@ -48,7 +48,7 @@ ${chalk.dim(' /melt-help Answer questions about the development pla
48
48
  .hook('preAction', async () => {
49
49
  await checkAndEnforceUpdate();
50
50
  })
51
- .hook('postAction', (_thisCommand, actionCommand) => {
51
+ .hook('postAction', async (_thisCommand, actionCommand) => {
52
52
  try {
53
53
  const parts = [];
54
54
  let cmd = actionCommand;
@@ -56,7 +56,7 @@ ${chalk.dim(' /melt-help Answer questions about the development pla
56
56
  parts.unshift(cmd.name());
57
57
  cmd = cmd.parent;
58
58
  }
59
- trackCommand(parts.join(' '), true);
59
+ await trackCommand(parts.join(' '), true);
60
60
  }
61
61
  catch {
62
62
  // Analytics must never break the CLI
@@ -21,7 +21,9 @@ export async function trackCommand(command, success, errorMessage) {
21
21
  return;
22
22
  }
23
23
  const repo = getGitRepository();
24
- fetch(`${API_BASE}/events`, {
24
+ const controller = new AbortController();
25
+ const timeout = setTimeout(() => controller.abort(), 3000);
26
+ await fetch(`${API_BASE}/events`, {
25
27
  method: 'POST',
26
28
  headers: {
27
29
  Authorization: `Bearer ${auth.token}`,
@@ -36,7 +38,9 @@ export async function trackCommand(command, success, errorMessage) {
36
38
  success,
37
39
  errorMessage: errorMessage?.slice(0, 500) ?? null,
38
40
  }),
41
+ signal: controller.signal,
39
42
  }).catch(() => { });
43
+ clearTimeout(timeout);
40
44
  }
41
45
  catch {
42
46
  // Analytics must never break the CLI
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "4.33.0",
3
+ "version": "4.33.1",
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",