@plexor-dev/claude-code-plugin-staging 0.1.0-beta.20 → 0.1.0-beta.21

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.
@@ -243,7 +243,7 @@ function main() {
243
243
  console.log(`│ Run /plexor-setup first. │`);
244
244
  console.log(`├─────────────────────────────────────────────┤`);
245
245
  console.log(`│ Get your API key at: │`);
246
- console.log(`│ https://plexor.dev/dashboard/api-keys │`);
246
+ console.log(`│ https://staging.plexorlabs.com │`);
247
247
  console.log(`└─────────────────────────────────────────────┘`);
248
248
  process.exit(1);
249
249
  }
@@ -262,7 +262,7 @@ async function main() {
262
262
  console.log(`│ Human first-run: /plexor-setup │`);
263
263
  console.log(`├─────────────────────────────────────────────┤`);
264
264
  console.log(`│ Get your API key at: │`);
265
- console.log(`│ https://plexor.dev/dashboard/api-keys │`);
265
+ console.log(`│ https://staging.plexorlabs.com │`);
266
266
  console.log(`├─────────────────────────────────────────────┤`);
267
267
  console.log(`│ Secure usage (recommended): │`);
268
268
  console.log(`│ echo "plx_..." | /plexor-login │`);
@@ -13,7 +13,7 @@ node ~/.claude/plugins/plexor/commands/plexor-setup.js $ARGUMENTS
13
13
 
14
14
  If the user did not provide a key yet, ask them:
15
15
 
16
- `Please paste your Plexor API key (starts with plx_). You can get one at https://plexor.dev/dashboard.`
16
+ `Please paste your Plexor API key (starts with plx_). You can get one at https://staging.plexorlabs.com.`
17
17
 
18
18
  After the user replies with the key, run:
19
19
 
@@ -272,15 +272,17 @@ async function main() {
272
272
  const cacheEnabled = localCache ? 'Enabled' : 'Disabled';
273
273
  const cacheRate = formatPct((summary.cache_hit_rate || 0) * 100);
274
274
 
275
- // Build dashboard URL from API URL
276
- // API: https://api.plexor.dev or https://staging.api.plexor.dev
277
- // Dashboard: https://plexor.dev/dashboard or https://staging.plexor.dev/dashboard
275
+ // Build dashboard URL from API URL.
276
+ // Staging uses a separate dashboard host.
278
277
  let dashboardUrl = 'https://plexor.dev/dashboard';
279
278
  try {
280
279
  const url = new URL(apiUrl);
281
- // Remove 'api.' prefix from hostname if present
282
- const host = url.hostname.replace(/^api\./, '').replace(/\.api\./, '.');
283
- dashboardUrl = `${url.protocol}//${host}/dashboard`;
280
+ if (url.hostname.includes('staging.api.plexor.dev')) {
281
+ dashboardUrl = 'https://staging.plexorlabs.com/dashboard';
282
+ } else {
283
+ const host = url.hostname.replace(/^api\./, '').replace(/\.api\./, '.');
284
+ dashboardUrl = `${url.protocol}//${host}/dashboard`;
285
+ }
284
286
  } catch {
285
287
  // If URL parsing fails, use default
286
288
  }
@@ -8,6 +8,12 @@ function normalizeVerifyOutput(output = '') {
8
8
  return String(output).trim();
9
9
  }
10
10
 
11
+ function createVerifyEnv(sourceEnv = process.env) {
12
+ const env = { ...sourceEnv };
13
+ delete env.CLAUDECODE;
14
+ return env;
15
+ }
16
+
11
17
  function interpretVerifyResult(result = {}) {
12
18
  const stdout = normalizeVerifyOutput(result.stdout);
13
19
  const stderr = normalizeVerifyOutput(result.stderr);
@@ -59,7 +65,7 @@ function runClaudeRouteVerification(options = {}, runCommand = spawnSync) {
59
65
  VERIFY_PROMPT
60
66
  ], {
61
67
  cwd: options.cwd || HOME_DIR,
62
- env: options.env || process.env,
68
+ env: createVerifyEnv(options.env || process.env),
63
69
  encoding: 'utf8',
64
70
  timeout: options.timeoutMs || 30000,
65
71
  maxBuffer: 1024 * 1024
@@ -71,6 +77,7 @@ function runClaudeRouteVerification(options = {}, runCommand = spawnSync) {
71
77
  module.exports = {
72
78
  EXPECTED_VERIFY_RESPONSE,
73
79
  VERIFY_PROMPT,
80
+ createVerifyEnv,
74
81
  interpretVerifyResult,
75
82
  normalizeVerifyOutput,
76
83
  runClaudeRouteVerification
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexor-dev/claude-code-plugin-staging",
3
- "version": "0.1.0-beta.20",
3
+ "version": "0.1.0-beta.21",
4
4
  "description": "STAGING - LLM cost optimization plugin for Claude Code (internal testing)",
5
5
  "main": "lib/constants.js",
6
6
  "bin": {