@meltstudio/meltctl 4.67.0 → 4.69.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 +26 -1
  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.67.0";
17
+ CLI_VERSION = "4.69.0";
18
18
  }
19
19
  });
20
20
 
@@ -357,6 +357,31 @@ function createPlansResource(config2) {
357
357
  if (status !== 200)
358
358
  throw new Error(data.error ?? `Failed to fetch plan (${status})`);
359
359
  return data;
360
+ },
361
+ async score(planId) {
362
+ const { data, status } = await apiFetch(config2, `/plans/score/${planId}`, { method: "POST" });
363
+ if (status === 403)
364
+ throw new Error("Access denied. Only Team Managers can score plans.");
365
+ if (status === 404)
366
+ throw new Error(`Plan not found: ${planId}`);
367
+ if (status !== 200)
368
+ throw new Error(data.error ?? `Failed to score plan (${status})`);
369
+ return data;
370
+ },
371
+ async getStats(filters) {
372
+ const params = new URLSearchParams();
373
+ if (filters?.projectId)
374
+ params.set("projectId", String(filters.projectId));
375
+ if (filters?.author)
376
+ params.set("author", filters.author);
377
+ const query = params.toString();
378
+ const path8 = `/plans/stats${query ? `?${query}` : ""}`;
379
+ const { data, status } = await apiFetch(config2, path8);
380
+ if (status === 403)
381
+ throw new Error("Access denied. Only Team Managers can view plan stats.");
382
+ if (status !== 200)
383
+ throw new Error(data.error ?? `Failed to fetch plan stats (${status})`);
384
+ return data;
360
385
  }
361
386
  };
362
387
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "4.67.0",
3
+ "version": "4.69.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",