@google/gemini-cli-a2a-server 0.22.0-preview.3 → 0.22.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.
- package/dist/a2a-server.mjs +2453 -2833
- package/dist/src/agent/executor.js +2 -2
- package/dist/src/agent/executor.js.map +1 -1
- package/dist/src/agent/task.d.ts +1 -2
- package/dist/src/agent/task.js +5 -10
- package/dist/src/agent/task.js.map +1 -1
- package/dist/src/agent/task.test.js +3 -51
- package/dist/src/agent/task.test.js.map +1 -1
- package/dist/src/commands/command-registry.js +0 -2
- package/dist/src/commands/command-registry.js.map +1 -1
- package/dist/src/commands/types.d.ts +0 -4
- package/dist/src/config/config.js +0 -1
- package/dist/src/config/config.js.map +1 -1
- package/dist/src/config/settings.js.map +1 -1
- package/dist/src/http/app.js +36 -54
- package/dist/src/http/app.js.map +1 -1
- package/dist/src/http/app.test.js +0 -103
- package/dist/src/http/app.test.js.map +1 -1
- package/dist/src/types.d.ts +0 -1
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils/testing_utils.js +1 -3
- package/dist/src/utils/testing_utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/src/commands/init.d.ts +0 -15
- package/dist/src/commands/init.js +0 -110
- package/dist/src/commands/init.js.map +0 -1
- package/dist/src/commands/init.test.d.ts +0 -6
- package/dist/src/commands/init.test.js +0 -145
- package/dist/src/commands/init.test.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google/gemini-cli-a2a-server",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"description": "Gemini CLI A2A Server",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@a2a-js/sdk": "^0.3.2",
|
|
29
29
|
"@google-cloud/storage": "^7.16.0",
|
|
30
|
-
"@google/gemini-cli-core": "0.22.
|
|
31
|
-
"express": "^5.
|
|
30
|
+
"@google/gemini-cli-core": "0.22.1",
|
|
31
|
+
"express": "^5.2.0",
|
|
32
32
|
"fs-extra": "^11.3.0",
|
|
33
33
|
"tar": "^7.5.2",
|
|
34
34
|
"uuid": "^11.1.0",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import type { Command, CommandContext, CommandExecutionResponse } from './types.js';
|
|
7
|
-
export declare class InitCommand implements Command {
|
|
8
|
-
name: string;
|
|
9
|
-
description: string;
|
|
10
|
-
requiresWorkspace: boolean;
|
|
11
|
-
streaming: boolean;
|
|
12
|
-
private handleMessageResult;
|
|
13
|
-
private handleSubmitPromptResult;
|
|
14
|
-
execute(context: CommandContext, _args?: string[]): Promise<CommandExecutionResponse>;
|
|
15
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2025 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import * as fs from 'node:fs';
|
|
7
|
-
import * as path from 'node:path';
|
|
8
|
-
import { CoderAgentEvent } from '../types.js';
|
|
9
|
-
import { performInit } from '@google/gemini-cli-core';
|
|
10
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
11
|
-
import { logger } from '../utils/logger.js';
|
|
12
|
-
export class InitCommand {
|
|
13
|
-
name = 'init';
|
|
14
|
-
description = 'Analyzes the project and creates a tailored GEMINI.md file';
|
|
15
|
-
requiresWorkspace = true;
|
|
16
|
-
streaming = true;
|
|
17
|
-
handleMessageResult(result, context, eventBus, taskId, contextId) {
|
|
18
|
-
const statusState = result.messageType === 'error' ? 'failed' : 'completed';
|
|
19
|
-
const eventType = result.messageType === 'error'
|
|
20
|
-
? CoderAgentEvent.StateChangeEvent
|
|
21
|
-
: CoderAgentEvent.TextContentEvent;
|
|
22
|
-
const event = {
|
|
23
|
-
kind: 'status-update',
|
|
24
|
-
taskId,
|
|
25
|
-
contextId,
|
|
26
|
-
status: {
|
|
27
|
-
state: statusState,
|
|
28
|
-
message: {
|
|
29
|
-
kind: 'message',
|
|
30
|
-
role: 'agent',
|
|
31
|
-
parts: [{ kind: 'text', text: result.content }],
|
|
32
|
-
messageId: uuidv4(),
|
|
33
|
-
taskId,
|
|
34
|
-
contextId,
|
|
35
|
-
},
|
|
36
|
-
timestamp: new Date().toISOString(),
|
|
37
|
-
},
|
|
38
|
-
final: true,
|
|
39
|
-
metadata: {
|
|
40
|
-
coderAgent: { kind: eventType },
|
|
41
|
-
model: context.config.getModel(),
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
logger.info('[EventBus event]: ', event);
|
|
45
|
-
eventBus.publish(event);
|
|
46
|
-
return {
|
|
47
|
-
name: this.name,
|
|
48
|
-
data: result,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
async handleSubmitPromptResult(result, context, geminiMdPath, eventBus, taskId, contextId) {
|
|
52
|
-
fs.writeFileSync(geminiMdPath, '', 'utf8');
|
|
53
|
-
if (!context.agentExecutor) {
|
|
54
|
-
throw new Error('Agent executor not found in context.');
|
|
55
|
-
}
|
|
56
|
-
const agentExecutor = context.agentExecutor;
|
|
57
|
-
const agentSettings = {
|
|
58
|
-
kind: CoderAgentEvent.StateAgentSettingsEvent,
|
|
59
|
-
workspacePath: process.env['CODER_AGENT_WORKSPACE_PATH'],
|
|
60
|
-
autoExecute: true,
|
|
61
|
-
};
|
|
62
|
-
if (typeof result.content !== 'string') {
|
|
63
|
-
throw new Error('Init command content must be a string.');
|
|
64
|
-
}
|
|
65
|
-
const promptText = result.content;
|
|
66
|
-
const requestContext = {
|
|
67
|
-
userMessage: {
|
|
68
|
-
kind: 'message',
|
|
69
|
-
role: 'user',
|
|
70
|
-
parts: [{ kind: 'text', text: promptText }],
|
|
71
|
-
messageId: uuidv4(),
|
|
72
|
-
taskId,
|
|
73
|
-
contextId,
|
|
74
|
-
metadata: {
|
|
75
|
-
coderAgent: agentSettings,
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
taskId,
|
|
79
|
-
contextId,
|
|
80
|
-
};
|
|
81
|
-
// The executor will handle the entire agentic loop, including
|
|
82
|
-
// creating the task, streaming responses, and handling tools.
|
|
83
|
-
await agentExecutor.execute(requestContext, eventBus);
|
|
84
|
-
return {
|
|
85
|
-
name: this.name,
|
|
86
|
-
data: geminiMdPath,
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
async execute(context, _args = []) {
|
|
90
|
-
if (!context.eventBus) {
|
|
91
|
-
return {
|
|
92
|
-
name: this.name,
|
|
93
|
-
data: 'Use executeStream to get streaming results.',
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
const geminiMdPath = path.join(process.env['CODER_AGENT_WORKSPACE_PATH'], 'GEMINI.md');
|
|
97
|
-
const result = performInit(fs.existsSync(geminiMdPath));
|
|
98
|
-
const taskId = uuidv4();
|
|
99
|
-
const contextId = uuidv4();
|
|
100
|
-
switch (result.type) {
|
|
101
|
-
case 'message':
|
|
102
|
-
return this.handleMessageResult(result, context, context.eventBus, taskId, contextId);
|
|
103
|
-
case 'submit_prompt':
|
|
104
|
-
return this.handleSubmitPromptResult(result, context, geminiMdPath, context.eventBus, taskId, contextId);
|
|
105
|
-
default:
|
|
106
|
-
throw new Error('Unknown result type from performInit');
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
//# sourceMappingURL=init.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../src/commands/init.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC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: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
|
7
|
-
import { InitCommand } from './init.js';
|
|
8
|
-
import { performInit } from '@google/gemini-cli-core';
|
|
9
|
-
import * as fs from 'node:fs';
|
|
10
|
-
import * as path from 'node:path';
|
|
11
|
-
import { CoderAgentExecutor } from '../agent/executor.js';
|
|
12
|
-
import { CoderAgentEvent } from '../types.js';
|
|
13
|
-
import { createMockConfig } from '../utils/testing_utils.js';
|
|
14
|
-
import { logger } from '../utils/logger.js';
|
|
15
|
-
vi.mock('@google/gemini-cli-core', async (importOriginal) => {
|
|
16
|
-
const actual = await importOriginal();
|
|
17
|
-
return {
|
|
18
|
-
...actual,
|
|
19
|
-
performInit: vi.fn(),
|
|
20
|
-
};
|
|
21
|
-
});
|
|
22
|
-
vi.mock('node:fs', () => ({
|
|
23
|
-
existsSync: vi.fn(),
|
|
24
|
-
writeFileSync: vi.fn(),
|
|
25
|
-
}));
|
|
26
|
-
vi.mock('../agent/executor.js', () => ({
|
|
27
|
-
CoderAgentExecutor: vi.fn().mockImplementation(() => ({
|
|
28
|
-
execute: vi.fn(),
|
|
29
|
-
})),
|
|
30
|
-
}));
|
|
31
|
-
vi.mock('../utils/logger.js', () => ({
|
|
32
|
-
logger: {
|
|
33
|
-
info: vi.fn(),
|
|
34
|
-
error: vi.fn(),
|
|
35
|
-
},
|
|
36
|
-
}));
|
|
37
|
-
describe('InitCommand', () => {
|
|
38
|
-
let eventBus;
|
|
39
|
-
let command;
|
|
40
|
-
let context;
|
|
41
|
-
let publishSpy;
|
|
42
|
-
let mockExecute;
|
|
43
|
-
const mockWorkspacePath = path.resolve('/tmp');
|
|
44
|
-
beforeEach(() => {
|
|
45
|
-
process.env['CODER_AGENT_WORKSPACE_PATH'] = mockWorkspacePath;
|
|
46
|
-
eventBus = {
|
|
47
|
-
publish: vi.fn(),
|
|
48
|
-
};
|
|
49
|
-
command = new InitCommand();
|
|
50
|
-
const mockConfig = createMockConfig({
|
|
51
|
-
getModel: () => 'gemini-pro',
|
|
52
|
-
});
|
|
53
|
-
const mockExecutorInstance = new CoderAgentExecutor();
|
|
54
|
-
context = {
|
|
55
|
-
config: mockConfig,
|
|
56
|
-
agentExecutor: mockExecutorInstance,
|
|
57
|
-
eventBus,
|
|
58
|
-
};
|
|
59
|
-
publishSpy = vi.spyOn(eventBus, 'publish');
|
|
60
|
-
mockExecute = vi.fn();
|
|
61
|
-
vi.spyOn(mockExecutorInstance, 'execute').mockImplementation(mockExecute);
|
|
62
|
-
vi.clearAllMocks();
|
|
63
|
-
});
|
|
64
|
-
it('has requiresWorkspace set to true', () => {
|
|
65
|
-
expect(command.requiresWorkspace).toBe(true);
|
|
66
|
-
});
|
|
67
|
-
describe('execute', () => {
|
|
68
|
-
it('handles info from performInit', async () => {
|
|
69
|
-
vi.mocked(performInit).mockReturnValue({
|
|
70
|
-
type: 'message',
|
|
71
|
-
messageType: 'info',
|
|
72
|
-
content: 'GEMINI.md already exists.',
|
|
73
|
-
});
|
|
74
|
-
await command.execute(context, []);
|
|
75
|
-
expect(logger.info).toHaveBeenCalledWith('[EventBus event]: ', expect.objectContaining({
|
|
76
|
-
kind: 'status-update',
|
|
77
|
-
status: expect.objectContaining({
|
|
78
|
-
state: 'completed',
|
|
79
|
-
message: expect.objectContaining({
|
|
80
|
-
parts: [{ kind: 'text', text: 'GEMINI.md already exists.' }],
|
|
81
|
-
}),
|
|
82
|
-
}),
|
|
83
|
-
}));
|
|
84
|
-
expect(publishSpy).toHaveBeenCalledWith(expect.objectContaining({
|
|
85
|
-
kind: 'status-update',
|
|
86
|
-
status: expect.objectContaining({
|
|
87
|
-
state: 'completed',
|
|
88
|
-
message: expect.objectContaining({
|
|
89
|
-
parts: [{ kind: 'text', text: 'GEMINI.md already exists.' }],
|
|
90
|
-
}),
|
|
91
|
-
}),
|
|
92
|
-
}));
|
|
93
|
-
});
|
|
94
|
-
it('handles error from performInit', async () => {
|
|
95
|
-
vi.mocked(performInit).mockReturnValue({
|
|
96
|
-
type: 'message',
|
|
97
|
-
messageType: 'error',
|
|
98
|
-
content: 'An error occurred.',
|
|
99
|
-
});
|
|
100
|
-
await command.execute(context, []);
|
|
101
|
-
expect(publishSpy).toHaveBeenCalledWith(expect.objectContaining({
|
|
102
|
-
kind: 'status-update',
|
|
103
|
-
status: expect.objectContaining({
|
|
104
|
-
state: 'failed',
|
|
105
|
-
message: expect.objectContaining({
|
|
106
|
-
parts: [{ kind: 'text', text: 'An error occurred.' }],
|
|
107
|
-
}),
|
|
108
|
-
}),
|
|
109
|
-
}));
|
|
110
|
-
});
|
|
111
|
-
describe('when handling submit_prompt', () => {
|
|
112
|
-
beforeEach(() => {
|
|
113
|
-
vi.mocked(performInit).mockReturnValue({
|
|
114
|
-
type: 'submit_prompt',
|
|
115
|
-
content: 'Create a new GEMINI.md file.',
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
it('writes the file and executes the agent', async () => {
|
|
119
|
-
await command.execute(context, []);
|
|
120
|
-
expect(fs.writeFileSync).toHaveBeenCalledWith(path.join(mockWorkspacePath, 'GEMINI.md'), '', 'utf8');
|
|
121
|
-
expect(mockExecute).toHaveBeenCalled();
|
|
122
|
-
});
|
|
123
|
-
it('passes autoExecute to the agent executor', async () => {
|
|
124
|
-
await command.execute(context, []);
|
|
125
|
-
expect(mockExecute).toHaveBeenCalledWith(expect.objectContaining({
|
|
126
|
-
userMessage: expect.objectContaining({
|
|
127
|
-
parts: expect.arrayContaining([
|
|
128
|
-
expect.objectContaining({
|
|
129
|
-
text: 'Create a new GEMINI.md file.',
|
|
130
|
-
}),
|
|
131
|
-
]),
|
|
132
|
-
metadata: {
|
|
133
|
-
coderAgent: {
|
|
134
|
-
kind: CoderAgentEvent.StateAgentSettingsEvent,
|
|
135
|
-
workspacePath: mockWorkspacePath,
|
|
136
|
-
autoExecute: true,
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
}),
|
|
140
|
-
}), eventBus);
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
//# sourceMappingURL=init.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.test.js","sourceRoot":"","sources":["../../../src/commands/init.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,EAAE,CAAC,IAAI,CAAC,yBAAyB,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;IAC1D,MAAM,MAAM,GACV,MAAM,cAAc,EAA4C,CAAC;IACnE,OAAO;QACL,GAAG,MAAM;QACT,WAAW,EAAE,EAAE,CAAC,EAAE,EAAE;KACrB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC;IACxB,UAAU,EAAE,EAAE,CAAC,EAAE,EAAE;IACnB,aAAa,EAAE,EAAE,CAAC,EAAE,EAAE;CACvB,CAAC,CAAC,CAAC;AAEJ,EAAE,CAAC,IAAI,CAAC,sBAAsB,EAAE,GAAG,EAAE,CAAC,CAAC;IACrC,kBAAkB,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,kBA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