pi-xai-oauth 0.1.0 → 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.
- package/README.md +33 -15
- package/package.json +3 -2
- package/preview.jpeg +0 -0
package/README.md
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
xAI (Grok) provider extension for Pi with clean OAuth-style login.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This package adds full support for Grok models (including reasoning) through the official xAI API.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
+
# Recommended
|
|
8
9
|
pi install npm:pi-xai-oauth
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
# Or install from GitHub
|
|
12
|
+
pi install git:github.com/BlockedPath/pi-xai-oauth
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
## Usage
|
|
14
16
|
|
|
15
|
-
After installing, authenticate
|
|
17
|
+
After installing, authenticate using:
|
|
16
18
|
|
|
17
19
|
```bash
|
|
18
20
|
pi /login xai-oauth
|
|
19
21
|
```
|
|
20
22
|
|
|
21
|
-
Then select any Grok model
|
|
23
|
+
Then select any supported Grok model with `/model` or `--model`.
|
|
22
24
|
|
|
23
25
|
## Supported Models
|
|
24
26
|
|
|
@@ -27,22 +29,38 @@ Then select any Grok model via `/model`.
|
|
|
27
29
|
- `grok-4`
|
|
28
30
|
- `grok-4.3` (1M context)
|
|
29
31
|
|
|
30
|
-
All models support extended
|
|
31
|
-
|
|
32
|
-
## Configuration
|
|
32
|
+
All models support extended thinking with levels: `low`, `medium`, `high`.
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
## Quick Reference
|
|
35
35
|
|
|
36
|
-
|
|
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` |
|
|
37
43
|
|
|
38
44
|
## Authentication
|
|
39
45
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
After installing, run:
|
|
46
|
+
Run:
|
|
43
47
|
|
|
44
48
|
```bash
|
|
45
49
|
pi /login xai-oauth
|
|
46
50
|
```
|
|
47
51
|
|
|
48
|
-
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,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-xai-oauth",
|
|
3
|
-
"version": "
|
|
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",
|
|
7
7
|
"pi": {
|
|
8
|
-
"extensions": ["./extensions"]
|
|
8
|
+
"extensions": ["./extensions"],
|
|
9
|
+
"image": "https://raw.githubusercontent.com/BlockedPath/pi-xai-oauth/main/preview.jpeg"
|
|
9
10
|
},
|
|
10
11
|
"peerDependencies": {
|
|
11
12
|
"@earendil-works/pi-coding-agent": "*",
|
package/preview.jpeg
ADDED
|
Binary file
|