genaicode 2.27.0 → 2.28.1

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.
@@ -1,21 +1,52 @@
1
- import { type AgentOutputParser } from '../cli-agent.js';
1
+ import type { AgentOutputParser } from '../cli-agent.js';
2
2
  import { type PermissionFlags } from '../permissions.js';
3
- import type { AgentPermissions, AgentTask, CodingAgent } from '../types.js';
3
+ import type { AgentEvent, AgentPermissions, AgentTask, CodingAgent, McpServer } from '../types.js';
4
+ import { type JsonObject } from './json.js';
4
5
  export interface AntigravityAgentOptions {
5
6
  /** Executable name or path. Default `agy`. */
6
7
  command?: string;
7
- /** Permission mode (`--mode`). Default `accept-edits`: edits run, other tools follow permission rules. */
8
+ /** Permission mode (`session/set_mode` / `--mode`). Default `accept-edits`: edits run, other tools follow permission rules. */
8
9
  mode?: string;
9
10
  /** Run terminal commands in Antigravity's sandbox (`--sandbox`). Default true. */
10
11
  sandbox?: boolean;
12
+ /** How long to wait for the ACP server to acknowledge setup requests. Default 60 s. */
13
+ requestTimeoutMs?: number;
11
14
  }
12
- /** Antigravity CLI in print mode (`agy --output-format stream-json --print ...`). */
15
+ /**
16
+ * Antigravity CLI over its Agent Client Protocol stdio server (`agy acp`).
17
+ * Supports `mcpServers`, `resume`, `steer()`, and routes permission prompts to `task.onApproval`.
18
+ */
13
19
  export declare function antigravity(options?: AntigravityAgentOptions): CodingAgent;
20
+ /** CLI arguments for `agy acp`. */
21
+ export declare function antigravityAcpArgs(task: AgentTask, options?: AntigravityAgentOptions): string[];
22
+ /** Formats `task.mcpServers` for `agy acp` `session/new` and `session/resume`. */
23
+ export declare function antigravityMcpServers(servers: readonly McpServer[]): Record<string, unknown>[];
24
+ interface ActiveTool {
25
+ name: string;
26
+ kind?: string;
27
+ paths: string[];
28
+ input?: JsonObject;
29
+ }
30
+ /**
31
+ * Antigravity names an MCP tool `mcp_<server>_<tool>`; other drivers report `mcp__<server>__<tool>`.
32
+ * Rename a tool of an attached server to that form, so apps match MCP tools the same way for every agent.
33
+ */
34
+ export declare function antigravityToolName(name: string, servers: readonly string[]): string;
35
+ /** Events for one ACP `session/update` (exported for tests). */
36
+ export declare function antigravityUpdateEvents(update: unknown, tools: Map<string, ActiveTool>, onDelta: (delta: string) => void, servers?: readonly string[]): AgentEvent[];
37
+ /**
38
+ * Antigravity's tool arguments use its own keys (`Path`, `CommandLine`, and a `toolSummary` it adds to every
39
+ * call); add the usual `path`, `command` and `description` so front ends show what the call is about.
40
+ */
41
+ export declare function antigravityInput(input: JsonObject): JsonObject;
14
42
  /**
15
- * Antigravity flags for `permissions`: `workspace-write` runs terminal commands in its sandbox
16
- * (`--sandbox`), `unrestricted` leaves it off. Approval policies are not offered.
43
+ * Antigravity print-mode flags for `permissions`: `auto-approve` is `--dangerously-skip-permissions`
44
+ * and `deny` leaves it off (in print mode Antigravity auto-denies tools that would ask).
45
+ * `workspace-write` runs terminal commands in its sandbox (`--sandbox`), `unrestricted`
46
+ * leaves it off. `ask` is not possible in print mode (use `antigravity()`, which runs `agy acp`).
17
47
  */
18
48
  export declare function antigravityPermissionFlags(permissions: AgentPermissions): PermissionFlags;
19
49
  export declare function antigravityArgs(task: AgentTask, options?: AntigravityAgentOptions): string[];
20
50
  /** Decodes `--output-format stream-json`: `init`, `step_update` and `result` events. */
21
51
  export declare function createAntigravityParser(): AgentOutputParser;
52
+ export {};
@@ -1,49 +1,340 @@
1
- import { cliAgent } from '../cli-agent.js';
1
+ import { readFileSync } from 'node:fs';
2
+ import { liveAgent } from '../live-agent.js';
2
3
  import { exclusiveOption, resolvePermissions } from '../permissions.js';
4
+ import { isHttpServer } from '../prepare.js';
5
+ import { RpcError } from '../rpc.js';
3
6
  import { isObject, numberField, stringField } from './json.js';
