@llmtune/cli 0.1.7 → 0.1.8
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.
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PermissionManager = void 0;
|
|
7
|
-
const prompts_1 =
|
|
7
|
+
const prompts_1 = require("@inquirer/prompts");
|
|
8
8
|
const chalk_1 = __importDefault(require("chalk"));
|
|
9
9
|
class PermissionManager {
|
|
10
10
|
config;
|
|
@@ -35,14 +35,14 @@ class PermissionManager {
|
|
|
35
35
|
: JSON.stringify(input).slice(0, 100);
|
|
36
36
|
console.log(chalk_1.default.yellow(`\n⚠ ${toolName} wants to execute:`));
|
|
37
37
|
console.log(chalk_1.default.dim(preview));
|
|
38
|
-
const confirmed = await prompts_1.
|
|
38
|
+
const confirmed = await (0, prompts_1.confirm)({
|
|
39
39
|
message: `Allow ${toolName}? (y/N)`,
|
|
40
40
|
default: false,
|
|
41
41
|
});
|
|
42
42
|
if (!confirmed) {
|
|
43
43
|
return { behavior: "deny", message: "User denied" };
|
|
44
44
|
}
|
|
45
|
-
const alwaysTrust = await prompts_1.
|
|
45
|
+
const alwaysTrust = await (0, prompts_1.confirm)({
|
|
46
46
|
message: `Trust ${toolName} for this session? (y/N)`,
|
|
47
47
|
default: false,
|
|
48
48
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmtune/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "LLMTune CLI -AI CLI Agent powered by llmtune.io",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
"lint": "tsc --noEmit",
|
|
14
14
|
"test": "npm run build && node scripts/smoke-test.js"
|
|
15
15
|
},
|
|
16
|
-
"keywords": [
|
|
16
|
+
"keywords": [
|
|
17
|
+
"llmtune",
|
|
18
|
+
"cli",
|
|
19
|
+
"ai",
|
|
20
|
+
"agent",
|
|
21
|
+
"coding"
|
|
22
|
+
],
|
|
17
23
|
"license": "MIT",
|
|
18
24
|
"engines": {
|
|
19
25
|
"node": ">=18.0.0"
|