opencode-copilot-account-switcher 0.12.2 → 0.12.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.
@@ -92,6 +92,7 @@ function mapAuthEntryToOpenAI(entry) {
92
92
  refresh: entry.refresh,
93
93
  access: entry.access,
94
94
  expires: entry.expires,
95
+ accountId: entry.accountId,
95
96
  };
96
97
  }
97
98
  async function defaultLoadAuthWithFallback(input) {
package/dist/store.d.ts CHANGED
@@ -10,6 +10,7 @@ export type AccountEntry = {
10
10
  refresh: string;
11
11
  access: string;
12
12
  expires: number;
13
+ accountId?: string;
13
14
  enterpriseUrl?: string;
14
15
  user?: string;
15
16
  email?: string;
package/dist/store.js CHANGED
@@ -188,6 +188,7 @@ export async function readAuth(filePath) {
188
188
  refresh: info.refresh ?? info.access,
189
189
  access: info.access ?? info.refresh,
190
190
  expires: info.expires ?? 0,
191
+ accountId: info.accountId,
191
192
  enterpriseUrl: info.enterpriseUrl,
192
193
  source: "auth",
193
194
  providerId: key,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-copilot-account-switcher",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "description": "GitHub Copilot account switcher plugin for OpenCode",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",