@plexor-dev/claude-code-plugin 0.1.0-beta.26 → 0.1.0-beta.27
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.
|
@@ -90,8 +90,7 @@ function main() {
|
|
|
90
90
|
if (newEnabled) {
|
|
91
91
|
// Enable routing - need API key from config
|
|
92
92
|
if (apiKey) {
|
|
93
|
-
|
|
94
|
-
const apiUrl = config.settings?.apiUrl || 'https://staging.api.plexor.dev';
|
|
93
|
+
const apiUrl = config.settings?.apiUrl || 'https://api.plexor.dev';
|
|
95
94
|
const useStaging = apiUrl.includes('staging');
|
|
96
95
|
routingUpdated = settingsManager.enablePlexorRouting(apiKey, { useStaging });
|
|
97
96
|
} else {
|
package/commands/plexor-login.js
CHANGED
|
@@ -18,8 +18,7 @@ const { settingsManager } = require('../lib/settings-manager');
|
|
|
18
18
|
|
|
19
19
|
const CONFIG_PATH = path.join(process.env.HOME, '.plexor', 'config.json');
|
|
20
20
|
const PLEXOR_DIR = path.join(process.env.HOME, '.plexor');
|
|
21
|
-
|
|
22
|
-
const DEFAULT_API_URL = 'https://staging.api.plexor.dev';
|
|
21
|
+
const DEFAULT_API_URL = 'https://api.plexor.dev';
|
|
23
22
|
|
|
24
23
|
function loadConfig() {
|
|
25
24
|
try {
|
package/lib/constants.js
CHANGED
|
@@ -11,8 +11,7 @@ const CACHE_PATH = path.join(PLEXOR_DIR, 'cache.json');
|
|
|
11
11
|
|
|
12
12
|
const SESSION_TIMEOUT_MS = 30 * 60 * 1000; // 30 minutes
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
const DEFAULT_API_URL = 'https://staging.api.plexor.dev';
|
|
14
|
+
const DEFAULT_API_URL = 'https://api.plexor.dev';
|
|
16
15
|
const DEFAULT_TIMEOUT = 5000;
|
|
17
16
|
|
|
18
17
|
module.exports = {
|
package/lib/settings-manager.js
CHANGED
|
@@ -74,9 +74,8 @@ class ClaudeSettingsManager {
|
|
|
74
74
|
* @returns {boolean} success status
|
|
75
75
|
*/
|
|
76
76
|
enablePlexorRouting(apiKey, options = {}) {
|
|
77
|
-
// Default to
|
|
78
|
-
|
|
79
|
-
const { useStaging = true } = options;
|
|
77
|
+
// Default to production. Use useStaging: true for staging keys.
|
|
78
|
+
const { useStaging = false } = options;
|
|
80
79
|
const apiUrl = useStaging ? PLEXOR_STAGING_URL : PLEXOR_PROD_URL;
|
|
81
80
|
|
|
82
81
|
try {
|
package/package.json
CHANGED