@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.
@@ -4,57 +4,25 @@ description: Configure Plexor settings (API URL, mode, provider preferences) (us
4
4
 
5
5
  # Plexor Settings
6
6
 
7
- View and configure all Plexor settings.
7
+ Run this command to view or update settings:
8
8
 
9
- ## Steps
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
- **Step 2: Display current settings**
13
+ To update a setting:
23
14
 
24
- Show the current configuration:
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
- **Step 3: If user wants to change a setting**
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
- Then update `~/.plexor/config.json` with the new value using the Write tool.
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
- **IMPORTANT**: After completing the task, STOP. Do not run additional commands or explore the codebase.
28
+ The command output is the complete response. Simply show the output and wait for the user's next input.
File without changes
@@ -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.20",
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",