@plexor-dev/claude-code-plugin-staging 0.1.0-beta.3 → 0.1.0-beta.4
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-enabled.md +32 -12
- package/package.json +1 -1
|
@@ -4,25 +4,45 @@ description: Enable or disable Plexor proxy (routes all traffic through Plexor A
|
|
|
4
4
|
|
|
5
5
|
# Plexor Enabled
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Toggle Plexor proxy on or off.
|
|
8
|
+
|
|
9
|
+
## If argument provided (on/off/true/false)
|
|
10
|
+
|
|
11
|
+
Run the command directly with the argument:
|
|
8
12
|
|
|
9
13
|
```bash
|
|
10
|
-
node ~/.claude/plugins/plexor/commands/plexor-enabled.js
|
|
14
|
+
node ~/.claude/plugins/plexor/commands/plexor-enabled.js <argument>
|
|
11
15
|
```
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
Then display the output and STOP.
|
|
18
|
+
|
|
19
|
+
## If NO argument provided
|
|
20
|
+
|
|
21
|
+
**Step 1**: First get current status by running:
|
|
14
22
|
|
|
15
23
|
```bash
|
|
16
|
-
node ~/.claude/plugins/plexor/commands/plexor-enabled.js
|
|
17
|
-
node ~/.claude/plugins/plexor/commands/plexor-enabled.js false
|
|
24
|
+
node ~/.claude/plugins/plexor/commands/plexor-enabled.js
|
|
18
25
|
```
|
|
19
26
|
|
|
20
|
-
|
|
27
|
+
**Step 2**: Based on the output, use AskUserQuestion to present options:
|
|
28
|
+
|
|
29
|
+
If currently ENABLED (shows "● Enabled" or "● Active"):
|
|
30
|
+
- Question: "Plexor is currently ON. What would you like to do?"
|
|
31
|
+
- Header: "Plexor"
|
|
32
|
+
- Options:
|
|
33
|
+
1. **Turn OFF** - Disable Plexor routing (connect directly to Anthropic)
|
|
34
|
+
2. **Keep ON** - No change
|
|
35
|
+
|
|
36
|
+
If currently DISABLED (shows "○ Disabled" or "○ Inactive"):
|
|
37
|
+
- Question: "Plexor is currently OFF. What would you like to do?"
|
|
38
|
+
- Header: "Plexor"
|
|
39
|
+
- Options:
|
|
40
|
+
1. **Turn ON** - Enable Plexor routing
|
|
41
|
+
2. **Keep OFF** - No change
|
|
21
42
|
|
|
22
|
-
**
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
- Ask follow-up questions
|
|
43
|
+
**Step 3**: Based on user selection:
|
|
44
|
+
- If "Turn OFF" selected: Run `node ~/.claude/plugins/plexor/commands/plexor-enabled.js false`
|
|
45
|
+
- If "Turn ON" selected: Run `node ~/.claude/plugins/plexor/commands/plexor-enabled.js true`
|
|
46
|
+
- If "Keep" selected: Do nothing, just confirm current state
|
|
27
47
|
|
|
28
|
-
|
|
48
|
+
**IMPORTANT**: After completing, STOP. Do not read files, explore codebase, or run additional commands.
|
package/package.json
CHANGED