@plexor-dev/claude-code-plugin-staging 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.
|
@@ -243,7 +243,8 @@ 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://
|
|
246
|
+
console.log(`│ https://staging.plexorlabs.com/ │`);
|
|
247
|
+
console.log(`│ api-keys.html │`);
|
|
247
248
|
console.log(`└─────────────────────────────────────────────┘`);
|
|
248
249
|
process.exit(1);
|
|
249
250
|
}
|
package/commands/plexor-login.js
CHANGED
|
@@ -262,7 +262,8 @@ 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://
|
|
265
|
+
console.log(`│ https://staging.plexorlabs.com/ │`);
|
|
266
|
+
console.log(`│ api-keys.html │`);
|
|
266
267
|
console.log(`├─────────────────────────────────────────────┤`);
|
|
267
268
|
console.log(`│ Secure usage (recommended): │`);
|
|
268
269
|
console.log(`│ echo "plx_..." | /plexor-login │`);
|
package/commands/plexor-setup.md
CHANGED
|
@@ -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://
|
|
16
|
+
`Please paste your Plexor API key (starts with plx_). You can get one at https://staging.plexorlabs.com/api-keys.html.`
|
|
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
|
-
//
|
|
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
|
-
|
|
282
|
-
|
|
283
|
-
|
|
280
|
+
if (url.hostname === '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
|
}
|
package/lib/verify-route.js
CHANGED
|
@@ -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