@meltstudio/meltctl 4.79.0 → 4.81.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 +25 -1
- 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.81.0";
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -368,6 +368,14 @@ function createPlansResource(config2) {
|
|
|
368
368
|
throw new Error(data.error ?? `Failed to score plan (${status})`);
|
|
369
369
|
return data;
|
|
370
370
|
},
|
|
371
|
+
async getCatalog() {
|
|
372
|
+
const { data, status } = await apiFetch(config2, "/plans/catalog");
|
|
373
|
+
if (status === 403)
|
|
374
|
+
throw new Error("Access denied. Only Team Managers can view the catalog.");
|
|
375
|
+
if (status !== 200)
|
|
376
|
+
throw new Error(data.error ?? `Failed to fetch plan catalog (${status})`);
|
|
377
|
+
return data;
|
|
378
|
+
},
|
|
371
379
|
async getStats(filters) {
|
|
372
380
|
const params = new URLSearchParams();
|
|
373
381
|
if (filters?.projectId)
|
|
@@ -667,6 +675,14 @@ function createFindingsResource(config2) {
|
|
|
667
675
|
throw new Error(data.error ?? `Failed to fetch findings stats (${status})`);
|
|
668
676
|
return data;
|
|
669
677
|
},
|
|
678
|
+
async getCatalog() {
|
|
679
|
+
const { data, status } = await apiFetch(config2, "/findings/catalog");
|
|
680
|
+
if (status === 403)
|
|
681
|
+
throw new Error("Access denied. Only Team Managers can view the catalog.");
|
|
682
|
+
if (status !== 200)
|
|
683
|
+
throw new Error(data.error ?? `Failed to fetch findings catalog (${status})`);
|
|
684
|
+
return data;
|
|
685
|
+
},
|
|
670
686
|
async getStatsByRepository() {
|
|
671
687
|
const { data, status } = await apiFetch(config2, "/findings/stats/by-repository");
|
|
672
688
|
if (status === 403)
|
|
@@ -749,6 +765,14 @@ function createBoardAuditsResource(config2) {
|
|
|
749
765
|
throw new Error(data.error ?? `Failed to fetch board audit (${status})`);
|
|
750
766
|
return data;
|
|
751
767
|
},
|
|
768
|
+
async getCatalog() {
|
|
769
|
+
const { data, status } = await apiFetch(config2, "/board-audits/catalog");
|
|
770
|
+
if (status === 403)
|
|
771
|
+
throw new Error("Access denied. Only Team Managers can view the catalog.");
|
|
772
|
+
if (status !== 200)
|
|
773
|
+
throw new Error(data.error ?? `Failed to fetch catalog (${status})`);
|
|
774
|
+
return data;
|
|
775
|
+
},
|
|
752
776
|
async getLatestByProject() {
|
|
753
777
|
const { data, status } = await apiFetch(config2, "/board-audits/latest-by-project");
|
|
754
778
|
if (status === 403)
|
package/package.json
CHANGED