@cavi-ai/antigravity 0.2.0 → 0.2.2
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/CHANGELOG.md +12 -0
- package/README.md +4 -1
- package/openclaw.plugin.json +2 -3
- package/package.json +1 -1
- package/src/index.js +1 -1
- package/src/register.js +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.2
|
|
4
|
+
|
|
5
|
+
- Route Control UI login through the credential-only provider connection flow.
|
|
6
|
+
This avoids inference-gated setup, which cannot safely use `agy` because the
|
|
7
|
+
CLI does not expose a hard tool-free mode.
|
|
8
|
+
|
|
9
|
+
## 0.2.1
|
|
10
|
+
|
|
11
|
+
- Register `before_prompt_build` with `api.on` so the plugin loads on current
|
|
12
|
+
OpenClaw hosts. `0.2.0` called `registerHook` without a name and aborted
|
|
13
|
+
registration with `hook registration missing name`.
|
|
14
|
+
|
|
3
15
|
## 0.2.0
|
|
4
16
|
|
|
5
17
|
- Add provider-owned guided setup that validates the external `agy` session
|
package/README.md
CHANGED
|
@@ -37,7 +37,10 @@ Restart the OpenClaw Gateway after installation.
|
|
|
37
37
|
|
|
38
38
|
## Connect
|
|
39
39
|
|
|
40
|
-
In
|
|
40
|
+
In the Control UI, open **Models → Providers**, choose **Connect**, and select
|
|
41
|
+
**Antigravity CLI**. The plugin validates the existing `agy` session and makes
|
|
42
|
+
its models available without creating a separate credential or changing the
|
|
43
|
+
default model.
|
|
41
44
|
|
|
42
45
|
## Use
|
|
43
46
|
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "antigravity",
|
|
3
3
|
"name": "Antigravity CLI",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"description": "Runs Google's Antigravity CLI (agy) as a subscription-backed model provider.",
|
|
6
6
|
"enabledByDefault": false,
|
|
7
7
|
"activation": {
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"provider": "antigravity-cli",
|
|
26
26
|
"method": "cli",
|
|
27
27
|
"choiceId": "antigravity-cli",
|
|
28
|
-
"
|
|
29
|
-
"appGuidedActionLabel": "Reconnect",
|
|
28
|
+
"credentialOnly": true,
|
|
30
29
|
"choiceLabel": "Antigravity CLI",
|
|
31
30
|
"choiceHint": "Use an existing Antigravity CLI (agy) login on this host. Run `agy models` to confirm.",
|
|
32
31
|
"groupId": "antigravity",
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export const PLUGIN_ID = "antigravity";
|
|
|
7
7
|
export const plugin = {
|
|
8
8
|
id: PLUGIN_ID,
|
|
9
9
|
name: "Antigravity CLI",
|
|
10
|
-
version: "0.2.
|
|
10
|
+
version: "0.2.2",
|
|
11
11
|
description: "Runs Google's Antigravity CLI (agy) as a subscription-backed model provider.",
|
|
12
12
|
register: registerAntigravity,
|
|
13
13
|
};
|
package/src/register.js
CHANGED
|
@@ -8,17 +8,18 @@ const ANTIGRAVITY_OPENCLAW_CONTEXT = [
|
|
|
8
8
|
"Do not change global OpenClaw or mcporter configuration unless the user explicitly asks.",
|
|
9
9
|
].join(" ");
|
|
10
10
|
|
|
11
|
+
function injectOpenClawGuidance(_event, context) {
|
|
12
|
+
return context?.modelProviderId === "antigravity-cli"
|
|
13
|
+
? { prependContext: ANTIGRAVITY_OPENCLAW_CONTEXT }
|
|
14
|
+
: undefined;
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
/** Shared by runtime entry and package-root setup-api. */
|
|
12
18
|
export function registerAntigravity(api) {
|
|
13
19
|
const config = api?.pluginConfig ?? {};
|
|
14
20
|
api.registerProvider(buildAntigravityProvider(config));
|
|
15
21
|
api.registerCliBackend(buildAntigravityCliBackend(config));
|
|
16
|
-
api.registerHook
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
context?.modelProviderId === "antigravity-cli"
|
|
20
|
-
? { prependContext: ANTIGRAVITY_OPENCLAW_CONTEXT }
|
|
21
|
-
: undefined,
|
|
22
|
-
{ registrationId: "antigravity-openclaw-cli-guidance" },
|
|
23
|
-
);
|
|
22
|
+
// Typed lifecycle hooks only fire through api.on. registerHook("before_prompt_build")
|
|
23
|
+
// is ignored, and without opts.name it throws and aborts the whole plugin.
|
|
24
|
+
api.on?.("before_prompt_build", injectOpenClawGuidance);
|
|
24
25
|
}
|