@meltstudio/meltctl 4.153.0 → 4.154.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.
- package/dist/index.js +15 -7
- 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.
|
|
17
|
+
CLI_VERSION = "4.154.0";
|
|
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
|
|
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)
|
|
@@ -3518,8 +3522,12 @@ function createPeopleResource2(config) {
|
|
|
3518
3522
|
}
|
|
3519
3523
|
function createProjectsResource2(config) {
|
|
3520
3524
|
return {
|
|
3521
|
-
async list() {
|
|
3522
|
-
const
|
|
3525
|
+
async list(opts) {
|
|
3526
|
+
const params = new URLSearchParams();
|
|
3527
|
+
if (opts?.activeOnly)
|
|
3528
|
+
params.set("activeOnly", "true");
|
|
3529
|
+
const path22 = `/projects${params.toString() ? `?${params}` : ""}`;
|
|
3530
|
+
const { data, status } = await apiFetch2(config, path22);
|
|
3523
3531
|
if (status === 403)
|
|
3524
3532
|
throw new Error("Access denied. Only Team Managers can view projects.");
|
|
3525
3533
|
if (status !== 200)
|
|
@@ -4544,7 +4552,7 @@ function withClientArgs(getClient2, handler) {
|
|
|
4544
4552
|
};
|
|
4545
4553
|
}
|
|
4546
4554
|
async function listProjects(client) {
|
|
4547
|
-
return safe(() => client.projects.list());
|
|
4555
|
+
return safe(() => client.projects.list({ activeOnly: true }));
|
|
4548
4556
|
}
|
|
4549
4557
|
async function getProjectSettings(client, input3) {
|
|
4550
4558
|
return safe(() => client.pm.getProjectSettings(input3.projectId));
|
|
@@ -4557,7 +4565,7 @@ function registerProjectTools(server, getClient2) {
|
|
|
4557
4565
|
"list_projects",
|
|
4558
4566
|
{
|
|
4559
4567
|
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.",
|
|
4568
|
+
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
4569
|
inputSchema: {}
|
|
4562
4570
|
},
|
|
4563
4571
|
withClient(getClient2, listProjects)
|
package/package.json
CHANGED