@jvittechs/jai1-cli 0.1.98 → 0.1.99

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 CHANGED
@@ -33,7 +33,7 @@ var NetworkError = class extends Jai1Error {
33
33
  // package.json
34
34
  var package_default = {
35
35
  name: "@jvittechs/jai1-cli",
36
- version: "0.1.98",
36
+ version: "0.1.99",
37
37
  description: "A unified CLI tool for JV-IT TECHS developers to manage Jai1 Framework. Please contact TeamAI for usage instructions.",
38
38
  type: "module",
39
39
  bin: {
@@ -5638,14 +5638,14 @@ async function handleWebChat(options) {
5638
5638
  }
5639
5639
  }
5640
5640
  async function handleChatCommand(options) {
5641
- if (options.web) {
5642
- await handleWebChat(options);
5643
- } else {
5641
+ if (options.terminal) {
5644
5642
  await handleTerminalChat(options);
5643
+ } else {
5644
+ await handleWebChat(options);
5645
5645
  }
5646
5646
  }
5647
5647
  function createChatCommand() {
5648
- const cmd = new Command12("chat").description("Interactive AI chat with Jai1 LLM Proxy").option("--model <model>", "Initial model to use (e.g., gpt-4o, claude-3-opus)").option("--web", "Open chat in web browser instead of terminal").option("--port <port>", "Port for web server (default: auto-find available port)").option("--no-open", "Don't auto-open browser (web mode only)").action(async (options) => {
5648
+ const cmd = new Command12("chat").description("AI chat with Jai1 LLM Proxy (default: web browser)").option("--model <model>", "Initial model to use (e.g., gpt-4o, claude-3-opus)").option("-t, --terminal", "Use terminal TUI mode instead of web browser").option("--port <port>", "Port for web server (default: auto-find available port)").option("--no-open", "Don't auto-open browser (web mode only)").action(async (options) => {
5649
5649
  await handleChatCommand(options);
5650
5650
  });
5651
5651
  return cmd;