4
- /** Antigravity CLI in print mode (`agy --output-format stream-json --print ...`). */
7
+ const NO_TIMEOUT = 2 ** 31 - 1;
8
+ /**
9
+ * Antigravity CLI over its Agent Client Protocol stdio server (`agy acp`).
10
+ * Supports `mcpServers`, `resume`, `steer()`, and routes permission prompts to `task.onApproval`.
11
+ */
5
12
  export function antigravity(options = {}) {
6
- return cliAgent({
13
+ return liveAgent({
7
14
  name: 'antigravity',
8
15
  command: options.command ?? 'agy',
9
16
  capabilities: {
10
17
  effort: ['low', 'medium', 'high'],
11
18
  usage: true,
12
- permissions: { sandbox: ['workspace-write', 'unrestricted'] },
19
+ mcp: true,
20
+ resume: true,
21
+ approvals: true,
22
+ permissions: { approval: ['ask', 'auto-approve', 'deny'], sandbox: ['workspace-write', 'unrestricted'] },
13
23
  },
14
- args: (task) => antigravityArgs(task, options),
15
- createParser: createAntigravityParser,
24
+ args: (task) => antigravityAcpArgs(task, options),
25
+ drive: (session) => driveAntigravity(session, options),
16
26
  });
17
27
  }
28
+ /** CLI arguments for `agy acp`. */
29
+ export function antigravityAcpArgs(task, options = {}) {
30
+ const permissions = resolvePermissions(task.permissions);
31
+ exclusiveOption('antigravity', 'sandbox', options.sandbox !== undefined, 'sandbox', !!permissions.sandbox);
32
+ if (permissions.sandbox === 'read-only')
33
+ throw new Error("antigravity cannot run with permissions.sandbox 'read-only'.");
34
+ const sandbox = permissions.sandbox ? permissions.sandbox === 'workspace-write' : (options.sandbox ?? true);
35
+ return ['acp', ...(sandbox ? ['--sandbox'] : []), ...(task.extraArgs ?? [])];
36
+ }
37
+ /** Formats `task.mcpServers` for `agy acp` `session/new` and `session/resume`. */
38
+ export function antigravityMcpServers(servers) {
39
+ return servers.map((server) => isHttpServer(server)
40
+ ? {
41
+ type: 'http',
42
+ name: server.name,
43
+ url: server.url,
44
+ headers: Object.entries(server.headers ?? {}).map(([name, value]) => ({ name, value })),
45
+ }
46
+ : {
47
+ type: 'stdio',
48
+ name: server.name,
49
+ command: server.command,
50
+ args: [...(server.args ?? [])],
51
+ env: Object.entries(server.env ?? {}).map(([name, value]) => ({ name, value })),
52
+ });
53
+ }
54
+ async function driveAntigravity(session, options) {
55
+ const { task, rpc } = session;
56
+ const timeout = options.requestTimeoutMs ?? 60_000;
57
+ const ids = {};
58
+ let streamed = '';
59
+ const tools = new Map();
60
+ const servers = (task.mcpServers ?? []).map((server) => server.name);
61
+ session.onNotification((method, params) => {
62
+ if (method !== 'session/update' || !isObject(params))
63
+ return;
64
+ if (!ids.session || stringField(params, 'sessionId') !== ids.session)
65
+ return;
66
+ for (const event of antigravityUpdateEvents(params.update, tools, (delta) => (streamed += delta), servers)) {
67
+ session.emit(event);
68
+ }
69
+ });
70
+ session.onRequest(async (method, params, context) => {
71
+ if (method !== 'session/request_permission' || !isObject(params)) {
72
+ throw new RpcError(`${method} is not supported by this client.`, -32601);
73
+ }
74
+ if (!ids.session || stringField(params, 'sessionId') !== ids.session) {
75
+ throw new RpcError('Unknown session.', -32602);
76
+ }
77
+ const toolCall = isObject(params.toolCall) ? params.toolCall : {};
78
+ const id = stringField(toolCall, 'toolCallId') ?? 'approval';
79
+ const rawKind = stringField(toolCall, 'kind');
80
+ const kind = rawKind === 'execute' ? 'command' : rawKind === 'edit' || rawKind === 'delete' ? 'file-change' : 'other';
81
+ const summary = stringField(toolCall, 'title') ?? stringField(toolCall, 'name');
82
+ const choices = Array.isArray(params.options)
83
+ ? params.options.map((choice) => ({
84
+ optionId: stringField(choice, 'optionId'),
85
+ kind: stringField(choice, 'kind'),
86
+ }))
87
+ : [];
88
+ const decision = await session.approve({ id, kind, scope: 'once', ...(summary ? { summary } : {}), detail: params }, context.signal);
89
+ if (context.signal.aborted || session.signal.aborted) {
90
+ return { outcome: { outcome: 'cancelled' } };
91
+ }
92
+ if (decision === 'approve') {
93
+ const allowOnce = choices.find((choice) => choice.kind === 'allow_once' && choice.optionId);
94
+ if (allowOnce?.optionId)
95
+ return { outcome: { outcome: 'selected', optionId: allowOnce.optionId } };
96
+ session.emit({ type: 'error', message: `Antigravity offered no one-time approval for ${id}; denying it.` });
97
+ }
98
+ const reject = choices.find((choice) => choice.kind === 'reject_once' && choice.optionId) ??
99
+ choices.find((choice) => choice.kind === 'reject_always' && choice.optionId);
100
+ if (reject?.optionId)
101
+ return { outcome: { outcome: 'selected', optionId: reject.optionId } };
102
+ return { outcome: { outcome: 'cancelled' } };
103
+ });
104
+ await rpc.request('initialize', { protocolVersion: 1, clientInfo: { name: 'genaicode', version: '2' } }, timeout);
105
+ const mcpServers = antigravityMcpServers(task.mcpServers ?? []);
106
+ const created = task.resume
107
+ ? await rpc.request('session/resume', { sessionId: task.resume, cwd: task.cwd, mcpServers }, timeout)
108
+ : await rpc.request('session/new', { cwd: task.cwd, mcpServers }, timeout);
109
+ const sessionId = stringField(created, 'sessionId');
110
+ ids.session = sessionId;
111
+ if (!sessionId)
112
+ throw new Error('Antigravity did not return a session id.');
113
+ const model = task.model ?? stringField(isObject(created) ? created.models : undefined, 'currentModelId');
114
+ session.emit({ type: 'session', sessionId, ...(model ? { model } : {}) });
115
+ await rpc.request('session/set_mode', { sessionId, modeId: options.mode ?? 'accept-edits' }, timeout);
116
+ if (task.model)
117
+ await rpc.request('session/set_model', { sessionId, modelId: task.model }, timeout);
118
+ if (task.effort) {
119
+ await rpc.request('session/set_config_option', { sessionId, configId: 'thought_level', value: task.effort }, timeout);
120
+ }
121
+ const sendPrompt = (text) => rpc.request('session/prompt', { sessionId, prompt: [{ type: 'text', text }] }, NO_TIMEOUT);
122
+ let completed;
123
+ let activePrompt = sendPrompt(task.prompt).then((result) => {
124
+ completed = result;
125
+ });
126
+ activePrompt.catch(() => { });
127
+ session.setSteer(async (text) => {
128
+ const previous = activePrompt ?? Promise.resolve();
129
+ const next = sendPrompt(text);
130
+ const settled = next.then((result) => ({ ok: true, result }), (error) => ({ ok: false, error }));
131
+ activePrompt = previous.then(async () => {
132
+ const outcome = await settled;
133
+ if (outcome.ok)
134
+ completed = outcome.result;
135
+ });
136
+ activePrompt.catch(() => { });
137
+ const outcome = await settled;
138
+ if (!outcome.ok)
139
+ throw outcome.error;
140
+ });
141
+ while (activePrompt) {
142
+ const current = activePrompt;
143
+ await current;
144
+ if (activePrompt === current)
145
+ activePrompt = undefined;
146
+ }
147
+ session.setSteer(undefined);
148
+ const text = streamed.trim();
149
+ if (text)
150
+ session.emit({ type: 'message', text });
151
+ const usage = isObject(completed) ? completed.usage : undefined;
152
+ const inputTokens = numberField(usage, 'inputTokens') ?? numberField(usage, 'input_tokens');
153
+ const outputTokens = numberField(usage, 'outputTokens') ?? numberField(usage, 'output_tokens');
154
+ const totalTokens = numberField(usage, 'totalTokens') ?? numberField(usage, 'total_tokens');
155
+ const cachedInputTokens = numberField(usage, 'cachedReadTokens') ?? numberField(usage, 'cache_read_tokens');
156
+ if (inputTokens !== undefined || outputTokens !== undefined) {
157
+ session.emit({
158
+ type: 'usage',
159
+ usage: {
160
+ ...(inputTokens !== undefined ? { inputTokens } : {}),
161
+ ...(outputTokens !== undefined ? { outputTokens } : {}),
162
+ ...(totalTokens !== undefined ? { totalTokens } : {}),
163
+ ...(cachedInputTokens ? { cachedInputTokens } : {}),
164
+ },
165
+ });
166
+ }
167
+ const stopReason = stringField(completed, 'stopReason');
168
+ if (stopReason && stopReason !== 'end_turn') {
169
+ const error = `Antigravity turn ended: ${stopReason}.`;
170
+ session.emit({ type: 'error', message: error });
171
+ return { ok: false, error };
172
+ }
173
+ return { ok: true };
174
+ }
18
175
  /**
19
- * Antigravity flags for `permissions`: `workspace-write` runs terminal commands in its sandbox
20
- * (`--sandbox`), `unrestricted` leaves it off. Approval policies are not offered.
176
+ * Antigravity names an MCP tool `mcp_<server>_<tool>`; other drivers report `mcp__<server>__<tool>`.
177
+ * Rename a tool of an attached server to that form, so apps match MCP tools the same way for every agent.
178
+ */
179
+ export function antigravityToolName(name, servers) {
180
+ const server = [...servers]
181
+ .sort((a, b) => b.length - a.length)
182
+ .find((s) => name.startsWith(`mcp_${s}_`) && name.length > s.length + 5);
183
+ return server ? `mcp__${server}__${name.slice(server.length + 5)}` : name;
184
+ }
185
+ /** Events for one ACP `session/update` (exported for tests). */
186
+ export function antigravityUpdateEvents(update, tools, onDelta, servers = []) {
187
+ if (!isObject(update))
188
+ return [];
189
+ const kind = stringField(update, 'sessionUpdate');
190
+ if (kind === 'agent_message_chunk') {
191
+ const delta = stringField(update.content, 'text');
192
+ if (!delta)
193
+ return [];
194
+ onDelta(delta);
195
+ return [{ type: 'text-delta', text: delta }];
196
+ }
197
+ if (kind !== 'tool_call' && kind !== 'tool_call_update')
198
+ return [];
199
+ const id = stringField(update, 'toolCallId');
200
+ const withId = id ? { id } : {};
201
+ const key = id ?? stringField(update, 'name') ?? stringField(update, 'title') ?? 'tool';
202
+ const known = tools.get(key);
203
+ const reported = stringField(update, 'name');
204
+ const name = (reported && antigravityToolName(reported, servers)) ?? known?.name ?? stringField(update, 'title') ?? 'tool';
205
+ const toolKind = stringField(update, 'kind') ?? known?.kind;
206
+ const locations = Array.isArray(update.locations)
207
+ ? update.locations.map((loc) => stringField(loc, 'path')).filter((path) => !!path)
208
+ : [];
209
+ const paths = locations.length ? locations : (known?.paths ?? []);
210
+ const status = stringField(update, 'status');
211
+ const raw = isObject(update.rawInput) && Object.keys(update.rawInput).length > 0
212
+ ? update.rawInput
213
+ : isObject(update.args) && Object.keys(update.args).length > 0
214
+ ? update.args
215
+ : undefined;
216
+ const input = raw && antigravityInput(raw);
217
+ const events = [];
218
+ const kept = raw ?? known?.input;
219
+ if (!known) {
220
+ tools.set(key, { name, ...(toolKind ? { kind: toolKind } : {}), paths, ...(kept ? { input: kept } : {}) });
221
+ events.push({ type: 'tool-start', ...withId, name, ...(input !== undefined ? { input } : {}) });
222
+ }
223
+ else {
224
+ tools.set(key, { name, ...(toolKind ? { kind: toolKind } : {}), paths, ...(kept ? { input: kept } : {}) });
225
+ }
226
+ if (status === 'completed' || status === 'failed') {
227
+ tools.delete(key);
228
+ const output = toolOutput(update) ??
229
+ (status === 'completed' && (toolKind === 'read' || name === 'read_file')
230
+ ? readRange(raw ?? known?.input, paths)
231
+ : undefined);
232
+ events.push({
233
+ type: 'tool-end',
234
+ ...withId,
235
+ name,
236
+ isError: status === 'failed',
237
+ ...(output !== undefined ? { output } : {}),
238
+ });
239
+ if (status === 'completed' && (toolKind === 'edit' || toolKind === 'delete') && paths.length > 0) {
240
+ events.push({ type: 'file-change', paths });
241
+ }
242
+ }
243
+ return events;
244
+ }
245
+ /**
246
+ * Antigravity's tool arguments use its own keys (`Path`, `CommandLine`, and a `toolSummary` it adds to every
247
+ * call); add the usual `path`, `command` and `description` so front ends show what the call is about.
248
+ */
249
+ export function antigravityInput(input) {
250
+ const path = stringField(input, 'Path') ?? stringField(input, 'AbsolutePath') ?? stringField(input, 'TargetFile');
251
+ const command = stringField(input, 'CommandLine');
252
+ const summary = stringField(input, 'toolSummary');
253
+ return {
254
+ ...input,
255
+ ...(path && input.path === undefined ? { path } : {}),
256
+ ...(command && input.command === undefined ? { command } : {}),
257
+ ...(summary && input.description === undefined ? { description: summary } : {}),
258
+ };
259
+ }
260
+ const READ_LIMIT = 20_000;
261
+ /**
262
+ * Antigravity reports a `read_file` without the text it read. Show those lines from the file as it is now
263
+ * (`StartLine`/`EndLine`, 1-based and inclusive, when given), cut to 20 000 characters.
264
+ */
265
+ function readRange(input, paths) {
266
+ const path = (input && (stringField(input, 'Path') ?? stringField(input, 'AbsolutePath'))) ?? paths[0];
267
+ if (!path)
268
+ return undefined;
269
+ let text;
270
+ try {
271
+ text = readFileSync(path, 'utf8');
272
+ }
273
+ catch {
274
+ return undefined;
275
+ }
276
+ const lines = text.split('\n');
277
+ const start = Math.max(1, (input && numberField(input, 'StartLine')) ?? 1);
278
+ const end = Math.min(lines.length, (input && numberField(input, 'EndLine')) ?? lines.length);
279
+ const shown = lines.slice(start - 1, end).join('\n');
280
+ return shown.length > READ_LIMIT ? `${shown.slice(0, READ_LIMIT)}\n…` : shown;
281
+ }
282
+ function toolOutput(update) {
283
+ if (typeof update.rawOutput === 'string' && update.rawOutput)
284
+ return update.rawOutput;
285
+ const raw = stringField(update.rawOutput, 'output') ??
286
+ stringField(update.rawOutput, 'error') ??
287
+ stringField(update.rawOutput, 'message');
288
+ if (raw !== undefined)
289
+ return raw;
290
+ if (!Array.isArray(update.content))
291
+ return undefined;
292
+ const texts = update.content
293
+ .map((item) => stringField(item, 'text') ?? stringField(isObject(item) ? item.content : undefined, 'text'))
294
+ .filter((text) => !!text);
295
+ return texts.length ? texts.join('\n') : undefined;
296
+ }
297
+ /**
298
+ * Antigravity print-mode flags for `permissions`: `auto-approve` is `--dangerously-skip-permissions`
299
+ * and `deny` leaves it off (in print mode Antigravity auto-denies tools that would ask).
300
+ * `workspace-write` runs terminal commands in its sandbox (`--sandbox`), `unrestricted`
301
+ * leaves it off. `ask` is not possible in print mode (use `antigravity()`, which runs `agy acp`).
21
302
  */
22
303
  export function antigravityPermissionFlags(permissions) {
23
304
  const { approval, sandbox } = permissions;
24
- if (approval)
25
- throw new Error(`antigravity cannot run with permissions.approval '${approval}'.`);
305
+ if (approval === 'ask')
306
+ throw new Error("antigravity cannot ask for approval headless (permissions.approval 'ask').");
26
307
  if (sandbox === 'read-only')
27
308
  throw new Error("antigravity cannot run with permissions.sandbox 'read-only'.");
28
- return {
29
- args: sandbox === 'workspace-write' ? ['--sandbox'] : [],
30
- replaces: sandbox ? { '--sandbox': 'flag' } : {},
31
- };
309
+ const args = [];
310
+ const replaces = {};
311
+ if (approval) {
312
+ replaces['--dangerously-skip-permissions'] = 'flag';
313
+ if (approval === 'auto-approve')
314
+ args.push('--dangerously-skip-permissions');
315
+ }
316
+ if (sandbox) {
317
+ replaces['--sandbox'] = 'flag';
318
+ if (sandbox === 'workspace-write')
319
+ args.push('--sandbox');
320
+ }
321
+ return { args, replaces };
32
322
  }
33
323
  export function antigravityArgs(task, options = {}) {
34
324
  const args = ['--mode', options.mode ?? 'accept-edits'];
35
325
  const permissions = resolvePermissions(task.permissions);
36
326
  exclusiveOption('antigravity', 'sandbox', options.sandbox !== undefined, 'sandbox', !!permissions.sandbox);
37
327
  const flags = antigravityPermissionFlags(permissions);
38
- if (permissions.sandbox)
39
- args.push(...flags.args);
40
- else if (options.sandbox ?? true)
328
+ args.push(...flags.args);
329
+ if (!permissions.sandbox && (options.sandbox ?? true))
41
330
  args.push('--sandbox');
42
331
  args.push('--output-format', 'stream-json');
43
332
  if (task.model)
44
333
  args.push('--model', task.model);
45
334
  if (task.effort)
46
335
  args.push('--effort', task.effort);
336
+ if (task.resume)
337
+ args.push('--conversation', task.resume);
47
338
  if (task.extraArgs)
48
339
  args.push(...task.extraArgs);
49
340
  return [...args, '--print', task.prompt];
@@ -1 +1 @@
1
- {"version":3,"file":"antigravity.js","sourceRoot":"","sources":["../../../src/agents/drivers/antigravity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA6C,MAAM,iBAAiB,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAwB,MAAM,mBAAmB,CAAC;AAE9F,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAW/D,qFAAqF;AACrF,MAAM,UAAU,WAAW,CAAC,UAAmC,EAAE;IAC/D,OAAO,QAAQ,CAAC;QACd,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,KAAK;QACjC,YAAY,EAAE;YACZ,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC;YACjC,KAAK,EAAE,IAAI;YACX,WAAW,EAAE,EAAE,OAAO,EAAE,CAAC,iBAAiB,EAAE,cAAc,CAAC,EAAE;SAC9D;QACD,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC;QAC9C,YAAY,EAAE,uBAAuB;KACtC,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CAAC,WAA6B;IACtE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC;IAC1C,IAAI,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,qDAAqD,QAAQ,IAA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iB,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;6BACpD;yBACF,CAAC,CAAC;oBACL,CAAC;oBACD,MAAM;gBACR,CAAC;YACH,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC;KACF,CAAC;AACJ,CAAC"}
package/dist/agents.d.ts CHANGED
@@ -45,7 +45,7 @@ export { copilot, copilotArgs, copilotMcpConfig, copilotPermissionFlags, createC
45
45
  export type { CopilotAgentOptions } from './agents/drivers/copilot.js';
46
46
  export { createVibeParser, vibe, vibeArgs, vibePermissionFlags } from './agents/drivers/vibe.js';
47
47
  export type { VibeAgentOptions } from './agents/drivers/vibe.js';
48
- export { antigravity, antigravityArgs, antigravityPermissionFlags, createAntigravityParser, } from './agents/drivers/antigravity.js';
48
+ export { antigravity, antigravityAcpArgs, antigravityArgs, antigravityMcpServers, antigravityInput, antigravityToolName, antigravityPermissionFlags, createAntigravityParser, } from './agents/drivers/antigravity.js';
49
49
  export type { AntigravityAgentOptions } from './agents/drivers/antigravity.js';
50
50
  export { createAgentSession } from './agents/session.js';
51
51
  export type { AgentSession, AgentSessionOptions, SessionEntry, SessionState, SessionTurn } from './agents/session.js';
package/dist/agents.js CHANGED
@@ -23,6 +23,6 @@ export { createOpencodeParser, opencode, opencodeArgs, opencodePermissionFlags }
23
23
  export { hostedAgent } from './agents/hosted.js';
24
24
  export { copilot, copilotArgs, copilotMcpConfig, copilotPermissionFlags, createCopilotParser, } from './agents/drivers/copilot.js';
25
25
  export { createVibeParser, vibe, vibeArgs, vibePermissionFlags } from './agents/drivers/vibe.js';
26
- export { antigravity, antigravityArgs, antigravityPermissionFlags, createAntigravityParser, } from './agents/drivers/antigravity.js';
26
+ export { antigravity, antigravityAcpArgs, antigravityArgs, antigravityMcpServers, antigravityInput, antigravityToolName, antigravityPermissionFlags, createAntigravityParser, } from './agents/drivers/antigravity.js';
27
27
  export { createAgentSession } from './agents/session.js';
28
28
  //# sourceMappingURL=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kB,EAAE,MAAM,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAE3G,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAErH,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAQjD,OAAO,EACL,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEjG,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -68,6 +68,6 @@ export declare const EXIT_OK = 0;
68
68
  export declare const EXIT_FAILED = 1;
69
69
  export declare const EXIT_USAGE = 2;
70
70
  export declare const EXIT_ABORTED = 130;
71
- export declare const helpText = "genaicode: run the coding-agent CLIs installed on this machine behind one interface.\n\nUsage:\n genaicode Chat with an agent in this terminal (same as \"chat\")\n genaicode chat [options] Chat with an agent in this terminal\n genaicode ui [options] Chat with an agent in the browser (local server)\n genaicode agents [--json] List supported agents and whether each is installed\n genaicode run [options] <prompt...> Run one task (reads the prompt from stdin if omitted)\n genaicode embed [options] [request] Have an agent add genaicode to the project here\n genaicode acp [options] Serve the Agent Client Protocol on stdin/stdout\n\nChat and UI options:\n -a, --agent <name> Agent to start with (default: the first installed one)\n -C, --cwd <dir> Directory the agent works in (default: current directory)\n -m, --model <id> Model id passed to the agent CLI\n --effort <level> Reasoning effort, in the agent's own vocabulary\n -r, --resume <id> Continue this agent session\n -y, --yes Approve every permission request the agent asks for\n --web (chat) Also open the session in the browser\n --port <n> Port for the browser UI, on 127.0.0.1 (default: a free port)\n --no-open (ui) Print the link instead of opening a browser\n --exit-with-stdin (ui) Stop when stdin closes, for apps that start the server\n --mcp <name=url> Give the agent this MCP server (streamable HTTP); repeatable.\n Only agents with MCP support (claude, codex, copilot) take it\n\n Each prompt after the first continues the agent's session (claude, codex, cursor,\n opencode, copilot). Prompts sent while the agent works wait in a queue. Type /help in\n the chat for commands. The terminal and the browser can show one session: /web in the\n chat opens it in the browser, and Enter in \"genaicode ui\" brings it into the terminal.\n\nRun options:\n -a, --agent <name> Agent to use (default: the first installed one, see \"agents\")\n -C, --cwd <dir> Directory the agent works in (default: current directory)\n -m, --model <id> Model id passed to the agent CLI\n --effort <level> Reasoning effort, in the agent's own vocabulary\n --max-turns <n> Turn limit, where the agent supports one\n -r, --resume <id> Continue the agent session with this id (printed after each run)\n --timeout <sec> Stop the agent after this many seconds\n --verify <command> Shell command that checks the work; on failure its output goes\n back to the agent for another attempt\n --max-repairs <n> Repair attempts after a failed check (default 2)\n --json Print agent events as JSON lines instead of text\n\nEmbed options:\n --print Print the agent's instructions instead of starting one\n --ui Follow the agent in the browser instead of this terminal\n -a, -C, -m, --effort, -y, --port, --no-open: as for chat and ui\n\n The agent reads the project and chooses how to wire genaicode in; [request] steers it,\n e.g. \"only the dev panel\". Without a terminal it runs headless like \"run\". The\n instructions also ship as a Claude Code skill: docs/skills/genaicode-embed/SKILL.md.\n\nACP options:\n -a, -m, --effort, -y: as for chat (the host can change agent, effort and approvals)\n\n For editors and other apps that speak ACP (https://agentclientprotocol.com): the app\n starts \"genaicode acp\", opens sessions in its own directories and sends prompts.\n\nThe agent uses its own login, billing, and permission defaults. GenAIcode adds no agent\nloop or sandbox of its own, and no prompts but embed's instructions.\nLibrary API: https://github.com/gtanczyk/genaicode#readme\n\nLooking for the legacy 1.x coding agent?\n Run it: npx genaicode@1\n Source: https://github.com/gtanczyk/genaicode/tree/1.x\n";
71
+ export declare const helpText = "genaicode: run the coding-agent CLIs installed on this machine behind one interface.\n\nUsage:\n genaicode Chat with an agent in this terminal (same as \"chat\")\n genaicode chat [options] Chat with an agent in this terminal\n genaicode ui [options] Chat with an agent in the browser (local server)\n genaicode agents [--json] List supported agents and whether each is installed\n genaicode run [options] <prompt...> Run one task (reads the prompt from stdin if omitted)\n genaicode embed [options] [request] Have an agent add genaicode to the project here\n genaicode acp [options] Serve the Agent Client Protocol on stdin/stdout\n\nChat and UI options:\n -a, --agent <name> Agent to start with (default: the first installed one)\n -C, --cwd <dir> Directory the agent works in (default: current directory)\n -m, --model <id> Model id passed to the agent CLI\n --effort <level> Reasoning effort, in the agent's own vocabulary\n -r, --resume <id> Continue this agent session\n -y, --yes Approve every permission request the agent asks for\n --web (chat) Also open the session in the browser\n --port <n> Port for the browser UI, on 127.0.0.1 (default: a free port)\n --no-open (ui) Print the link instead of opening a browser\n --exit-with-stdin (ui) Stop when stdin closes, for apps that start the server\n --mcp <name=url> Give the agent this MCP server (streamable HTTP); repeatable.\n Only agents with MCP support (claude, codex, copilot, antigravity) take it\n\n Each prompt after the first continues the agent's session (claude, codex, cursor,\n opencode, copilot, antigravity). Prompts sent while the agent works wait in a queue. Type /help in\n the chat for commands. The terminal and the browser can show one session: /web in the\n chat opens it in the browser, and Enter in \"genaicode ui\" brings it into the terminal.\n\nRun options:\n -a, --agent <name> Agent to use (default: the first installed one, see \"agents\")\n -C, --cwd <dir> Directory the agent works in (default: current directory)\n -m, --model <id> Model id passed to the agent CLI\n --effort <level> Reasoning effort, in the agent's own vocabulary\n --max-turns <n> Turn limit, where the agent supports one\n -r, --resume <id> Continue the agent session with this id (printed after each run)\n --timeout <sec> Stop the agent after this many seconds\n --verify <command> Shell command that checks the work; on failure its output goes\n back to the agent for another attempt\n --max-repairs <n> Repair attempts after a failed check (default 2)\n --json Print agent events as JSON lines instead of text\n\nEmbed options:\n --print Print the agent's instructions instead of starting one\n --ui Follow the agent in the browser instead of this terminal\n -a, -C, -m, --effort, -y, --port, --no-open: as for chat and ui\n\n The agent reads the project and chooses how to wire genaicode in; [request] steers it,\n e.g. \"only the dev panel\". Without a terminal it runs headless like \"run\". The\n instructions also ship as a Claude Code skill: docs/skills/genaicode-embed/SKILL.md.\n\nACP options:\n -a, -m, --effort, -y: as for chat (the host can change agent, effort and approvals)\n\n For editors and other apps that speak ACP (https://agentclientprotocol.com): the app\n starts \"genaicode acp\", opens sessions in its own directories and sends prompts.\n\nThe agent uses its own login, billing, and permission defaults. GenAIcode adds no agent\nloop or sandbox of its own, and no prompts but embed's instructions.\nLibrary API: https://github.com/gtanczyk/genaicode#readme\n\nLooking for the legacy 1.x coding agent?\n Run it: npx genaicode@1\n Source: https://github.com/gtanczyk/genaicode/tree/1.x\n";
72
72
  /** Run the CLI and return its exit code. */
73
73
  export declare function main(cli: CliEnvironment): Promise<number>;
package/dist/cli/main.js CHANGED
@@ -35,10 +35,10 @@ Chat and UI options:
35
35
  --no-open (ui) Print the link instead of opening a browser
36
36
  --exit-with-stdin (ui) Stop when stdin closes, for apps that start the server
37
37
  --mcp <name=url> Give the agent this MCP server (streamable HTTP); repeatable.
38
- Only agents with MCP support (claude, codex, copilot) take it
38
+ Only agents with MCP support (claude, codex, copilot, antigravity) take it
39
39
 
40
40
  Each prompt after the first continues the agent's session (claude, codex, cursor,
41
- opencode, copilot). Prompts sent while the agent works wait in a queue. Type /help in
41
+ opencode, copilot, antigravity). Prompts sent while the agent works wait in a queue. Type /help in
42
42
  the chat for commands. The terminal and the browser can show one session: /web in the
43
43
  chat opens it in the browser, and Enter in "genaicode ui" brings it into the terminal.
44
44
 
package/docs/CHANGELOG.md CHANGED
@@ -9,6 +9,14 @@
9
9
 
10
10
  ### Added
11
11
 
12
+ - `antigravity()` now drives `agy acp` (Antigravity CLI 1.5.0+) over JSON-RPC on stdio and
13
+ supports `task.mcpServers` (HTTP with secret headers and stdio with env passed over stdin,
14
+ never in argv, with session MCP tools pre-allowed), `task.resume` (`session/resume`),
15
+ `steer()`, and `permissions.approval` (`'ask'` routed to `task.onApproval`, `'auto-approve'`,
16
+ `'deny'`) and `sandbox` (`'workspace-write'`, `'unrestricted'`). Print-mode helpers
17
+ (`antigravityArgs`, `antigravityPermissionFlags`) also map `--conversation` and
18
+ `--dangerously-skip-permissions`. With agy 1.5.0, MCP tool calls run without an approval
19
+ request, carry no output in the transcript, and get an extra `toolSummary` argument.
12
20
  - `muse()` and `museLive()` honor `task.mcpServers`: the servers go to Muse Code as `-c
13
21
  mcp_servers.<name>.*` overrides for that run, with header and env values passed as `${VAR}`
14
22
  references to environment variables, never in argv. `genaicode chat --mcp` and `ui --mcp` now
package/docs/agents.md CHANGED
@@ -37,14 +37,14 @@ const result = await run.result; // { status, ok, text, sessionId, usage, error,
37
37
  | Gemini CLI | `gemini()` | approval mode |
38
38
  | opencode | `opencode()` | `provider/model` ids, variants |
39
39
  | Mistral Vibe | `vibe()` | agent profile, max turns, max price |
40
- | Antigravity CLI | `antigravity()` | sandbox, effort, usage |
40
+ | Antigravity CLI | `antigravity()` | `steer()`, MCP, approvals, sandbox, effort, usage |
41
41
  | Muse | `muse()`, `museLive()` | MCP servers, max turns; live: `steer()`, approvals |
42
42
  | Your own CLI/API | `cliAgent()`, `hostedAgent()` | plug in any JSON-lines CLI or hosted agent |
43
43
 
44
44
  On top of the drivers:
45
45
 
46
46
  - **Steer a running task** with `run.steer(text)` (Claude and the live drivers), and answer permission
47
- prompts with `onApproval` (Claude, live Codex and Muse).
47
+ prompts with `onApproval` (Claude, Antigravity, live Codex and Muse).
48
48
  - **Pick approval and sandbox policy** with `permissions: { approval, sandbox }` (or
49
49
  `'yolo'`); each driver maps it to the agent's own flags and refuses what it cannot honor.
50
50
  - **Attach MCP servers per task** with `mcpServers`. Header secrets stay out of argv.
@@ -136,7 +136,7 @@ const first = await agent.run({ prompt: 'Add a --dry-run flag', cwd }).result;
136
136
  const next = await agent.run({ prompt: 'Now cover it with a test', cwd, resume: first.sessionId }).result;
137
137
  ```
138
138
 
139
- `claude`, `codex`, `cursor`, `opencode`, `copilot` and `museLive` support it (`capabilities.resume`).
139
+ `claude`, `codex`, `cursor`, `opencode`, `copilot`, `antigravity` and `museLive` support it (`capabilities.resume`).
140
140
  Other drivers fail the task before spawning anything rather than starting a fresh session.
141
141
 
142
142
  ## Chat sessions
@@ -182,7 +182,7 @@ session.send('Now cover it with a test'); // resumes the same agent session
182
182
  | `opencode(options?)` | `opencode` | `run --format json` | `model` is `provider/model`; `effort` maps to `--variant`; `autoApprove` adds `--auto` |
183
183
  | `copilot(options?)` | `copilot` | `--output-format json --prompt=…` | `--allow-all-tools --no-ask-user` by default; `allowTools` / `denyTools` patterns |
184
184
  | `vibe(options?)` | `vibe` | `--output streaming --prompt=…` | `agent` defaults to `accept-edits`; `--trust`; `model` via `VIBE_ACTIVE_MODEL` |
185
- | `antigravity(opts?)` | `agy` | `--output-format stream-json --print` | `mode` defaults to `accept-edits`; `--sandbox` unless `sandbox: false` |
185
+ | `antigravity(opts?)` | `agy` | `acp` (JSON-RPC) | `steer()`, approvals, MCP, resume; `mode` defaults to `accept-edits`; `--sandbox` |
186
186
 
187
187
  Every driver accepts `command` to point at a specific executable. `task.extraArgs` is
188
188
  inserted before the prompt for flags that have no portable field.
@@ -223,7 +223,7 @@ const result = await run.result;
223
223
  ## Approvals
224
224
 
225
225
  `onApproval(request, signal)` answers the agent's permission prompts on drivers with
226
- `capabilities.approvals`: `claude`, `codexLive`, `museLive`. It returns `'approve'` or
226
+ `capabilities.approvals`: `claude`, `codexLive`, `museLive`, `antigravity`. It returns `'approve'` or
227
227
  `'deny'`.
228
228
 
229
229
  ```ts
@@ -262,6 +262,8 @@ Per agent:
262
262
  Approving picks the `once` choice; a request that only offers session-wide approval is
263
263
  denied. A multi-stage approval asks once per stage (later stages get ids like `ap-1/2`),
264
264
  however often a stage is delivered. `approval/resolved` withdraws an open question.
265
+ - `antigravity()`: answers ACP `session/request_permission` requests (`allow_once` or
266
+ `reject_once`) for tools not pre-allowed by the session mode (`accept-edits` by default).
265
267
 
266
268
  The protocol handlers are exported for apps that run their own driver or MCP server:
267
269
 
@@ -316,7 +318,7 @@ codexLive().run({ prompt, cwd, permissions: 'yolo' });
316
318
  | `copilot()` | auto-approve | unrestricted | `--allow-all-tools` (prompt mode needs it); `--allow-all-paths --allow-all-urls`. Copilot's `--sandbox` lets a command opt out of it, so `workspace-write` is not offered |
317
319
  | `opencode()` | auto-approve, deny | unrestricted | `--auto`; opencode has no sandbox |
318
320
  | `vibe()` | auto-approve, deny | read-only, unrestricted | `--auto-approve`; `read-only`: `--agent plan` (not with `auto-approve`); no sandbox |
319
- | `antigravity()` | none | workspace-write, unrestricted | `--sandbox` on or off |
321
+ | `antigravity()` | ask, auto-approve, deny | workspace-write, unrestricted | `ask` / `auto-approve` / `deny` answer ACP `session/request_permission` (`allow_once` / `reject_once`); `--sandbox` on or off (`antigravityPermissionFlags` maps print-mode `--dangerously-skip-permissions`) |
320
322
  | `muse()` | none | none | |
321
323
 
322
324
  Claude in `read-only` writes nothing in the workspace, but plan mode may still save its plan
@@ -342,7 +344,7 @@ protocol and resolves with `{ ok, error? }` when the turn ends.
342
344
  ## MCP servers
343
345
 
344
346
  `task.mcpServers` attaches MCP servers for one task on drivers with `capabilities.mcp`
345
- (`claude`, `codex`, `codexLive`, `copilot`, `muse`, `museLive`):
347
+ (`claude`, `codex`, `codexLive`, `copilot`, `muse`, `museLive`, `antigravity`):
346
348
 
347
349
  ```ts
348
350
  await claude().run({
@@ -373,6 +375,14 @@ await claude().run({
373
375
  whole-value `${VAR}`, which Muse expands, so they never appear in argv. Needs Muse Code
374
376
  1.4.4 or newer (checked with 1.4.13). Under `museLive()` with `permissions.approval: 'ask'`
375
377
  every MCP tool call is an approval request: answer it in `onApproval`.
378
+ - Antigravity CLI (`agy acp`, 1.5.0+) receives the task's HTTP and stdio servers in the
379
+ JSON-RPC `session/new` / `session/resume` request over stdin, so secret headers and env
380
+ values never appear in argv or on disk, and pre-allows the attached servers' tools for the
381
+ session. Checked with agy 1.5.0: MCP tool calls never reach `onApproval`, even with
382
+ `permissions.approval: 'ask'` (only commands and file edits are asked about); tools are named
383
+ `mcp_<server>_<tool>`; the tool's result is not in the transcript (agy sends no output for
384
+ it); and agy adds its own `toolSummary` field to the tool arguments, so a server with a
385
+ strict input schema must accept or ignore it.
376
386
  - A driver without MCP support fails the task before spawning anything, instead of silently
377
387
  dropping the servers. Server names must match `/^[A-Za-z0-9_-]+$/`.
378
388
 
package/docs/embedding.md CHANGED
@@ -106,8 +106,8 @@ A complete exchange, one JSON object per line (`>` sent by the host, `<` by gena
106
106
  with the agent over ACP in GDScript, and a game that serves its own MCP tools so the agent can
107
107
  play it.
108
108
 
109
- With an agent that cannot resume (gemini, antigravity) each prompt starts a fresh agent session.
110
- A session with MCP servers offers only the agents that can attach them (claude, codex, copilot).
109
+ With an agent that cannot resume (gemini, vibe) each prompt starts a fresh agent session.
110
+ A session with MCP servers offers only the agents that can attach them (claude, codex, copilot, antigravity).
111
111
  Not supported yet: `session/load` and `session/resume` (sessions live as long as the process),
112
112
  images in prompts, SSE MCP servers, and the client's file system and terminal methods (the agent
113
113
  CLI reads, writes and runs commands itself).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genaicode",
3
- "version": "2.27.0",
3
+ "version": "2.28.1",
4
4
  "description": "Drive the coding-agent CLIs you already have (Claude Code, Codex, Copilot, Cursor, Gemini, opencode...) behind one API and one CLI, plus a thin provider-neutral LLM layer.",
5
5
  "author": "Grzegorz Tańczyk",
6
6
  "repository": {