@cortexkit/pi-antigravity-auth 1.0.0 → 1.1.0
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/README.md +7 -2
- package/dist/convert.d.ts +1 -1
- package/dist/convert.d.ts.map +1 -1
- package/dist/credential-cache.d.ts +13 -0
- package/dist/credential-cache.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +524 -67
- package/dist/index.js.map +4 -4
- package/dist/stream.d.ts +4 -1
- package/dist/stream.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Antigravity's endpoints.
|
|
|
11
11
|
## Install
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
pi
|
|
14
|
+
pi install npm:@cortexkit/pi-antigravity-auth
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Login
|
|
@@ -28,12 +28,17 @@ callback URL (or authorization code) back into the prompt.
|
|
|
28
28
|
The extension registers the Antigravity model catalog under the
|
|
29
29
|
`google-antigravity` provider, including:
|
|
30
30
|
|
|
31
|
+
- `antigravity-gemini-3.6-flash`
|
|
31
32
|
- `antigravity-gemini-3.5-flash`
|
|
32
33
|
- `antigravity-gemini-3.1-pro`
|
|
33
34
|
- `antigravity-claude-sonnet-4-6-thinking`
|
|
34
35
|
- `antigravity-claude-opus-4-6-thinking`
|
|
36
|
+
- `antigravity-gpt-oss-120b-medium`
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
The image-generation model is currently OpenCode-only because Pi's provider event
|
|
39
|
+
protocol does not expose image-output stream events.
|
|
40
|
+
|
|
41
|
+
Select a model with `/model` or `pi -m google-antigravity/antigravity-gemini-3.6-flash`.
|
|
37
42
|
|
|
38
43
|
## Configuration
|
|
39
44
|
|
package/dist/convert.d.ts
CHANGED
package/dist/convert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert.d.ts","sourceRoot":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
/**
|
|
2
|
+
* In-process bridge for the packed refresh string.
|
|
3
|
+
*
|
|
4
|
+
* pi's provider framework extracts the bearer token via `oauth.getApiKey` and
|
|
5
|
+
* passes only that access token to `streamSimple` (as `options.apiKey`). The
|
|
6
|
+
* packed refresh (`refreshToken|projectId|managedProjectId`) that login/refresh
|
|
7
|
+
* resolved is therefore not visible to the stream. We cache it here, keyed by
|
|
8
|
+
* the access token, so the stream can recover the managed-project context and
|
|
9
|
+
* avoid a redundant loadCodeAssist round-trip on every turn.
|
|
10
|
+
*/
|
|
11
|
+
export declare function rememberPackedRefresh(accessToken: string, packedRefresh: string): void;
|
|
12
|
+
export declare function getPackedRefresh(accessToken: string): string | undefined;
|
|
13
|
+
//# sourceMappingURL=credential-cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-cache.d.ts","sourceRoot":"","sources":["../src/credential-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI,CAStF;AAED,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAExE"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAkEnE,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,EAAE,EAAE,YAAY,GAAG,IAAI,CAkCzE"}
|