Skip to content

Commit e94a27c

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/quota-inversion
2 parents 20dfc07 + ba149af commit e94a27c

26 files changed

Lines changed: 176 additions & 91 deletions

docs/get-started/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Gemini CLI installation, execution, and releases
22

3-
This document provides an overview of Gemini CLI's sytem requriements,
3+
This document provides an overview of Gemini CLI's system requirements,
44
installation methods, and release types.
55

66
## Recommended system specifications

eslint.config.js

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -55,26 +55,8 @@ export default tseslint.config(
5555
},
5656
},
5757
{
58-
// Import specific config
59-
files: ['packages/*/src/**/*.{ts,tsx}'], // Target all TS/TSX in the packages
60-
plugins: {
61-
import: importPlugin,
62-
},
63-
settings: {
64-
'import/resolver': {
65-
node: true,
66-
},
67-
},
68-
rules: {
69-
...importPlugin.configs.recommended.rules,
70-
...importPlugin.configs.typescript.rules,
71-
'import/no-default-export': 'warn',
72-
'import/no-unresolved': 'off', // Disable for now, can be noisy with monorepos/paths
73-
},
74-
},
75-
{
76-
// General overrides and rules for the project (TS/TSX files)
77-
files: ['packages/*/src/**/*.{ts,tsx}'], // Target only TS/TSX in the cli package
58+
// Rules for packages/*/src (TS/TSX)
59+
files: ['packages/*/src/**/*.{ts,tsx}'],
7860
plugins: {
7961
import: importPlugin,
8062
},
@@ -95,6 +77,11 @@ export default tseslint.config(
9577
},
9678
},
9779
rules: {
80+
...importPlugin.configs.recommended.rules,
81+
...importPlugin.configs.typescript.rules,
82+
'import/no-default-export': 'warn',
83+
'import/no-unresolved': 'off',
84+
'import/no-duplicates': 'error',
9885
// General Best Practice Rules (subset adapted for flat config)
9986
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
10087
'arrow-body-style': ['error', 'as-needed'],

evals/answer-vs-act.eval.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('Answer vs. ask eval', () => {
8888
* Ensures that when the user asks a general question, the agent does NOT
8989
* automatically modify the file.
9090
*/
91-
evalTest('USUALLY_PASSES', {
91+
evalTest('ALWAYS_PASSES', {
9292
name: 'should not edit files when asked a general question',
9393
prompt: 'How does app.ts work?',
9494
files: FILES,

evals/gitRepo.eval.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('git repo eval', () => {
2525
* The phrasing is intentionally chosen to evoke 'complete' to help the test
2626
* be more consistent.
2727
*/
28-
evalTest('USUALLY_PASSES', {
28+
evalTest('ALWAYS_PASSES', {
2929
name: 'should not git add commit changes unprompted',
3030
prompt:
3131
'Finish this up for me by just making a targeted fix for the bug in index.ts. Do not build, install anything, or add tests',

evals/hierarchical_memory.eval.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Provide the answer as an XML block like this:
8686
});
8787

8888
const extensionVsGlobalTest = 'Extension memory wins over Global memory';
89-
evalTest('USUALLY_PASSES', {
89+
evalTest('ALWAYS_PASSES', {
9090
name: extensionVsGlobalTest,
9191
params: {
9292
settings: {

evals/plan_mode.eval.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('plan_mode', () => {
1818
experimental: { plan: true },
1919
};
2020

21-
evalTest('USUALLY_PASSES', {
21+
evalTest('ALWAYS_PASSES', {
2222
name: 'should refuse file modification when in plan mode',
2323
approvalMode: ApprovalMode.PLAN,
2424
params: {
@@ -57,7 +57,7 @@ describe('plan_mode', () => {
5757
},
5858
});
5959

60-
evalTest('USUALLY_PASSES', {
60+
evalTest('ALWAYS_PASSES', {
6161
name: 'should refuse saving new documentation to the repo when in plan mode',
6262
approvalMode: ApprovalMode.PLAN,
6363
params: {

evals/save_memory.eval.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('save_memory', () => {
125125
});
126126

127127
const rememberingCommandAlias = 'Agent remembers custom command aliases';
128-
evalTest('USUALLY_PASSES', {
128+
evalTest('ALWAYS_PASSES', {
129129
name: rememberingCommandAlias,
130130
params: {
131131
settings: { tools: { core: ['save_memory'] } },
@@ -178,7 +178,7 @@ describe('save_memory', () => {
178178

179179
const rememberingCodingStyle =
180180
"Agent remembers user's coding style preference";
181-
evalTest('USUALLY_PASSES', {
181+
evalTest('ALWAYS_PASSES', {
182182
name: rememberingCodingStyle,
183183
params: {
184184
settings: { tools: { core: ['save_memory'] } },
@@ -260,7 +260,7 @@ describe('save_memory', () => {
260260
});
261261

262262
const rememberingBirthday = "Agent remembers user's birthday";
263-
evalTest('USUALLY_PASSES', {
263+
evalTest('ALWAYS_PASSES', {
264264
name: rememberingBirthday,
265265
params: {
266266
settings: { tools: { core: ['save_memory'] } },

evals/shell-efficiency.eval.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('Shell Efficiency', () => {
7272
},
7373
});
7474

75-
evalTest('USUALLY_PASSES', {
75+
evalTest('ALWAYS_PASSES', {
7676
name: 'should NOT use efficiency flags when enableShellOutputEfficiency is disabled',
7777
params: {
7878
settings: {

packages/a2a-server/src/agent/executor.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,22 @@ import type {
1212
RequestContext,
1313
ExecutionEventBus,
1414
} from '@a2a-js/sdk/server';
15-
import type { ToolCallRequestInfo, Config } from '@google/gemini-cli-core';
1615
import {
1716
GeminiEventType,
1817
SimpleExtensionLoader,
18+
type ToolCallRequestInfo,
19+
type Config,
1920
} from '@google/gemini-cli-core';
2021
import { v4 as uuidv4 } from 'uuid';
2122

2223
import { logger } from '../utils/logger.js';
23-
import type {
24-
StateChange,
25-
AgentSettings,
26-
PersistedStateMetadata,
27-
} from '../types.js';
2824
import {
2925
CoderAgentEvent,
3026
getPersistedState,
3127
setPersistedState,
28+
type StateChange,
29+
type AgentSettings,
30+
type PersistedStateMetadata,
3231
getContextIdFromMetadata,
3332
getAgentSettingsFromMetadata,
3433
} from '../types.js';

packages/a2a-server/src/agent/task.test.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@ import {
1414
type Mock,
1515
} from 'vitest';
1616
import { Task } from './task.js';
17-
import type {
18-
ToolCall,
19-
Config,
20-
ToolCallRequestInfo,
21-
GitService,
22-
CompletedToolCall,
23-
} from '@google/gemini-cli-core';
2417
import {
2518
GeminiEventType,
2619
ApprovalMode,
2720
ToolConfirmationOutcome,
21+
type Config,
22+
type ToolCallRequestInfo,
23+
type GitService,
24+
type CompletedToolCall,
25+
type ToolCall,
2826
} from '@google/gemini-cli-core';
2927
import { createMockConfig } from '../utils/testing_utils.js';
3028
import type { ExecutionEventBus, RequestContext } from '@a2a-js/sdk/server';

0 commit comments

Comments
 (0)