Commit Graph

44 Commits

Author SHA1 Message Date
shishu314 94d70199ca Fix(noninteractive) - Add message when user uses deprecated flag (#11682)
Co-authored-by: gemini-cli-robot <gemini-cli-robot@google.com>
2025-10-29 21:54:40 +00:00
Krishna Bajpai 5553f077aa fix(cli): Add delimiter before printing tool response in non-interactive mode (#11351) 2025-10-27 14:57:54 +00:00
Sandy Tao c03efba5df fix(cli): re-throw errors in non-interactive mode (#11849) 2025-10-24 01:52:16 +00:00
Abhi 27b7279608 feat(ux): Surface internal errors via unified event system (#11803) 2025-10-23 18:14:14 +00:00
Abhi 6af2bff897 refactor(logging): Centralize all console messaging to a shared logger (part 1) (#11537) 2025-10-20 22:16:47 +00:00
anj-s 80d5df3e08 Add support for output-format stream-jsonflag for headless mode (#10883) 2025-10-15 20:55:37 +00:00
bl-ue b91e77b9c6 fix(cli): record tool calls in non-interactive mode (#10951) 2025-10-14 15:51:00 +00:00
James 3204278216 feat(cli) Custom Commands work in Non-Interactive/Headless Mode (#8305) 2025-09-19 13:49:35 +00:00
Jerop Kipruto d468caeaa9 Structured JSON Output (#8119) 2025-09-10 20:19:47 +00:00
Abhi 32992ff772 refactor(core): Introduce LlmUtilityService and promptIdContext (#7952) 2025-09-09 05:14:15 +00:00
Tommaso Sciortino 6a26741ec6 Standardize exit codes (#7055) 2025-08-26 04:44:45 +00:00
Pascal Birchler a97a6cc71b Explict imports & exports with type modifier (#3774) 2025-08-25 22:04:53 +00:00
Tommaso Sciortino bcd4abcbd7 Change the type of ToolResult.responseParts (#6875) 2025-08-22 21:12:05 +00:00
Tommaso Sciortino fba18d77a2 Reuse CoreToolScheduler for nonInteractiveToolExecutor (#6714) 2025-08-21 23:49:12 +00:00
Victor May 205b052b7a At Command Race Condition Bugfix For Non-Interactive Mode (#6676) 2025-08-21 18:47:40 +00:00
Tommaso Sciortino 9f23c95f0b Get ToolRegistry from config instead of passing it (#6592) 2025-08-19 23:27:15 +00:00
Tommaso Sciortino c0c371bf5d Remove unnecessary promiuse usage. (#6585) 2025-08-19 22:31:02 +00:00
joshualitt 274898d6f5 bug(core): Do not throw validation errors when building tools in nonInteractiveToolExecutor. (#6363) 2025-08-18 20:28:15 +00:00
Adam Weidman 8bd72efbfc move errorParsing.ts to core (#6159) 2025-08-13 17:57:11 +00:00
Jerop Kipruto 8506f6f461 Show OpenTelemetry SDK initialization & shutdown in debug mode only (#6096) 2025-08-13 01:38:45 +00:00
Jacob MacDonald f1dcc5603d avoid loading and initializing CLI config twice in non-interactive mode (#5793) 2025-08-07 21:19:06 +00:00
Allen Hutchison bc1ab4e6d4 feat(cli): route non-interactive output to stderr (#5624) 2025-08-05 23:11:21 +00:00
Silvio Junior 7c6b21266e [Fix Telemetry for tool calls, PR 1/n] Propagate tool reported errors via ToolCallResponseInfo and ToolResult (#5222) 2025-08-01 15:20:08 +00:00
anj-s 737717e730 Fix: Ensure that non interactive mode and interactive mode are calling the same entry points (#5137) 2025-07-31 12:36:12 +00:00
Gaurav cda5d7be69 fix: TypeError: Cannot read properties of undefined (reading 'authType') (#3914) 2025-07-11 21:08:49 +00:00
anj-s 0c63983909 Add support for specifying maxSessionTurns via the settings configuration (#3507) 2025-07-11 14:55:03 +00:00
uttamkanodia14 3bd85150b2 Adding TurnId to Tool call and API responses and error logs. (#3039)
Co-authored-by: Scott Densmore <scottdensmore@mac.com>
2025-07-09 18:49:30 +00:00
N. Taylor Mullen b9195adb0f fix(deps): revert yargs bump and fix npx regression (#3610) 2025-07-08 23:44:56 -07:00
Vachan 83bab4b624 Updates error handling in case of incorrect tool calling. (#2304) 2025-06-27 23:57:40 +00:00
Brandon Keiji 5ad4a0a826 fix: prepublish changes to package names (#1420) 2025-06-25 12:41:11 +00:00
Keith Ballinger 01dbadf3c0 [June 25] handle early output pipe closer (#1402) 2025-06-25 00:39:01 +00:00
Abhi b308e0eaef feat: add custom message for 429 errors (#1366) 2025-06-24 03:43:00 +00:00
Abhi 749de0662e Add error messaging for 429 errors (#1316) 2025-06-23 21:30:13 +00:00
Abhi a9d2ec7d46 feat: Add client-initiated tool call handling (#1292) 2025-06-22 01:35:36 -04:00
Allen Hutchison aa967d7a49 Fix noise in headless mode on STDOUT (#1184) 2025-06-18 11:40:15 -07:00
matt korwel fbe69c2135 Preflight and integration npx (#1096) 2025-06-16 15:27:29 +00:00
Jerop Kipruto bea4a403ee Handle telemetry in non-interactive mode (#1002)
Changes:
- Ensure proper shutdown in non-interactive mode
- Ensures the initial user prompt is logged in non-interactive mode
- Improve telemetry for streaming - handle chunks and input token count is now alongside other token counts in response

To test:
- Follow instructions in https://github.com/google-gemini/gemini-cli/blob/main/docs/core/telemetry.md#google-cloud
- Run CLI in non-interactive mode and observe logs/metrics in GCP Logs Explorer and Metrics Explorer

#750
2025-06-13 03:44:17 -04:00
jerop 47b87a05f1 refactor(telemetry): pass config object to telemetry functions
This commit refactors the telemetry system to pass a  object to various logging and metrics functions. This change centralizes configuration management within the telemetry system, making it more modular and easier to maintain.

The  constructor and various tool execution functions have been updated to accept the  object, which is then passed down to the telemetry functions. This eliminates the need to pass individual configuration values, such as , through multiple layers of the application.
2025-06-11 13:24:41 -04:00
cperry-goog a49f734c13 refactor: rename gemini-code to gemini-cli (#822) 2025-06-07 14:27:22 -07:00
N. Taylor Mullen 3cf096328f fix(cli): Handle non-array tool response parts (#758) 2025-06-05 06:25:57 +00:00
N. Taylor Mullen 71697da1d9 Refactor: Use config.getGeminiClient() for GeminiClient instantiation (#715) 2025-06-03 05:30:52 +00:00
Brandon Keiji f5416be22b refactor: maintain 1 GeminiChat per GeminiClient (#710) 2025-06-02 19:10:54 -07:00
Olcan 55d4bbb8e7 enable async tool discovery by making the registry accessor async; remove call to discoverTools that caused duplicate discovery (#691) 2025-06-02 09:56:32 -07:00
N. Taylor Mullen 25b12d8297 feat: Implement non-interactive mode for CLI (#675) 2025-06-01 23:11:37 +00:00