@meltstudio/meltctl 5.5.0 → 5.6.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 +23 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7450,7 +7450,7 @@ var CLI_VERSION;
|
|
|
7450
7450
|
var init_version = __esm({
|
|
7451
7451
|
"src/utils/version.ts"() {
|
|
7452
7452
|
"use strict";
|
|
7453
|
-
CLI_VERSION = "5.
|
|
7453
|
+
CLI_VERSION = "5.6.0";
|
|
7454
7454
|
}
|
|
7455
7455
|
});
|
|
7456
7456
|
|
|
@@ -27333,6 +27333,17 @@ function createPmResource(config2) {
|
|
|
27333
27333
|
});
|
|
27334
27334
|
unwrap("delete scenario", res);
|
|
27335
27335
|
},
|
|
27336
|
+
/**
|
|
27337
|
+
* Create a feature scoped to a project, from the portal planner. Client-
|
|
27338
|
+
* accessible (anyone planning a scenario can add one); the path projectId
|
|
27339
|
+
* scopes it so a client can't create elsewhere. Brand-new features start at
|
|
27340
|
+
* `idea` — set a target by adding it to a scenario. Distinct from
|
|
27341
|
+
* createFeature (manager-only, supports phase memberships + migration).
|
|
27342
|
+
*/
|
|
27343
|
+
async createProjectFeature(projectId, input) {
|
|
27344
|
+
const res = await apiFetch(config2, `/pm/projects/${projectId}/features`, { method: "POST", body: JSON.stringify(input) });
|
|
27345
|
+
return unwrap("create project feature", res, 201);
|
|
27346
|
+
},
|
|
27336
27347
|
/** Promote a draft scenario into a real active phase. */
|
|
27337
27348
|
async promoteScenario(id, opts) {
|
|
27338
27349
|
const res = await apiFetch(config2, `/pm/scenarios/${id}/promote`, {
|
|
@@ -53608,6 +53619,17 @@ function createPmResource2(config2) {
|
|
|
53608
53619
|
});
|
|
53609
53620
|
unwrap2("delete scenario", res);
|
|
53610
53621
|
},
|
|
53622
|
+
/**
|
|
53623
|
+
* Create a feature scoped to a project, from the portal planner. Client-
|
|
53624
|
+
* accessible (anyone planning a scenario can add one); the path projectId
|
|
53625
|
+
* scopes it so a client can't create elsewhere. Brand-new features start at
|
|
53626
|
+
* `idea` — set a target by adding it to a scenario. Distinct from
|
|
53627
|
+
* createFeature (manager-only, supports phase memberships + migration).
|
|
53628
|
+
*/
|
|
53629
|
+
async createProjectFeature(projectId, input) {
|
|
53630
|
+
const res = await apiFetch2(config2, `/pm/projects/${projectId}/features`, { method: "POST", body: JSON.stringify(input) });
|
|
53631
|
+
return unwrap2("create project feature", res, 201);
|
|
53632
|
+
},
|
|
53611
53633
|
/** Promote a draft scenario into a real active phase. */
|
|
53612
53634
|
async promoteScenario(id, opts) {
|
|
53613
53635
|
const res = await apiFetch2(config2, `/pm/scenarios/${id}/promote`, {
|
package/package.json
CHANGED