@plexor-dev/claude-code-plugin-staging 0.1.0-beta.4 → 0.1.0-beta.5
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-login.js +0 -14
- package/lib/settings-manager.js +5 -2
- package/package.json +1 -1
package/commands/plexor-login.js
CHANGED
|
@@ -80,20 +80,6 @@ function validateApiKey(apiUrl, apiKey) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
async function promptForApiKey() {
|
|
84
|
-
const rl = readline.createInterface({
|
|
85
|
-
input: process.stdin,
|
|
86
|
-
output: process.stdout
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
return new Promise((resolve) => {
|
|
90
|
-
rl.question('Enter your Plexor API key: ', (answer) => {
|
|
91
|
-
rl.close();
|
|
92
|
-
resolve(answer.trim());
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
|
|
97
83
|
async function main() {
|
|
98
84
|
const args = process.argv.slice(2);
|
|
99
85
|
let apiKey = args[0];
|
package/lib/settings-manager.js
CHANGED
|
@@ -38,7 +38,10 @@ class ClaudeSettingsManager {
|
|
|
38
38
|
const data = fs.readFileSync(this.settingsPath, 'utf8');
|
|
39
39
|
return JSON.parse(data);
|
|
40
40
|
} catch (err) {
|
|
41
|
-
//
|
|
41
|
+
// Log unexpected errors (not ENOENT which is handled above)
|
|
42
|
+
if (err.code !== 'ENOENT') {
|
|
43
|
+
console.warn('Warning: Failed to load Claude settings:', err.message);
|
|
44
|
+
}
|
|
42
45
|
return {};
|
|
43
46
|
}
|
|
44
47
|
}
|
|
@@ -55,7 +58,7 @@ class ClaudeSettingsManager {
|
|
|
55
58
|
fs.mkdirSync(this.claudeDir, { recursive: true });
|
|
56
59
|
}
|
|
57
60
|
|
|
58
|
-
fs.writeFileSync(this.settingsPath, JSON.stringify(settings, null, 2));
|
|
61
|
+
fs.writeFileSync(this.settingsPath, JSON.stringify(settings, null, 2), { mode: 0o600 });
|
|
59
62
|
return true;
|
|
60
63
|
} catch (err) {
|
|
61
64
|
console.error('Failed to save Claude settings:', err.message);
|
package/package.json
CHANGED