@cortexkit/pi-antigravity-auth 1.0.1 → 2.0.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 +11 -3
- package/dist/convert.d.ts.map +1 -1
- package/dist/credential-cache.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +295 -1550
- package/dist/index.js.map +4 -4
- package/dist/stream.d.ts +10 -2
- package/dist/stream.d.ts.map +1 -1
- package/package.json +6 -8
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
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { Context } from
|
|
1
|
+
import type { Context } from '@earendil-works/pi-ai';
|
|
2
2
|
/** Gemini `contents` part shapes. */
|
|
3
3
|
type GeminiPart = {
|
|
4
4
|
text: string;
|
|
5
|
+
thought?: boolean;
|
|
6
|
+
thoughtSignature?: string;
|
|
5
7
|
} | {
|
|
6
8
|
inlineData: {
|
|
7
9
|
mimeType: string;
|
|
@@ -11,16 +13,18 @@ type GeminiPart = {
|
|
|
11
13
|
functionCall: {
|
|
12
14
|
name: string;
|
|
13
15
|
args: Record<string, unknown>;
|
|
16
|
+
id: string;
|
|
14
17
|
};
|
|
15
18
|
thoughtSignature?: string;
|
|
16
19
|
} | {
|
|
17
20
|
functionResponse: {
|
|
18
21
|
name: string;
|
|
19
22
|
response: Record<string, unknown>;
|
|
23
|
+
id: string;
|
|
20
24
|
};
|
|
21
25
|
};
|
|
22
26
|
interface GeminiContent {
|
|
23
|
-
role:
|
|
27
|
+
role: 'user' | 'model';
|
|
24
28
|
parts: GeminiPart[];
|
|
25
29
|
}
|
|
26
30
|
interface GeminiTool {
|
|
@@ -37,10 +41,14 @@ export interface GeminiRequest {
|
|
|
37
41
|
parts: GeminiPart[];
|
|
38
42
|
};
|
|
39
43
|
}
|
|
44
|
+
export interface BuildGeminiRequestOptions {
|
|
45
|
+
provider?: string;
|
|
46
|
+
model?: string;
|
|
47
|
+
}
|
|
40
48
|
/**
|
|
41
49
|
* Convert a pi `Context` into a Gemini `generateContent` request body
|
|
42
50
|
* (the inner `request` object of the Antigravity envelope).
|
|
43
51
|
*/
|
|
44
|
-
export declare function buildGeminiRequest(context: Context): GeminiRequest;
|
|
52
|
+
export declare function buildGeminiRequest(context: Context, options?: BuildGeminiRequestOptions): GeminiRequest;
|
|
45
53
|
export {};
|
|
46
54
|
//# sourceMappingURL=convert.d.ts.map
|
package/dist/convert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"convert.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,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAiGD;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,yBAAyB,GAClC,aAAa,CAef"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-cache.d.ts","sourceRoot":"","sources":["../src/credential-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,wBAAgB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"credential-cache.d.ts","sourceRoot":"","sources":["../src/credential-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,GACpB,IAAI,CASN;AAED,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAExE"}
|
package/dist/index.d.ts
CHANGED
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;AAkEnE,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAAC,EAAE,EAAE,YAAY,GAAG,IAAI,
|
|
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"}
|