arial-cli 0.1.5 → 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.
Files changed (2) hide show
  1. package/dist/cli.js +8 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2795,7 +2795,7 @@ function isUnicodeSupported() {
2795
2795
  }
2796
2796
 
2797
2797
  // src/lib/config.ts
2798
- var VERSION = "0.1.5";
2798
+ var VERSION = "0.1.6";
2799
2799
  var PROMPT_LINE_PREFIX = "●";
2800
2800
  var PROMPT_LINE_PREFIX_SAFE = "ai>";
2801
2801
  var DEFAULT_MODEL = "gpt-4o";
@@ -2980,6 +2980,9 @@ Error: Unknown action ${action}`));
2980
2980
  }
2981
2981
  }
2982
2982
  }
2983
+ function commandClear() {
2984
+ process.stdout.write("\x1Bc");
2985
+ }
2983
2986
  function commandHelp() {
2984
2987
  const s = getSymbols();
2985
2988
  console.log(source_default.bold.cyan(`
@@ -3002,6 +3005,7 @@ Available Commands
3002
3005
  args: " [add|remove] [name] [key]",
3003
3006
  desc: "Manage API keys"
3004
3007
  },
3008
+ { cmd: "/clear", args: "", desc: "Clear the screen" },
3005
3009
  { cmd: "/help", args: "", desc: "Show this help message" },
3006
3010
  { cmd: "/exit", args: " or /quit", desc: "Exit the interactive mode" }
3007
3011
  ];
@@ -3032,6 +3036,9 @@ ${s.prompt} `));
3032
3036
  case "/keys":
3033
3037
  await commandKeys(session, args);
3034
3038
  continue;
3039
+ case "/clear":
3040
+ commandClear();
3041
+ continue;
3035
3042
  case "/help":
3036
3043
  commandHelp();
3037
3044
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arial-cli",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "A CLI utility to interact with LLMs",
5
5
  "type": "module",
6
6
  "bin": {