vigthoria-cli 1.11.46 → 1.11.47

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.
@@ -63,9 +63,11 @@ function syncSharedConfig(config) {
63
63
  if (config.user?.email) {
64
64
  shared.set('email', String(config.user.email));
65
65
  }
66
- if (config.v3ServiceKey) {
67
- shared.set('v3ServiceKey', config.v3ServiceKey);
68
- }
66
+ // Always overwrite (never conditionally skip) so a fresh login can never
67
+ // leave a stale/rotated key behind from a prior session — a falsy value
68
+ // here explicitly clears the cache, forcing ensureV3ServiceKey() to fetch
69
+ // a real one on next use instead of silently trusting stale state.
70
+ shared.set('v3ServiceKey', config.v3ServiceKey || null);
69
71
  }
70
72
  catch {
71
73
  // Keep legacy auth flow working even if shared config write fails.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vigthoria-cli",
3
- "version": "1.11.46",
3
+ "version": "1.11.47",
4
4
  "description": "Vigthoria Coder CLI - AI-powered terminal coding assistant",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",