shariq-pi-extensions 0.2.2 → 0.2.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.
@@ -66,7 +66,12 @@ export default function antigravityProviderExtension(pi: ExtensionAPI) {
66
66
  models: ANTIGRAVITY_MODELS,
67
67
  oauth: {
68
68
  name: PROVIDER_NAME,
69
- login: loginAntigravity as any,
69
+ login: ((callbacks: Parameters<typeof loginAntigravity>[0]) => {
70
+ // Pi replaces its single stored provider credential after login. Archive
71
+ // the current account first so signing into another account cannot lose it.
72
+ migrateStoredCredential();
73
+ return loginAntigravity(callbacks);
74
+ }) as any,
70
75
  refreshToken: refreshAntigravityToken as any,
71
76
  getApiKey: getApiKey as any,
72
77
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shariq-pi-extensions",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Cross-platform extension suite for the Pi coding agent.",
5
5
  "license": "MIT",
6
6
  "author": "Shariq Riaz",