@plexor-dev/claude-code-plugin 0.1.0-beta.20 → 0.1.0-beta.22
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/commands/plexor-config.js +170 -0
- package/commands/plexor-config.md +15 -31
- package/commands/plexor-enabled.js +91 -0
- package/commands/plexor-enabled.md +14 -42
- package/commands/plexor-login.js +169 -0
- package/commands/plexor-login.md +13 -72
- package/commands/plexor-logout.js +92 -0
- package/commands/plexor-logout.md +13 -30
- package/commands/plexor-mode.js +107 -0
- package/commands/plexor-mode.md +14 -36
- package/commands/plexor-provider.js +110 -0
- package/commands/plexor-provider.md +14 -36
- package/commands/plexor-settings.js +155 -0
- package/commands/plexor-settings.md +14 -46
- package/commands/plexor-status.js +0 -0
- package/lib/plexor-client.js +1 -1
- package/package.json +11 -1
|
@@ -4,57 +4,25 @@ description: Configure Plexor settings (API URL, mode, provider preferences) (us
|
|
|
4
4
|
|
|
5
5
|
# Plexor Settings
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Run this command to view or update settings:
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
**Step 1: Read current configuration**
|
|
12
|
-
|
|
13
|
-
Use the Read tool to read `~/.plexor/config.json`.
|
|
14
|
-
|
|
15
|
-
If the file doesn't exist, show:
|
|
16
|
-
```
|
|
17
|
-
Plexor Settings
|
|
18
|
-
===============
|
|
19
|
-
No configuration found. Run /plexor-login to set up Plexor.
|
|
9
|
+
```bash
|
|
10
|
+
node ~/.claude/plugins/plexor/commands/plexor-settings.js
|
|
20
11
|
```
|
|
21
12
|
|
|
22
|
-
|
|
13
|
+
To update a setting:
|
|
23
14
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Plexor Settings
|
|
28
|
-
===============
|
|
29
|
-
Enabled: [enabled - true/false]
|
|
30
|
-
API URL: [apiUrl]
|
|
31
|
-
API Key: plx_****[last 4 chars] (configured/not configured)
|
|
32
|
-
Mode: [mode]
|
|
33
|
-
Provider: [preferredProvider]
|
|
34
|
-
Local Cache: [localCacheEnabled - enabled/disabled]
|
|
35
|
-
Timeout: [timeout]ms
|
|
36
|
-
|
|
37
|
-
Quick Commands:
|
|
38
|
-
- /plexor-enabled - Toggle proxy on/off
|
|
39
|
-
- /plexor-mode - Change optimization mode
|
|
40
|
-
- /plexor-provider - Change provider preference
|
|
41
|
-
- /plexor-status - View usage statistics
|
|
42
|
-
|
|
43
|
-
Dashboard: https://plexor.dev/dashboard
|
|
15
|
+
```bash
|
|
16
|
+
node ~/.claude/plugins/plexor/commands/plexor-settings.js cache true
|
|
17
|
+
node ~/.claude/plugins/plexor/commands/plexor-settings.js timeout 10000
|
|
44
18
|
```
|
|
45
19
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
If the user specifies they want to change something, use the `AskUserQuestion` tool:
|
|
49
|
-
|
|
50
|
-
Question: "Which setting would you like to change?"
|
|
51
|
-
Header: "Setting"
|
|
52
|
-
Options:
|
|
53
|
-
1. **API URL** - Change the Plexor API endpoint
|
|
54
|
-
2. **Mode** - Change optimization mode (eco/balanced/quality)
|
|
55
|
-
3. **Provider** - Change preferred provider
|
|
56
|
-
4. **Timeout** - Change request timeout
|
|
20
|
+
Use the Bash tool to execute this command.
|
|
57
21
|
|
|
58
|
-
|
|
22
|
+
**IMPORTANT**: After running this command and displaying the output, STOP. Do not:
|
|
23
|
+
- Read any files
|
|
24
|
+
- Explore the codebase
|
|
25
|
+
- Run additional commands
|
|
26
|
+
- Ask follow-up questions
|
|
59
27
|
|
|
60
|
-
|
|
28
|
+
The command output is the complete response. Simply show the output and wait for the user's next input.
|
|
File without changes
|
package/lib/plexor-client.js
CHANGED
|
@@ -31,7 +31,7 @@ class PlexorClient {
|
|
|
31
31
|
'Content-Type': 'application/json',
|
|
32
32
|
'X-API-Key': this.apiKey,
|
|
33
33
|
'X-Plexor-Key': this.apiKey,
|
|
34
|
-
'User-Agent': 'plexor-claude-code-plugin/0.1.0'
|
|
34
|
+
'User-Agent': 'plexor-claude-code-plugin/0.1.0-beta.22'
|
|
35
35
|
},
|
|
36
36
|
timeout: this.timeout
|
|
37
37
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plexor-dev/claude-code-plugin",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.22",
|
|
4
4
|
"description": "LLM cost optimization plugin for Claude Code - Save up to 90% on AI costs",
|
|
5
5
|
"main": "lib/constants.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"plexor-status": "./commands/plexor-status.js",
|
|
8
|
+
"plexor-mode": "./commands/plexor-mode.js",
|
|
9
|
+
"plexor-enabled": "./commands/plexor-enabled.js",
|
|
10
|
+
"plexor-provider": "./commands/plexor-provider.js",
|
|
11
|
+
"plexor-login": "./commands/plexor-login.js",
|
|
12
|
+
"plexor-logout": "./commands/plexor-logout.js",
|
|
13
|
+
"plexor-settings": "./commands/plexor-settings.js",
|
|
14
|
+
"plexor-config": "./commands/plexor-config.js"
|
|
15
|
+
},
|
|
6
16
|
"scripts": {
|
|
7
17
|
"postinstall": "node scripts/postinstall.js",
|
|
8
18
|
"preuninstall": "node scripts/uninstall.js",
|