opencode-studio-server 1.0.10 → 1.0.11

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.
Files changed (2) hide show
  1. package/index.js +8 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -989,13 +989,14 @@ function setActiveProfile(provider, profileName) {
989
989
  saveStudioConfig(studioConfig);
990
990
  }
991
991
 
992
- function verifyActiveProfile(p, n, c) { if (!n || !c) return false; const d = loadAuthProfile(p, n); if (!d) return false; return JSON.stringify(d) === JSON.stringify(c); }
993
- app.get('/api/auth/profiles', (req, res) => {
994
- ensureAuthProfilesDir();
995
- const activeProfiles = getActiveProfiles();
996
- const authConfig = loadAuthConfig() || {};
997
-
998
- const profiles = {};
992
+ function verifyActiveProfile(p, n, c) { console.log("Verifying:", p, n); if (!n || !c) return false; const d = loadAuthProfile(p, n); if (d && c) { console.log("Profile refresh:", d.refresh); console.log("Current refresh:", c.refresh); } if (!d) return false; return JSON.stringify(d) === JSON.stringify(c); }
993
+
994
+ app.get('/api/auth/profiles', (req, res) => {
995
+ ensureAuthProfilesDir();
996
+ const activeProfiles = getActiveProfiles();
997
+ const authConfig = loadAuthConfig() || {};
998
+
999
+ const profiles = {};
999
1000
 
1000
1001
  Object.keys(PROVIDER_DISPLAY_NAMES).forEach(provider => {
1001
1002
  const providerProfiles = listAuthProfiles(provider);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-studio-server",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Backend server for OpenCode Studio - manages opencode configurations",
5
5
  "main": "index.js",
6
6
  "bin": {