opencode-studio-server 1.9.2 → 1.9.3
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/index.js +9 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1513,6 +1513,7 @@ app.post('/api/auth/profiles/:provider/:name/activate', (req, res) => {
|
|
|
1513
1513
|
|
|
1514
1514
|
app.delete('/api/auth/profiles/:provider/:name', (req, res) => {
|
|
1515
1515
|
const { provider, name } = req.params;
|
|
1516
|
+
console.log(`[Auth] Deleting profile: ${provider}/${name}`);
|
|
1516
1517
|
const activePlugin = getActiveGooglePlugin();
|
|
1517
1518
|
const namespace = provider === 'google'
|
|
1518
1519
|
? (activePlugin === 'antigravity' ? 'google.antigravity' : 'google.gemini')
|
|
@@ -1520,7 +1521,14 @@ app.delete('/api/auth/profiles/:provider/:name', (req, res) => {
|
|
|
1520
1521
|
|
|
1521
1522
|
const dir = getProfileDir(provider, activePlugin);
|
|
1522
1523
|
const profilePath = path.join(dir, `${name}.json`);
|
|
1523
|
-
|
|
1524
|
+
console.log(`[Auth] Target path: ${profilePath}, Exists: ${fs.existsSync(profilePath)}`);
|
|
1525
|
+
|
|
1526
|
+
if (fs.existsSync(profilePath)) {
|
|
1527
|
+
fs.unlinkSync(profilePath);
|
|
1528
|
+
console.log(`[Auth] Deleted file`);
|
|
1529
|
+
} else {
|
|
1530
|
+
console.log(`[Auth] File not found`);
|
|
1531
|
+
}
|
|
1524
1532
|
|
|
1525
1533
|
const studio = loadStudioConfig();
|
|
1526
1534
|
if (studio.activeProfiles && studio.activeProfiles[provider] === name) {
|