@plexor-dev/claude-code-plugin 0.1.0-beta.3 → 0.1.0-beta.31
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 +4 -7
- package/commands/plexor-enabled.js +221 -0
- package/commands/plexor-enabled.md +15 -41
- package/commands/plexor-login.js +218 -0
- package/commands/plexor-login.md +13 -62
- package/commands/plexor-logout.js +125 -0
- package/commands/plexor-logout.md +13 -28
- package/commands/plexor-setup.md +172 -0
- package/commands/plexor-status.js +344 -0
- package/commands/plexor-status.md +10 -50
- package/hooks/intercept.js +634 -0
- package/hooks/track-response.js +376 -0
- package/lib/cache.js +107 -0
- package/lib/config.js +67 -0
- package/lib/constants.js +16 -31
- package/lib/index.js +19 -0
- package/lib/logger.js +36 -0
- package/lib/plexor-client.js +122 -0
- package/lib/server-sync.js +237 -0
- package/lib/session.js +156 -0
- package/lib/settings-manager.js +304 -0
- package/package.json +8 -1
- package/scripts/plexor-cli.sh +48 -0
- package/scripts/postinstall.js +216 -24
- package/commands/plexor-config.md +0 -42
- package/commands/plexor-mode.md +0 -47
- package/commands/plexor-provider.md +0 -47
- package/commands/plexor-settings.md +0 -58
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Configure Plexor settings (user)
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Plexor Config
|
|
6
|
-
|
|
7
|
-
View and modify Plexor configuration. This is an alias for /plexor-settings.
|
|
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 Config
|
|
18
|
-
=============
|
|
19
|
-
No configuration found. Run /plexor-login to set up Plexor.
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
**Step 2: Display current configuration**
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
Plexor Config
|
|
26
|
-
=============
|
|
27
|
-
Enabled: [enabled]
|
|
28
|
-
API URL: [apiUrl]
|
|
29
|
-
API Key: [show "configured" if apiKey exists, otherwise "not configured"]
|
|
30
|
-
Mode: [mode]
|
|
31
|
-
Provider: [preferredProvider]
|
|
32
|
-
Local Cache: [localCacheEnabled]
|
|
33
|
-
Timeout: [timeout]ms
|
|
34
|
-
|
|
35
|
-
Configuration file: ~/.plexor/config.json
|
|
36
|
-
|
|
37
|
-
Other commands:
|
|
38
|
-
- /plexor-settings - View/edit all settings
|
|
39
|
-
- /plexor-mode - Change optimization mode
|
|
40
|
-
- /plexor-provider - Change provider
|
|
41
|
-
- /plexor-enabled - Enable/disable proxy
|
|
42
|
-
```
|
package/commands/plexor-mode.md
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Set Plexor optimization mode (eco/balanced/quality/passthrough) (user)
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Plexor Mode
|
|
6
|
-
|
|
7
|
-
Set the Plexor optimization mode to control cost vs quality trade-offs.
|
|
8
|
-
|
|
9
|
-
## Steps
|
|
10
|
-
|
|
11
|
-
**Step 1: Read current configuration**
|
|
12
|
-
|
|
13
|
-
Use the Read tool to read `~/.plexor/config.json` and check the current `mode` setting.
|
|
14
|
-
|
|
15
|
-
**Step 2: Ask user which mode they want**
|
|
16
|
-
|
|
17
|
-
Use the `AskUserQuestion` tool:
|
|
18
|
-
|
|
19
|
-
Question: "Which optimization mode would you like to use?"
|
|
20
|
-
Header: "Mode"
|
|
21
|
-
Options:
|
|
22
|
-
1. **eco** - Maximum savings (~$0.04/1M tokens) - Uses Ministral 3B
|
|
23
|
-
2. **balanced** - Good balance (~$0.15/1M) - DeepSeek, Gemini Flash, Mistral Small
|
|
24
|
-
3. **quality** - Premium models (~$5/1M) - Claude Opus, Gemini Pro, Mistral Large
|
|
25
|
-
4. **passthrough** - No optimization - Direct to requested model
|
|
26
|
-
|
|
27
|
-
**Step 3: Update the configuration**
|
|
28
|
-
|
|
29
|
-
Use the Read tool to get the current config, then use the Write tool to update `~/.plexor/config.json`:
|
|
30
|
-
- Set the `mode` field to the selected value: "eco", "balanced", "quality", or "passthrough"
|
|
31
|
-
|
|
32
|
-
Keep all other settings unchanged.
|
|
33
|
-
|
|
34
|
-
**Step 4: Show confirmation**
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
Plexor Mode: [SELECTED MODE]
|
|
38
|
-
|
|
39
|
-
Mode Details:
|
|
40
|
-
- eco: Maximum cost savings using Ministral 3B ($0.04/$0.04 per 1M tokens)
|
|
41
|
-
- balanced: Cost-first with quality fallbacks (DeepSeek → Gemini Flash → Mistral)
|
|
42
|
-
- quality: Premium models for complex tasks (Claude Opus, Gemini Pro)
|
|
43
|
-
- passthrough: No optimization, direct to Anthropic
|
|
44
|
-
|
|
45
|
-
Current mode: [mode]
|
|
46
|
-
Run /plexor-status to see your savings.
|
|
47
|
-
```
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Force a specific LLM provider (claude/openai/deepseek/mistral/gemini/auto) (user)
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Plexor Provider
|
|
6
|
-
|
|
7
|
-
Set your preferred LLM provider for Plexor routing.
|
|
8
|
-
|
|
9
|
-
## Steps
|
|
10
|
-
|
|
11
|
-
**Step 1: Read current configuration**
|
|
12
|
-
|
|
13
|
-
Use the Read tool to read `~/.plexor/config.json` and check the current `preferredProvider` setting.
|
|
14
|
-
|
|
15
|
-
**Step 2: Ask user which provider they prefer**
|
|
16
|
-
|
|
17
|
-
Use the `AskUserQuestion` tool:
|
|
18
|
-
|
|
19
|
-
Question: "Which LLM provider would you prefer?"
|
|
20
|
-
Header: "Provider"
|
|
21
|
-
Options:
|
|
22
|
-
1. **auto** - Let Plexor choose the best provider based on task (Recommended)
|
|
23
|
-
2. **deepseek** - Use DeepSeek models (cheapest, good for code)
|
|
24
|
-
3. **mistral** - Use Mistral models (fast, good balance)
|
|
25
|
-
4. **gemini** - Use Google Gemini models (good for analysis)
|
|
26
|
-
|
|
27
|
-
**Step 3: Update the configuration**
|
|
28
|
-
|
|
29
|
-
Use the Read tool to get the current config, then use the Write tool to update `~/.plexor/config.json`:
|
|
30
|
-
- Set `preferredProvider` to: "auto", "deepseek", "mistral", or "gemini"
|
|
31
|
-
|
|
32
|
-
Keep all other settings unchanged.
|
|
33
|
-
|
|
34
|
-
**Step 4: Show confirmation**
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
Plexor Provider: [SELECTED PROVIDER]
|
|
38
|
-
|
|
39
|
-
Provider options:
|
|
40
|
-
- auto: Plexor automatically selects the best provider for each task
|
|
41
|
-
- deepseek: DeepSeek models ($0.14/$0.28 per 1M tokens) - Great for code
|
|
42
|
-
- mistral: Mistral models ($0.10/$0.30 per 1M tokens) - Fast and versatile
|
|
43
|
-
- gemini: Google Gemini ($0.075/$0.30 per 1M tokens) - Good for analysis
|
|
44
|
-
|
|
45
|
-
Current provider: [preferredProvider]
|
|
46
|
-
Run /plexor-status to see your usage.
|
|
47
|
-
```
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Configure Plexor settings (API URL, mode, provider preferences) (user)
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Plexor Settings
|
|
6
|
-
|
|
7
|
-
View and configure all Plexor settings.
|
|
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.
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
**Step 2: Display current settings**
|
|
23
|
-
|
|
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
|
|
44
|
-
```
|
|
45
|
-
|
|
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
|
|
57
|
-
|
|
58
|
-
Then update `~/.plexor/config.json` with the new value using the Write tool.
|