pi-xai-oauth 1.0.1 → 1.0.2

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/README.md +32 -17
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,27 +1,26 @@
1
- # pi-xai-oauth
1
+ xAI (Grok) provider extension for Pi with clean OAuth-style login.
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/pi-xai-oauth.svg)](https://www.npmjs.com/package/pi-xai-oauth)
4
- [![npm downloads](https://img.shields.io/npm/dm/pi-xai-oauth.svg)](https://www.npmjs.com/package/pi-xai-oauth)
5
-
6
- xAI (Grok) model provider with OAuth login support for pi.
3
+ This package adds full support for Grok models (including reasoning) through the official xAI API.
7
4
 
8
5
  ## Installation
9
6
 
10
7
  ```bash
8
+ # Recommended
11
9
  pi install npm:pi-xai-oauth
12
- # or
10
+
11
+ # Or install from GitHub
13
12
  pi install git:github.com/BlockedPath/pi-xai-oauth
14
13
  ```
15
14
 
16
15
  ## Usage
17
16
 
18
- After installing, authenticate with:
17
+ After installing, authenticate using:
19
18
 
20
19
  ```bash
21
20
  pi /login xai-oauth
22
21
  ```
23
22
 
24
- Then select any Grok model via `/model`.
23
+ Then select any supported Grok model with `/model` or `--model`.
25
24
 
26
25
  ## Supported Models
27
26
 
@@ -30,22 +29,38 @@ Then select any Grok model via `/model`.
30
29
  - `grok-4`
31
30
  - `grok-4.3` (1M context)
32
31
 
33
- All models support extended reasoning with thinking levels (`low` / `medium` / `high`).
34
-
35
- ## Configuration
32
+ All models support extended thinking with levels: `low`, `medium`, `high`.
36
33
 
37
- The extension registers the provider as `xai-oauth`.
34
+ ## Quick Reference
38
35
 
39
- You can override the base URL or add custom headers via `~/.pi/agent/models.json` if needed.
36
+ | Action | Command |
37
+ |---------------------------|--------------------------------------|
38
+ | Install | `pi install npm:pi-xai-oauth` |
39
+ | Try without installing | `pi -e npm:pi-xai-oauth` |
40
+ | Update | `pi update npm:pi-xai-oauth` |
41
+ | Remove | `pi remove npm:pi-xai-oauth` |
42
+ | List installed packages | `pi list` |
40
43
 
41
44
  ## Authentication
42
45
 
43
- This package uses a clean prompt-based flow for xAI API keys.
44
-
45
- After installing, run:
46
+ Run:
46
47
 
47
48
  ```bash
48
49
  pi /login xai-oauth
49
50
  ```
50
51
 
51
- Then paste your key from https://console.x.ai
52
+ Then paste your xAI API key from https://console.x.ai
53
+
54
+ ## Updating the Package
55
+
56
+ ```bash
57
+ # 1. Bump version in package.json
58
+ # 2. Publish new version
59
+ npm publish
60
+ ```
61
+
62
+ Users can update with:
63
+
64
+ ```bash
65
+ pi update npm:pi-xai-oauth
66
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-xai-oauth",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "xAI (Grok) provider with OAuth support for pi",
5
5
  "keywords": ["pi-package"],
6
6
  "license": "MIT",