@meltstudio/meltctl 4.153.0 → 4.154.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/index.js +27 -10
  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.153.0";
17
+ CLI_VERSION = "4.154.1";
18
18
  }
19
19
  });
20
20
 
@@ -659,8 +659,12 @@ function createPeopleResource(config) {
659
659
  // ../sdk/dist/resources/projects.js
660
660
  function createProjectsResource(config) {
661
661
  return {
662
- async list() {
663
- const { data, status } = await apiFetch(config, "/projects");
662
+ async list(opts) {
663
+ const params = new URLSearchParams();
664
+ if (opts?.activeOnly)
665
+ params.set("activeOnly", "true");
666
+ const path9 = `/projects${params.toString() ? `?${params}` : ""}`;
667
+ const { data, status } = await apiFetch(config, path9);
664
668
  if (status === 403)
665
669
  throw new Error("Access denied. Only Team Managers can view projects.");
666
670
  if (status !== 200)
@@ -2672,21 +2676,30 @@ import path5 from "path";
2672
2676
  import { execSync as execSync4 } from "child_process";
2673
2677
  function getGitBranch() {
2674
2678
  try {
2675
- return execSync4("git rev-parse --abbrev-ref HEAD", { encoding: "utf-8" }).trim();
2679
+ return execSync4("git rev-parse --abbrev-ref HEAD", {
2680
+ encoding: "utf-8",
2681
+ stdio: ["pipe", "pipe", "ignore"]
2682
+ }).trim();
2676
2683
  } catch {
2677
2684
  return "unknown";
2678
2685
  }
2679
2686
  }
2680
2687
  function getGitCommit() {
2681
2688
  try {
2682
- return execSync4("git rev-parse --short HEAD", { encoding: "utf-8" }).trim();
2689
+ return execSync4("git rev-parse --short HEAD", {
2690
+ encoding: "utf-8",
2691
+ stdio: ["pipe", "pipe", "ignore"]
2692
+ }).trim();
2683
2693
  } catch {
2684
2694
  return "unknown";
2685
2695
  }
2686
2696
  }
2687
2697
  function getGitRepository() {
2688
2698
  try {
2689
- const url = execSync4("git remote get-url origin", { encoding: "utf-8" }).trim();
2699
+ const url = execSync4("git remote get-url origin", {
2700
+ encoding: "utf-8",
2701
+ stdio: ["pipe", "pipe", "ignore"]
2702
+ }).trim();
2690
2703
  const match = url.match(/[/:]([\w.-]+\/[\w.-]+?)(?:\.git)?$/);
2691
2704
  const slug = match ? match[1] : url;
2692
2705
  return { slug, url };
@@ -3518,8 +3531,12 @@ function createPeopleResource2(config) {
3518
3531
  }
3519
3532
  function createProjectsResource2(config) {
3520
3533
  return {
3521
- async list() {
3522
- const { data, status } = await apiFetch2(config, "/projects");
3534
+ async list(opts) {
3535
+ const params = new URLSearchParams();
3536
+ if (opts?.activeOnly)
3537
+ params.set("activeOnly", "true");
3538
+ const path22 = `/projects${params.toString() ? `?${params}` : ""}`;
3539
+ const { data, status } = await apiFetch2(config, path22);
3523
3540
  if (status === 403)
3524
3541
  throw new Error("Access denied. Only Team Managers can view projects.");
3525
3542
  if (status !== 200)
@@ -4544,7 +4561,7 @@ function withClientArgs(getClient2, handler) {
4544
4561
  };
4545
4562
  }
4546
4563
  async function listProjects(client) {
4547
- return safe(() => client.projects.list());
4564
+ return safe(() => client.projects.list({ activeOnly: true }));
4548
4565
  }
4549
4566
  async function getProjectSettings(client, input3) {
4550
4567
  return safe(() => client.pm.getProjectSettings(input3.projectId));
@@ -4557,7 +4574,7 @@ function registerProjectTools(server, getClient2) {
4557
4574
  "list_projects",
4558
4575
  {
4559
4576
  title: "List projects",
4560
- description: "Lists every Melt project the authenticated user can see. Use this to resolve a project's name to its numeric `projectId` before calling any other tool. Returns id, name, client, project manager, and repo count per project.",
4577
+ description: "Lists every actively-managed Melt project the authenticated user can see \u2014 i.e. projects with a project manager assigned. Use this to resolve a project's name to its numeric `projectId` before calling any other tool. Returns id, name, client, project manager, and repo count per project. Projects without a PM are unmanaged and intentionally excluded; create_feature / assign_feature_to_phase against an unmanaged project will succeed but is rarely intended.",
4561
4578
  inputSchema: {}
4562
4579
  },
4563
4580
  withClient(getClient2, listProjects)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meltstudio/meltctl",
3
- "version": "4.153.0",
3
+ "version": "4.154.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",