@xagent/x-cli 1.1.77 → 1.1.79

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <!-- Test comment for PR creation -->
2
2
 
3
- ## 1.1.77 – Logo Assets & NPM Publication Complete
3
+ ## 1.1.79 – Logo Assets & NPM Publication Complete
4
4
 
5
5
  ✅ **Live on NPM**: [@xagent/x-cli](https://www.npmjs.com/package/@xagent/x-cli) - Fully published and ready for global installation
6
6
 
@@ -356,13 +356,13 @@ Add to `~/.xcli/user-settings.json`:
356
356
 
357
357
  X CLI uses two types of configuration files to manage settings:
358
358
 
359
- ### User-Level Settings (`~/.grok/user-settings.json`)
359
+ ### User-Level Settings (`~/.xcli/config.json`)
360
360
 
361
361
  This file stores **global settings** that apply across all projects. These settings rarely change and include:
362
362
 
363
363
  - **API Key**: Your x.ai API key
364
364
  - **Base URL**: Custom API endpoint (if needed)
365
- - **Default Model**: Your preferred model (e.g., `grok-code-fast-1`)
365
+ - **Default Model**: Your preferred model (e.g., `grok-4-fast-non-reasoning`)
366
366
  - **Available Models**: List of models you can use
367
367
 
368
368
  **Example:**
@@ -371,9 +371,9 @@ This file stores **global settings** that apply across all projects. These setti
371
371
  {
372
372
  "apiKey": "your_api_key_here",
373
373
  "baseURL": "https://api.x.ai/v1",
374
- "defaultModel": "grok-code-fast-1",
374
+ "defaultModel": "grok-4-fast-non-reasoning",
375
375
  "models": [
376
- "grok-code-fast-1",
376
+ "grok-4-fast-non-reasoning",
377
377
  "grok-4-latest",
378
378
  "grok-3-latest",
379
379
  "grok-3-fast",
@@ -382,7 +382,7 @@ This file stores **global settings** that apply across all projects. These setti
382
382
  }
383
383
  ```
384
384
 
385
- ### Project-Level Settings (`.grok/settings.json`)
385
+ ### Project-Level Settings (`.xcli/settings.json`)
386
386
 
387
387
  This file stores **project-specific settings** in your current working directory. It includes:
388
388
 
@@ -410,7 +410,7 @@ This file stores **project-specific settings** in your current working directory
410
410
  1. **Global Defaults**: User-level settings provide your default preferences
411
411
  2. **Project Override**: Project-level settings override defaults for specific projects
412
412
  3. **Directory-Specific**: When you change directories, project settings are loaded automatically
413
- 4. **Fallback Logic**: Project model → User default model → System default (`grok-code-fast-1`)
413
+ 4. **Fallback Logic**: Project model → User default model → System default (`grok-4-fast-non-reasoning`)
414
414
 
415
415
  This means you can have different models for different projects while maintaining consistent global settings like your API key.
416
416
 
@@ -647,7 +647,7 @@ You can specify which AI model to use with the `--model` parameter or `GROK_MODE
647
647
 
648
648
  ```bash
649
649
  # Use x.ai models
650
- xcli --model grok-code-fast-1
650
+ xcli --model grok-4-fast-non-reasoning
651
651
  xcli --model grok-4-latest
652
652
  xcli --model grok-3-latest
653
653
  xcli --model grok-3-fast
@@ -660,7 +660,7 @@ xcli --model claude-sonnet-4-20250514 --base-url https://api-endpoint.com/v1
660
660
  **Method 2: Environment Variable**
661
661
 
662
662
  ```bash
663
- export GROK_MODEL=grok-code-fast-1
663
+ export GROK_MODEL=grok-4-fast-non-reasoning
664
664
  xcli
665
665
  ```
666
666
 
@@ -670,11 +670,11 @@ Add to `~/.xcli/user-settings.json`:
670
670
  ```json
671
671
  {
672
672
  "apiKey": "your_api_key_here",
673
- "defaultModel": "grok-code-fast-1"
673
+ "defaultModel": "grok-4-fast-non-reasoning"
674
674
  }
675
675
  ```
676
676
 
677
- **Model Priority**: `--model` flag > `GROK_MODEL` environment variable > user default model > system default (grok-code-fast-1)
677
+ **Model Priority**: `--model` flag > `GROK_MODEL` environment variable > user default model > system default (grok-4-fast-non-reasoning)
678
678
 
679
679
  ### Command Line Options
680
680
 
@@ -686,7 +686,7 @@ Options:
686
686
  -d, --directory <dir> set working directory
687
687
  -k, --api-key <key> x.ai API key (or set X_API_KEY env var)
688
688
  -u, --base-url <url> x.ai API base URL (or set GROK_BASE_URL env var)
689
- -m, --model <model> AI model to use (e.g., grok-code-fast-1, grok-4-latest) (or set GROK_MODEL env var)
689
+ -m, --model <model> AI model to use (e.g., grok-4-fast-non-reasoning, grok-4-latest) (or set GROK_MODEL env var)
690
690
  -p, --prompt <prompt> process a single prompt and exit (headless mode)
691
691
  --max-tool-rounds <rounds> maximum number of tool execution rounds (default: 400)
692
692
  -h, --help display help for command
@@ -1051,7 +1051,7 @@ curl -I https://api.x.ai/v1/models
1051
1051
  - **File operations fail**: Check that the file path exists and is accessible
1052
1052
  - **Bash commands fail**: Ensure you have the necessary permissions
1053
1053
  - **Tool timeouts**: Complex operations may take time; the spinner indicates progress
1054
- - **Slow responses**: Try a different model with `xcli --model grok-code-fast-1`
1054
+ - **Slow responses**: Try a different model with `xcli --model grok-4-fast-non-reasoning`
1055
1055
 
1056
1056
  ## 🙏 Credits
1057
1057