gemini-cli/packages/core/src/utils
2026-04-20 17:49:16 +00:00
..
__fixtures__ test: add readWasmBinaryFromDisk unit test (#11546) 2025-10-21 02:42:16 +00:00
filesearch test: fix Windows CI execution and resolve exposed platform failures (#24476) 2026-04-03 15:50:29 +00:00
agent-sanitization-utils.test.ts fix(core): add sanitization to sub agent thoughts and centralize utilities (#22828) 2026-03-20 19:19:18 +00:00
agent-sanitization-utils.ts fix(core): add sanitization to sub agent thoughts and centralize utilities (#22828) 2026-03-20 19:19:18 +00:00
apiConversionUtils.test.ts fix: merge duplicate imports in packages/core (3/4) (#20928) 2026-03-04 00:12:59 +00:00
apiConversionUtils.ts feat(cli): add /chat debug command for nightly builds (#16339) 2026-01-11 19:11:06 +00:00
approvalModeUtils.test.ts feat(plan): inject message when user manually exits Plan mode (#20203) 2026-02-24 19:31:41 +00:00
approvalModeUtils.ts feat(plan): inject message when user manually exits Plan mode (#20203) 2026-02-24 19:31:41 +00:00
authConsent.test.ts fix: merge duplicate imports in packages/core (3/4) (#20928) 2026-03-04 00:12:59 +00:00
authConsent.ts feat(core): remove unnecessary login verbiage from Code Assist auth (#19861) 2026-02-21 21:55:11 +00:00
bfsFileSearch.test.ts Add support for an additional exclusion file besides .gitignore and .geminiignore (#16487) 2026-01-28 01:19:13 +00:00
bfsFileSearch.ts fix(core): unsafe type assertions in Core File System #19712 (#19739) 2026-04-02 20:44:22 +00:00
browser.ts chore(compiler): Enable strict property access TS compiler flag. (#6255) 2025-08-17 16:43:21 +00:00
browserConsent.test.ts fix(core): don't persist browser consent sentinel in non-interactive mode (#23073) 2026-03-19 06:47:13 +00:00
browserConsent.ts fix(core): don't persist browser consent sentinel in non-interactive mode (#23073) 2026-03-19 06:47:13 +00:00
cache.test.ts feat(core): implement generic CacheService and optimize setupUser (#21374) 2026-03-06 19:39:50 +00:00
cache.ts feat(core): implement generic CacheService and optimize setupUser (#21374) 2026-03-06 19:39:50 +00:00
channel.test.ts feat(core): Add support for listing experiments (#12495) 2025-11-03 21:51:22 +00:00
channel.ts feat(core): Add support for listing experiments (#12495) 2025-11-03 21:51:22 +00:00
checkpointUtils.test.ts refactor(core): extract static concerns from CoreToolScheduler (#15589) 2025-12-26 20:51:39 +00:00
checkpointUtils.ts fix(core): unsafe type assertions in Core File System #19712 (#19739) 2026-04-02 20:44:22 +00:00
checks.test.ts refactor: migrate checks.ts utility to core and deduplicate (#18139) 2026-02-03 00:32:13 +00:00
checks.ts refactor: migrate checks.ts utility to core and deduplicate (#18139) 2026-02-03 00:32:13 +00:00
compatibility.test.ts fix(core): detect kmscon terminal as supporting true color (#25282) 2026-04-14 19:08:51 +00:00
compatibility.ts fix(core): detect kmscon terminal as supporting true color (#25282) 2026-04-14 19:08:51 +00:00
constants.ts feat(core): centralize read_file limits and update gemini-3 description (#20619) 2026-03-02 20:11:58 +00:00
customHeaderUtils.test.ts Add Databricks auth support and custom header option to gemini cli (#11893) 2025-11-26 00:22:47 +00:00
customHeaderUtils.ts Add Databricks auth support and custom header option to gemini cli (#11893) 2025-11-26 00:22:47 +00:00
deadlineTimer.test.ts feat(core): pause agent timeout budget while waiting for tool confirmation (#18415) 2026-02-08 04:03:47 +00:00
deadlineTimer.ts feat(core): pause agent timeout budget while waiting for tool confirmation (#18415) 2026-02-08 04:03:47 +00:00
debugLogger.test.ts Protect stdout and stderr so JavaScript code can't accidentally write to stdout corrupting ink rendering (#13247) 2025-11-20 10:44:02 -08:00
debugLogger.ts Migrate console to coreEvents.emitFeedback or debugLogger (#15219) 2025-12-29 20:46:10 +00:00
delay.test.ts chore: do not retry the model request if the user has aborted the request (#11224) 2025-10-20 15:21:49 +00:00
delay.ts chore: do not retry the model request if the user has aborted the request (#11224) 2025-10-20 15:21:49 +00:00
editCorrector.test.ts fix: merge duplicate imports in packages/core (3/4) (#20928) 2026-03-04 00:12:59 +00:00
editCorrector.ts Disallow underspecified types (#21485) 2026-03-07 21:05:38 +00:00
editor.test.ts fix(core): handle GUI editor non-zero exit codes gracefully (#20376) 2026-03-09 23:51:10 +00:00
editor.ts Fix crash when vim editor is not found in PATH on Windows (#22423) 2026-04-02 17:40:19 +00:00
envExpansion.test.ts fix(core): allow environment variable expansion and explicit overrides for MCP servers (#18837) 2026-02-23 21:35:01 +00:00
envExpansion.ts fix: merge duplicate imports in a2a-server package (2/4) (#19781) 2026-02-27 21:13:30 +00:00
environmentContext.test.ts refactor(core): align JIT memory placement with tiered context model (#22766) 2026-03-17 20:20:32 +00:00
environmentContext.ts refactor(core): align JIT memory placement with tiered context model (#22766) 2026-03-17 20:20:32 +00:00
errorParsing.test.ts fix: handle request retries and model fallback correctly (#11624) 2025-10-24 18:09:06 +00:00
errorParsing.ts Unused error variables in catch block are not allowed (#24487) 2026-04-02 04:33:07 +00:00
errorReporting.test.ts Migrate console to coreEvents.emitFeedback or debugLogger (#15219) 2025-12-29 20:46:10 +00:00
errorReporting.ts Migrate console to coreEvents.emitFeedback or debugLogger (#15219) 2025-12-29 20:46:10 +00:00
errors.test.ts fix(core): explicitly set error names to avoid bundling renaming issues (#23913) 2026-03-27 03:40:49 +00:00
errors.ts fix(core): explicitly set error names to avoid bundling renaming issues (#23913) 2026-03-27 03:40:49 +00:00
errors_timeout.test.ts feat(core): increase fetch timeout and fix [object Object] error stringification (#20441) 2026-02-26 23:41:09 +00:00
events.test.ts feat(mcp): add progress bar, throttling, and input validation for MCP tool progress (#19772) 2026-02-24 17:13:51 +00:00
events.ts feat(hooks): display hook system messages in UI (#24616) 2026-04-07 17:42:39 +00:00
exitCodes.ts Update error codes when process exiting the gemini cli (#13728) 2025-11-26 02:43:21 +00:00
extensionLoader.test.ts feat(core): Fully migrate packages/core to AgentLoopContext. (#22115) 2026-03-13 01:56:31 +00:00
extensionLoader.ts feat(core): Fully migrate packages/core to AgentLoopContext. (#22115) 2026-03-13 01:56:31 +00:00
fastAckHelper.test.ts feat(core): experimental in-progress steering hints (1 of 3) (#19008) 2026-02-17 22:59:33 +00:00
fastAckHelper.ts refactor(core): introduce InjectionService with source-aware injection and backend-native background completions (#22544) 2026-03-16 21:06:29 +00:00
fetch.test.ts feat(core): use experiment flags for default fetch timeouts (#24261) 2026-04-07 22:35:04 +00:00
fetch.ts feat(core): use experiment flags for default fetch timeouts (#24261) 2026-04-07 22:35:04 +00:00
fileDiffUtils.test.ts Fix number of lines being reported in rewind confirmation dialog (#18675) 2026-02-09 23:11:53 +00:00
fileDiffUtils.ts Send accepted/removed lines with ACCEPT_FILE telemetry. (#19670) 2026-02-20 19:07:43 +00:00
fileUtils.test.ts fix(core): replace custom binary detection with isbinaryfile to correctly handle UTF-8 (U+FFFD) (#25297) 2026-04-13 18:58:18 +00:00
fileUtils.ts fix(core): replace custom binary detection with isbinaryfile to correctly handle UTF-8 (U+FFFD) (#25297) 2026-04-13 18:58:18 +00:00
flashFallback.test.ts feat(core): add HTTP 499 to retryable errors and map to RetryableQuotaError (#20432) 2026-02-26 15:42:34 +00:00
formatters.test.ts refactor: rename formatMemoryUsage to formatBytes (#14997) 2026-01-27 16:21:53 +00:00
formatters.ts refactor: rename formatMemoryUsage to formatBytes (#14997) 2026-01-27 16:21:53 +00:00
fsErrorMessages.test.ts fix(core): show descriptive error messages when saving settings fails (#18095) 2026-03-13 16:19:56 +00:00
fsErrorMessages.ts fix(core): show descriptive error messages when saving settings fails (#18095) 2026-03-13 16:19:56 +00:00
generateContentResponseUtilities.test.ts fix: merge duplicate imports in packages/core (3/4) (#20928) 2026-03-04 00:12:59 +00:00
generateContentResponseUtilities.ts Add ModelDefinitions to ModelConfigService (#22302) 2026-03-14 21:45:21 +00:00
getFolderStructure.test.ts chore(lint): fix lint errors seen when running npm run lint (#19844) 2026-02-21 18:33:25 +00:00
getFolderStructure.ts fix(core): silently handle EPERM when listing dir structure (#25066) 2026-04-09 22:25:23 +00:00
getPty.ts Unused error variables in catch block are not allowed (#24487) 2026-04-02 04:33:07 +00:00
gitIgnoreParser.test.ts refactor(core): improve ignore resolution and fix directory-matching bug (#23816) 2026-03-27 17:12:26 +00:00
gitIgnoreParser.ts Unused error variables in catch block are not allowed (#24487) 2026-04-02 04:33:07 +00:00
gitUtils.ts Unused error variables in catch block are not allowed (#24487) 2026-04-02 04:33:07 +00:00
googleErrors.test.ts fix(core): sanitize SSE-corrupted JSON and domain strings in error classification (#21702) 2026-03-09 14:08:33 +00:00
googleErrors.ts Unused error variables in catch block are not allowed (#24487) 2026-04-02 04:33:07 +00:00
googleQuotaErrors.test.ts fix(core): honor retryDelay in RetryInfo for 503 errors (#25057) 2026-04-09 20:16:36 +00:00
googleQuotaErrors.ts fix(core): honor retryDelay in RetryInfo for 503 errors (#25057) 2026-04-09 20:16:36 +00:00
headless.test.ts fix(core): ensure --yolo does not force headless mode (#18976) 2026-02-13 15:43:50 +00:00
headless.ts fix(core): ensure --yolo does not force headless mode (#18976) 2026-02-13 15:43:50 +00:00
httpErrors.ts Disallow unsafe type assertions (#18688) 2026-02-10 00:10:15 +00:00
ignoreFileParser.test.ts refactor(core): improve ignore resolution and fix directory-matching bug (#23816) 2026-03-27 17:12:26 +00:00
ignoreFileParser.ts Unused error variables in catch block are not allowed (#24487) 2026-04-02 04:33:07 +00:00
ignorePathUtils.test.ts refactor(core): improve ignore resolution and fix directory-matching bug (#23816) 2026-03-27 17:12:26 +00:00
ignorePathUtils.ts refactor(core): improve ignore resolution and fix directory-matching bug (#23816) 2026-03-27 17:12:26 +00:00
ignorePatterns.test.ts Adding Parameterised tests (#11930) 2025-10-24 13:45:36 +00:00
ignorePatterns.ts Explict imports & exports with type modifier (#3774) 2025-08-25 22:04:53 +00:00
installationManager.test.ts fix: merge duplicate imports in packages/core (3/4) (#20928) 2026-03-04 00:12:59 +00:00
installationManager.ts migrating console.error to debugger for installationManager, oauth-provider, modifiable-tool (#12279) 2025-10-31 18:17:51 +00:00
language-detection.test.ts fix(core): update language detection to use LSP 3.18 identifiers (#21931) 2026-03-11 16:05:52 +00:00
language-detection.ts fix(core): update language detection to use LSP 3.18 identifiers (#21931) 2026-03-11 16:05:52 +00:00
llm-edit-fixer.test.ts feat(routing): A/B Test Numerical Complexity Scoring for Gemini 3 (#16041) 2026-01-22 22:12:07 +00:00
llm-edit-fixer.ts feat: add role-specific statistics to telemetry and UI (cont. #15234) (#18824) 2026-02-17 17:32:30 +00:00
markdownUtils.test.ts feat(core): improve subagent result display (#20378) 2026-03-09 19:20:15 +00:00
markdownUtils.ts feat(core): improve subagent result display (#20378) 2026-03-09 19:20:15 +00:00
memoryDiscovery.test.ts feat(context): add configurable memoryBoundaryMarkers setting (#24020) 2026-03-27 21:51:32 +00:00
memoryDiscovery.ts test: fix Windows CI execution and resolve exposed platform failures (#24476) 2026-04-03 15:50:29 +00:00
memoryImportProcessor.test.ts Protect stdout and stderr so JavaScript code can't accidentally write to stdout corrupting ink rendering (#13247) 2025-11-20 10:44:02 -08:00
memoryImportProcessor.ts feat(context): add configurable memoryBoundaryMarkers setting (#24020) 2026-03-27 21:51:32 +00:00
messageInspectors.ts Explict imports & exports with type modifier (#3774) 2025-08-25 22:04:53 +00:00
nextSpeakerChecker.test.ts feat(core): Fully migrate packages/core to AgentLoopContext. (#22115) 2026-03-13 01:56:31 +00:00
nextSpeakerChecker.ts perf(core): fix OOM crash in long-running sessions (#19608) 2026-03-05 04:23:07 +00:00
oauth-flow.test.ts fix(core): clear 5-minute timeouts in oauth flow to prevent memory leaks (#24968) 2026-04-09 21:14:07 +00:00
oauth-flow.ts fix(core): clear 5-minute timeouts in oauth flow to prevent memory leaks (#24968) 2026-04-09 21:14:07 +00:00
package.test.ts Fix missing slash commands when Gemini CLI is in a project with a package.json that doesn't follow semantic versioning (#17561) 2026-01-27 18:18:16 +00:00
package.ts Fix missing slash commands when Gemini CLI is in a project with a package.json that doesn't follow semantic versioning (#17561) 2026-01-27 18:18:16 +00:00
partUtils.test.ts fix(partUtils): display media type and size for inline data parts (#21358) 2026-03-06 15:45:43 +00:00
partUtils.ts fix(partUtils): display media type and size for inline data parts (#21358) 2026-03-06 15:45:43 +00:00
pathCorrector.test.ts Limit search depth in path corrector (#14869) 2025-12-10 04:08:39 +00:00
pathCorrector.ts Limit search depth in path corrector (#14869) 2025-12-10 04:08:39 +00:00
pathReader.test.ts fix(core) Path reader method readPathFromWorkspace does not respect git/gemini ignore config. (#10073) 2025-11-05 21:40:54 +00:00
pathReader.ts fix(core) Path reader method readPathFromWorkspace does not respect git/gemini ignore config. (#10073) 2025-11-05 21:40:54 +00:00
paths.test.ts refactor(core): extract and centralize sandbox path utilities (#25305) 2026-04-13 18:43:13 +00:00
paths.ts refactor(core): extract and centralize sandbox path utilities (#25305) 2026-04-13 18:43:13 +00:00
planUtils.test.ts fix(plan): sandbox path resolution in Plan Mode to prevent hallucinations (#22737) 2026-03-24 13:19:29 +00:00
planUtils.ts fix(plan): sandbox path resolution in Plan Mode to prevent hallucinations (#22737) 2026-03-24 13:19:29 +00:00
process-utils.test.ts fix(core): resolve PTY exhaustion and orphan MCP subprocess leaks (#25079) 2026-04-10 18:57:09 +00:00
process-utils.ts fix(core): resolve PTY exhaustion and orphan MCP subprocess leaks (#25079) 2026-04-10 18:57:09 +00:00
promptIdContext.ts feat(routing): A/B Test Numerical Complexity Scoring for Gemini 3 (#16041) 2026-01-22 22:12:07 +00:00
quotaErrorDetection.ts Disallow unsafe type assertions (#18688) 2026-02-10 00:10:15 +00:00
retry.test.ts Fix(core): retry additional OpenSSL 3.x SSL errors during streaming (#16075) (#25187) 2026-04-15 02:50:22 +00:00
retry.ts Fix(core): retry additional OpenSSL 3.x SSL errors during streaming (#16075) (#25187) 2026-04-15 02:50:22 +00:00
safeJsonStringify.test.ts Fix circular reference JSON serialization in telemetry logging (#4150) 2025-07-14 20:20:06 +00:00
safeJsonStringify.ts Disallow unsafe returns. (#19767) 2026-02-21 01:12:56 +00:00
schemaValidator.test.ts feat(core): add draft-2020-12 JSON Schema support with lenient fallback (#15060) 2026-02-03 15:49:08 +00:00
schemaValidator.ts test: support tests that include color information (#20220) 2026-02-25 23:31:35 +00:00
secure-browser-launcher.test.ts New browser launcher for MCP OAuth. (#5261) 2025-08-01 05:47:22 +00:00
secure-browser-launcher.ts Unused error variables in catch block are not allowed (#24487) 2026-04-02 04:33:07 +00:00
security.test.ts fix(security): enforce strict policy directory permissions (#17353) 2026-01-27 00:27:49 +00:00
security.ts Disallow unsafe type assertions (#18688) 2026-02-10 00:10:15 +00:00
session.ts fix(core): dynamic session ID injection to resolve resume bugs (#24972) 2026-04-08 23:27:24 +00:00
sessionOperations.test.ts feat(core): subagent isolation and cleanup hardening (#23903) 2026-03-27 03:43:39 +00:00
sessionOperations.ts feat(core): migrate chat recording to JSONL streaming (#23749) 2026-04-09 21:13:55 +00:00
sessionUtils.test.ts feat(cli): overhaul thinking UI (#18725) 2026-03-07 04:20:27 +00:00
sessionUtils.ts feat(cli): overhaul thinking UI (#18725) 2026-03-07 04:20:27 +00:00
shell-utils.integration.test.ts Unused error variables in catch block are not allowed (#24487) 2026-04-02 04:33:07 +00:00
shell-utils.test.ts fix(core): ensure sandbox approvals are correctly persisted and matched for proactive expansions (#24577) 2026-04-03 21:48:18 +00:00
shell-utils.ts fix(core): ensure robust sandbox cleanup in all process execution paths (#24763) 2026-04-08 19:03:36 +00:00
stdio.test.ts refactor(stdio): always patch stdout and use createWorkingStdio for clean output (#14159) 2025-12-02 23:08:25 +00:00
stdio.ts Disallow Object.create() and reflect. (#22408) 2026-03-16 16:24:27 +00:00
summarizer.test.ts feat(core): Thread AgentLoopContext through core. (#21944) 2026-03-11 01:12:59 +00:00
summarizer.ts feat: add role-specific statistics to telemetry and UI (cont. #15234) (#18824) 2026-02-17 17:32:30 +00:00
surface.ts feat(core): refine User-Agent for VS Code traffic (unified format) (#23256) 2026-03-20 19:31:01 +00:00
systemEncoding.test.ts Protect stdout and stderr so JavaScript code can't accidentally write to stdout corrupting ink rendering (#13247) 2025-11-20 10:44:02 -08:00
systemEncoding.ts Unused error variables in catch block are not allowed (#24487) 2026-04-02 04:33:07 +00:00
terminal.ts Refactoring of disabling of mouse tracking in e2e tests (#17902) 2026-01-29 22:05:19 +00:00
terminalSerializer.test.ts fix(core): detect uninitialized lines (#24646) 2026-04-04 00:51:29 +00:00
terminalSerializer.ts fix(core): detect uninitialized lines (#24646) 2026-04-04 00:51:29 +00:00
testUtils.ts Disallow unsafe type assertions (#18688) 2026-02-10 00:10:15 +00:00
textUtils.test.ts fix(core): handle surrogate pairs in truncateString (#22754) 2026-03-17 05:41:19 +00:00
textUtils.ts feat(core): agnostic background task UI with CompletionBehavior (#22740) 2026-03-28 21:27:51 +00:00
thoughtUtils.test.ts refactor(core): Extract thought parsing logic into a dedicated utility (#9503) 2025-09-24 19:38:36 +00:00
thoughtUtils.ts refactor(core): Extract thought parsing logic into a dedicated utility (#9503) 2025-09-24 19:38:36 +00:00
tokenCalculation.test.ts perf(core): optimize token calculation and add support for multimodal tool responses (#17835) 2026-01-30 15:15:00 +00:00
tokenCalculation.ts feat(core): wire up the new ContextManager and AgentChatHistory 2026-04-20 17:49:16 +00:00
tool-utils.test.ts fix(cli): exclude update_topic from confirmation queue count (#24945) 2026-04-10 23:04:59 +00:00
tool-utils.ts fix(cli): exclude update_topic from confirmation queue count (#24945) 2026-04-10 23:04:59 +00:00
tool-visibility.test.ts fix(cli): exclude update_topic from confirmation queue count (#24945) 2026-04-10 23:04:59 +00:00
tool-visibility.ts fix(cli): exclude update_topic from confirmation queue count (#24945) 2026-04-10 23:04:59 +00:00
toolCallContext.test.ts feat(agents): migrate subagents to event-driven scheduler (#17567) 2026-01-26 22:12:55 +00:00
toolCallContext.ts feat(core): add experimental memory manager agent to replace save_memory tool (#22726) 2026-03-19 12:57:52 -07:00
userAccountManager.test.ts fix: merge duplicate imports in packages/core (3/4) (#20928) 2026-03-04 00:12:59 +00:00
userAccountManager.ts Disallow and suppress unsafe assignment (#19736) 2026-02-20 22:28:55 +00:00
version.test.ts fix(core): cache CLI version to ensure consistency during sessions (#18793) 2026-02-11 17:01:50 +00:00
version.ts fix(core): cache CLI version to ensure consistency during sessions (#18793) 2026-02-11 17:01:50 +00:00
workspaceContext.test.ts fix(core,cli): enable recursive directory access for (#17094) 2026-01-21 17:58:23 +00:00
workspaceContext.ts Unused error variables in catch block are not allowed (#24487) 2026-04-02 04:33:07 +00:00