@meltstudio/meltctl 4.78.0 → 4.80.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 +17 -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.80.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)
|
|
@@ -749,6 +757,14 @@ function createBoardAuditsResource(config2) {
|
|
|
749
757
|
throw new Error(data.error ?? `Failed to fetch board audit (${status})`);
|
|
750
758
|
return data;
|
|
751
759
|
},
|
|
760
|
+
async getCatalog() {
|
|
761
|
+
const { data, status } = await apiFetch(config2, "/board-audits/catalog");
|
|
762
|
+
if (status === 403)
|
|
763
|
+
throw new Error("Access denied. Only Team Managers can view the catalog.");
|
|
764
|
+
if (status !== 200)
|
|
765
|
+
throw new Error(data.error ?? `Failed to fetch catalog (${status})`);
|
|
766
|
+
return data;
|
|
767
|
+
},
|
|
752
768
|
async getLatestByProject() {
|
|
753
769
|
const { data, status } = await apiFetch(config2, "/board-audits/latest-by-project");
|
|
754
770
|
if (status === 403)
|
package/package.json
CHANGED