Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(provider): add Antigravity (Google AGY) provider integration & ACP bridge #4995

Closedumarfaruq0z(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/4995/headopened View on GitHub

Showing 26 changed files with 208 additions and 0 deletions (loading 24).

x
0 of 26 viewed, 26 left
31 additions and 0 deletionsapps/server/src/cli/agy.tsAdded
View file
@@ -0,0 +1,31 @@
+/**
+ * Hidden CLI entry points for the Antigravity ACP bridge.
+ *
+ * Both are internal plumbing rather than user-facing commands: the provider
+ * spawns `t3 agy-acp` as an ACP agent, and that bridge registers `t3 agy-hook
+ * <event>` as Antigravity's tool-lifecycle hook. Shipping them as subcommands
+ * of the server binary keeps the bridge inside the same bundle.
+ *
+ * @module cli/agy
+ */
+import * as Effect from "effect/Effect";
+import { Command, Flag } from "effect/unstable/cli";
+​
+import { runAgyBridge, runAgyHook } from "../provider/acp/antigravity/agyBridge.ts";
+​
+export const agyAcpCommand = Command.make("agy-acp").pipe(
+ Command.withDescription("Run the Antigravity ACP compatibility bridge over stdio."),
+ Command.withHidden,
+ Command.withHandler(() => Effect.promise(() => runAgyBridge())),
+);
+​
+export const agyHookCommand = Command.make("agy-hook", {
+ event: Flag.string("event").pipe(
+ Flag.withDescription("Antigravity hook event name."),
+ Flag.withDefault("unknown"),
+ ),
+}).pipe(
+ Command.withDescription("Handle one Antigravity tool-lifecycle hook event."),
+ Command.withHidden,
+ Command.withHandler(({ event }) => Effect.promise(() => runAgyHook(event))),