arial-cli 0.1.4 → 0.1.6
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/cli.js +10 -4
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
2
|
-
// @bun
|
|
1
|
+
#!/usr/bin/env node
|
|
3
2
|
import { createRequire } from "node:module";
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -2261,7 +2260,7 @@ var require_main = __commonJS((exports, module) => {
|
|
|
2261
2260
|
});
|
|
2262
2261
|
|
|
2263
2262
|
// src/cli.ts
|
|
2264
|
-
import { parseArgs } from "util";
|
|
2263
|
+
import { parseArgs } from "node:util";
|
|
2265
2264
|
|
|
2266
2265
|
// src/interactive.ts
|
|
2267
2266
|
import { stdin, stdout as stdout2 } from "node:process";
|
|
@@ -2796,7 +2795,7 @@ function isUnicodeSupported() {
|
|
|
2796
2795
|
}
|
|
2797
2796
|
|
|
2798
2797
|
// src/lib/config.ts
|
|
2799
|
-
var VERSION = "0.1.
|
|
2798
|
+
var VERSION = "0.1.6";
|
|
2800
2799
|
var PROMPT_LINE_PREFIX = "●";
|
|
2801
2800
|
var PROMPT_LINE_PREFIX_SAFE = "ai>";
|
|
2802
2801
|
var DEFAULT_MODEL = "gpt-4o";
|
|
@@ -2981,6 +2980,9 @@ Error: Unknown action ${action}`));
|
|
|
2981
2980
|
}
|
|
2982
2981
|
}
|
|
2983
2982
|
}
|
|
2983
|
+
function commandClear() {
|
|
2984
|
+
process.stdout.write("\x1Bc");
|
|
2985
|
+
}
|
|
2984
2986
|
function commandHelp() {
|
|
2985
2987
|
const s = getSymbols();
|
|
2986
2988
|
console.log(source_default.bold.cyan(`
|
|
@@ -3003,6 +3005,7 @@ Available Commands
|
|
|
3003
3005
|
args: " [add|remove] [name] [key]",
|
|
3004
3006
|
desc: "Manage API keys"
|
|
3005
3007
|
},
|
|
3008
|
+
{ cmd: "/clear", args: "", desc: "Clear the screen" },
|
|
3006
3009
|
{ cmd: "/help", args: "", desc: "Show this help message" },
|
|
3007
3010
|
{ cmd: "/exit", args: " or /quit", desc: "Exit the interactive mode" }
|
|
3008
3011
|
];
|
|
@@ -3033,6 +3036,9 @@ ${s.prompt} `));
|
|
|
3033
3036
|
case "/keys":
|
|
3034
3037
|
await commandKeys(session, args);
|
|
3035
3038
|
continue;
|
|
3039
|
+
case "/clear":
|
|
3040
|
+
commandClear();
|
|
3041
|
+
continue;
|
|
3036
3042
|
case "/help":
|
|
3037
3043
|
commandHelp();
|
|
3038
3044
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arial-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "A CLI utility to interact with LLMs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"zod": "^4.1.11"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
|
-
"build": "bun build src/cli.ts --outdir dist --target node",
|
|
37
|
+
"build": "bun build src/cli.ts --outdir dist --target node --format esm",
|
|
38
38
|
"dev": "bun --watch src/cli.ts",
|
|
39
39
|
"start": "bun src/cli.ts",
|
|
40
40
|
"test": "bun test"
|