@meltstudio/meltctl 4.192.1 → 4.194.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 +49 -1
- package/package.json +4 -4
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.194.0";
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -1546,6 +1546,30 @@ function createProfileAuditsResource(config) {
|
|
|
1546
1546
|
throw new Error(errMessage ?? `Failed to fetch profile audit stats (${status})`);
|
|
1547
1547
|
}
|
|
1548
1548
|
return data;
|
|
1549
|
+
},
|
|
1550
|
+
/** Read whether the on-demand "Run audit" button is currently
|
|
1551
|
+
* clickable, along with the last-run timestamp + cooldown window
|
|
1552
|
+
* the dashboard renders. Manager-only. */
|
|
1553
|
+
async getRunStatus() {
|
|
1554
|
+
const { data, status } = await apiFetch(config, "/profile-audits/status");
|
|
1555
|
+
if (status === 403)
|
|
1556
|
+
throw new Error("Access denied. Only Team Managers can read profile audit status.");
|
|
1557
|
+
if (status !== 200)
|
|
1558
|
+
throw new Error(data.error ?? `Failed to fetch profile audit status (${status})`);
|
|
1559
|
+
return data;
|
|
1560
|
+
},
|
|
1561
|
+
/** Enqueue a one-off profile audit run. Returns the new job id +
|
|
1562
|
+
* the refreshed status (so the button can flip to disabled on the
|
|
1563
|
+
* client without waiting for a re-fetch). Resolves with the
|
|
1564
|
+
* cooldown / in-flight payload on 429 so the dashboard can render
|
|
1565
|
+
* the same disabled-with-reason UI without a special error path. */
|
|
1566
|
+
async runNow() {
|
|
1567
|
+
const { data, status } = await apiFetch(config, "/profile-audits/run", { method: "POST" });
|
|
1568
|
+
if (status === 403)
|
|
1569
|
+
throw new Error("Access denied. Only Team Managers can run profile audits.");
|
|
1570
|
+
if (status !== 202 && status !== 429)
|
|
1571
|
+
throw new Error(data.error ?? `Failed to start profile audit (${status})`);
|
|
1572
|
+
return data;
|
|
1549
1573
|
}
|
|
1550
1574
|
};
|
|
1551
1575
|
}
|
|
@@ -4807,6 +4831,30 @@ function createProfileAuditsResource2(config) {
|
|
|
4807
4831
|
throw new Error(errMessage ?? `Failed to fetch profile audit stats (${status})`);
|
|
4808
4832
|
}
|
|
4809
4833
|
return data;
|
|
4834
|
+
},
|
|
4835
|
+
/** Read whether the on-demand "Run audit" button is currently
|
|
4836
|
+
* clickable, along with the last-run timestamp + cooldown window
|
|
4837
|
+
* the dashboard renders. Manager-only. */
|
|
4838
|
+
async getRunStatus() {
|
|
4839
|
+
const { data, status } = await apiFetch2(config, "/profile-audits/status");
|
|
4840
|
+
if (status === 403)
|
|
4841
|
+
throw new Error("Access denied. Only Team Managers can read profile audit status.");
|
|
4842
|
+
if (status !== 200)
|
|
4843
|
+
throw new Error(data.error ?? `Failed to fetch profile audit status (${status})`);
|
|
4844
|
+
return data;
|
|
4845
|
+
},
|
|
4846
|
+
/** Enqueue a one-off profile audit run. Returns the new job id +
|
|
4847
|
+
* the refreshed status (so the button can flip to disabled on the
|
|
4848
|
+
* client without waiting for a re-fetch). Resolves with the
|
|
4849
|
+
* cooldown / in-flight payload on 429 so the dashboard can render
|
|
4850
|
+
* the same disabled-with-reason UI without a special error path. */
|
|
4851
|
+
async runNow() {
|
|
4852
|
+
const { data, status } = await apiFetch2(config, "/profile-audits/run", { method: "POST" });
|
|
4853
|
+
if (status === 403)
|
|
4854
|
+
throw new Error("Access denied. Only Team Managers can run profile audits.");
|
|
4855
|
+
if (status !== 202 && status !== 429)
|
|
4856
|
+
throw new Error(data.error ?? `Failed to start profile audit (${status})`);
|
|
4857
|
+
return data;
|
|
4810
4858
|
}
|
|
4811
4859
|
};
|
|
4812
4860
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meltstudio/meltctl",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.194.0",
|
|
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",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"author": "Melt Studio",
|
|
48
48
|
"license": "UNLICENSED",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@commander-js/extra-typings": "^
|
|
50
|
+
"@commander-js/extra-typings": "^14",
|
|
51
51
|
"@inquirer/prompts": "^8.2.1",
|
|
52
52
|
"@modelcontextprotocol/sdk": "^1.18.0",
|
|
53
53
|
"chalk": "^5.4.1",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
"@meltstudio/meltctl-mcp": "*",
|
|
61
61
|
"@meltstudio/meltctl-sdk": "*",
|
|
62
62
|
"@types/fs-extra": "^11.0.4",
|
|
63
|
-
"@types/node": "^
|
|
63
|
+
"@types/node": "^25.6.2",
|
|
64
64
|
"@typescript-eslint/eslint-plugin": "^8.19.0",
|
|
65
65
|
"@typescript-eslint/parser": "^8.19.0",
|
|
66
66
|
"eslint": "^9.17.0",
|
|
67
67
|
"eslint-config-prettier": "^10.1.8",
|
|
68
68
|
"eslint-plugin-prettier": "^5.2.1",
|
|
69
|
-
"prettier": "^3.
|
|
69
|
+
"prettier": "^3.8",
|
|
70
70
|
"tsup": "^8.5.1",
|
|
71
71
|
"tsx": "^4.19.5",
|
|
72
72
|
"typescript": "^5.7.3"
|