gemini-cli/packages/core/src/utils
Serghei 58fd00a3df
fix(core): Add .geminiignore support to SearchText tool (#13763)
Co-authored-by: Gaurav <39389231+gsquared94@users.noreply.github.com>
2025-12-22 04:25:26 +00:00
..
__fixtures__ test: add readWasmBinaryFromDisk unit test (#11546) 2025-10-21 02:42:16 +00:00
filesearch Disallow redundant typecasts. (#15030) 2025-12-13 01:43:43 +00:00
bfsFileSearch.test.ts Limit search depth in path corrector (#14869) 2025-12-10 04:08:39 +00:00
bfsFileSearch.ts Limit search depth in path corrector (#14869) 2025-12-10 04:08:39 +00:00
browser.ts chore(compiler): Enable strict property access TS compiler flag. (#6255) 2025-08-17 16:43:21 +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 Disallow unnecessary awaits. (#15172) 2025-12-17 05:28:18 +00:00
checkpointUtils.ts Disallow unnecessary awaits. (#15172) 2025-12-17 05:28:18 +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
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 Allow telemetry exporters to GCP to utilize user's login credentials, if requested (#13778) 2025-12-03 05:27:37 +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 Disallow unnecessary awaits. (#15172) 2025-12-17 05:28:18 +00:00
editCorrector.ts Disallow unnecessary awaits. (#15172) 2025-12-17 05:28:18 +00:00
editor.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
editor.ts refactor(editor): use const assertion for editor types with single source of truth (#8604) 2025-12-03 06:16:19 +00:00
environmentContext.test.ts feat(core): Implement JIT context memory loading and UI sync (#14469) 2025-12-19 17:04:03 +00:00
environmentContext.ts feat(core): Implement JIT context memory loading and UI sync (#14469) 2025-12-19 17:04:03 +00:00
errorParsing.test.ts fix: handle request retries and model fallback correctly (#11624) 2025-10-24 18:09:06 +00:00
errorParsing.ts fix: handle request retries and model fallback correctly (#11624) 2025-10-24 18:09:06 +00:00
errorReporting.test.ts Make errorReporting test windows compatible. (#4856) 2025-07-25 17:32:23 +00:00
errorReporting.ts Explict imports & exports with type modifier (#3774) 2025-08-25 22:04:53 +00:00
errors.test.ts Fixes [API Error: Cannot read properties of undefined (reading 'error')] (#14553) 2025-12-05 01:18:37 +00:00
errors.ts Fixes [API Error: Cannot read properties of undefined (reading 'error')] (#14553) 2025-12-05 01:18:37 +00:00
events.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
events.ts feat(core): Implement JIT context memory loading and UI sync (#14469) 2025-12-19 17:04:03 +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 Refresh hooks when refreshing extensions. (#14918) 2025-12-12 16:43:46 -08:00
extensionLoader.ts Refresh hooks when refreshing extensions. (#14918) 2025-12-12 16:43:46 -08:00
fetch.ts fix(core): improve API response error handling and retry logic (#14563) 2025-12-05 17:49:08 +00:00
fileUtils.test.ts fix(audio): improve reading of audio files (#14658) 2025-12-08 17:46:33 +00:00
fileUtils.ts refactor(logging): Centralize console logging with debugLogger (#11590) 2025-10-21 20:35:22 +00:00
flashFallback.test.ts feat: launch Gemini 3 Flash in Gemini CLI ️ (#15196) 2025-12-17 09:43:21 -08:00
formatters.test.ts [Part 4/6] feat(telemetry): add memory monitor with activity-aware recording and tests (#8122) 2025-10-07 23:23:17 +00:00
formatters.ts [Part 4/6] feat(telemetry): add memory monitor with activity-aware recording and tests (#8122) 2025-10-07 23:23:17 +00:00
geminiIgnoreParser.test.ts fix(core): Add .geminiignore support to SearchText tool (#13763) 2025-12-22 04:25:26 +00:00
geminiIgnoreParser.ts fix(core): Add .geminiignore support to SearchText tool (#13763) 2025-12-22 04:25:26 +00:00
generateContentResponseUtilities.test.ts Code assist service metrics. (#15024) 2025-12-16 17:34:05 +00:00
generateContentResponseUtilities.ts Code assist service metrics. (#15024) 2025-12-16 17:34:05 +00:00
getFolderStructure.test.ts chore: Extract '.gemini' to GEMINI_DIR constant (#10540) 2025-10-13 17:31:39 +00:00
getFolderStructure.ts refactor: Switch over to unified shouldIgnoreFile (#11815) 2025-10-25 01:55:12 +00:00
getPty.ts feat(core): refactor shell execution to use node-pty (#6491) 2025-08-19 23:03:51 +00:00
gitIgnoreParser.test.ts fix(core): combine .gitignore and .geminiignore logic for correct precedence (#11587) 2025-11-01 17:06:34 +00:00
gitIgnoreParser.ts fix(core): combine .gitignore and .geminiignore logic for correct precedence (#11587) 2025-11-01 17:06:34 +00:00
gitUtils.ts chore: consistently import node modules with prefix (#3013) 2025-08-25 20:11:27 +00:00
googleErrors.test.ts feat: attempt more error parsing (#14899) 2025-12-10 19:14:07 +00:00
googleErrors.ts feat: attempt more error parsing (#14899) 2025-12-10 19:14:07 +00:00
googleQuotaErrors.test.ts Handle all 429 as retryableQuotaError (#15288) 2025-12-18 23:25:42 +00:00
googleQuotaErrors.ts Handle all 429 as retryableQuotaError (#15288) 2025-12-18 23:25:42 +00:00
httpErrors.ts feat: launch Gemini 3 in Gemini CLI 🚀🚀🚀 (in main) (#13287) 2025-11-18 09:01:16 -08: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 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
installationManager.ts migrating console.error to debugger for installationManager, oauth-provider, modifiable-tool (#12279) 2025-10-31 18:17:51 +00:00
language-detection.ts chore: consistently import node modules with prefix (#3013) 2025-08-25 20:11:27 +00:00
llm-edit-fixer.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
llm-edit-fixer.ts feat(core): Migrate generateJson to resolved model configs. (#12626) 2025-11-07 22:18:45 +00:00
LruCache.ts Rename server->core (#638) 2025-05-30 18:25:47 -07:00
memoryDiscovery.test.ts feat(core): Implement JIT context memory loading and UI sync (#14469) 2025-12-19 17:04:03 +00:00
memoryDiscovery.ts feat(core): Implement JIT context memory loading and UI sync (#14469) 2025-12-19 17:04:03 +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 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
messageInspectors.ts Explict imports & exports with type modifier (#3774) 2025-08-25 22:04:53 +00:00
nextSpeakerChecker.test.ts Allow telemetry exporters to GCP to utilize user's login credentials, if requested (#13778) 2025-12-03 05:27:37 +00:00
nextSpeakerChecker.ts feat(core): Migrate generateJson to resolved model configs. (#12626) 2025-11-07 22:18:45 +00:00
package.ts fix: (some minor improvements to configs and getPackageJson return behaviour) (#12510) 2025-11-24 21:20:23 +00:00
partUtils.test.ts feat(commands): Enable @file processing in TOML commands (#6716) 2025-08-28 03:22:21 +00:00
partUtils.ts feat(commands): Enable @file processing in TOML commands (#6716) 2025-08-28 03:22:21 +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 Fix the shortenPath function to correctly insert ellipsis. (#12004) 2025-10-25 04:10:00 +00:00
paths.ts Use consistent param names (#12517) 2025-11-06 23:03:52 +00:00
promptIdContext.ts refactor(core): Introduce LlmUtilityService and promptIdContext (#7952) 2025-09-09 05:14:15 +00:00
quotaErrorDetection.ts fix: handle request retries and model fallback correctly (#11624) 2025-10-24 18:09:06 +00:00
retry.test.ts feat: launch Gemini 3 Flash in Gemini CLI ️ (#15196) 2025-12-17 09:43:21 -08:00
retry.ts feat: launch Gemini 3 Flash in Gemini CLI ️ (#15196) 2025-12-17 09:43:21 -08:00
safeJsonStringify.test.ts Fix circular reference JSON serialization in telemetry logging (#4150) 2025-07-14 20:20:06 +00:00
safeJsonStringify.ts Log all user settings to enable measurement of experiment impacts (#11354) 2025-10-17 20:54:35 +00:00
schemaValidator.test.ts relax JSON schema validation (#9332) 2025-09-24 16:55:32 +00:00
schemaValidator.ts docs: fix typos in source code and documentation (#13577) 2025-11-21 14:59:42 +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 chore(compiler): Enable strict property access TS compiler flag. (#6255) 2025-08-17 16:43:21 +00:00
session.ts chore: consistently import node modules with prefix (#3013) 2025-08-25 20:11:27 +00:00
shell-permissions.test.ts fix(core): commandPrefix word boundary and compound command safety (#15006) 2025-12-12 23:02:19 +00:00
shell-permissions.ts fix(core): commandPrefix word boundary and compound command safety (#15006) 2025-12-12 23:02:19 +00:00
shell-utils.test.ts fix(core): commandPrefix word boundary and compound command safety (#15006) 2025-12-12 23:02:19 +00:00
shell-utils.ts more robust command parsing logs (#15339) 2025-12-19 21:53:13 +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 refactor(stdio): always patch stdout and use createWorkingStdio for clean output (#14159) 2025-12-02 23:08:25 +00:00
summarizer.test.ts feat(core): Migrate generateContent to model configs. (#12834) 2025-11-11 16:10:50 +00:00
summarizer.ts feat(core): Migrate generateContent to model configs. (#12834) 2025-11-11 16:10:50 +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 refactor(logging): Centralize console logging with debugLogger (#11590) 2025-10-21 20:35:22 +00:00
terminal.ts Fix multiple bugs with auth flow including using the implemented but unused restart support. (#13565) 2025-11-21 16:31:47 +00:00
terminalSerializer.test.ts fix(shell): cursor visibility when using interactive mode (#14095) 2025-12-04 16:58:03 +00:00
terminalSerializer.ts fix(shell): improve shell output presentation and usability (#8837) 2025-09-30 20:44:58 +00:00
testUtils.ts [JUNE 25] Permanent failover to Flash model for OAuth users after persistent 429 errors (#1376) 2025-06-24 22:48:55 +00:00
textUtils.test.ts Fix dollar sign replacement bug in file editing (#7871) 2025-09-13 06:05:43 +00:00
textUtils.ts Fix dollar sign replacement bug in file editing (#7871) 2025-09-13 06:05:43 +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 feat(core): Improve request token calculation accuracy (#13824) 2025-11-26 04:20:46 +00:00
tokenCalculation.ts feat(core): Improve request token calculation accuracy (#13824) 2025-11-26 04:20:46 +00:00
tool-utils.test.ts Re-submission: Make --allowed-tools work in non-interactive mode (#10289) 2025-10-06 19:15:21 +00:00
tool-utils.ts Disallow redundant typecasts. (#15030) 2025-12-13 01:43:43 +00:00
userAccountManager.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
userAccountManager.ts refactor(logging): Centralize console logging with debugLogger (#11590) 2025-10-21 20:35:22 +00:00
version.test.ts Send the model and CLI version with the user agent (#14865) 2025-12-10 00:38:33 +00:00
version.ts Send the model and CLI version with the user agent (#14865) 2025-12-10 00:38:33 +00:00
workspaceContext.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
workspaceContext.ts Use consistent param names (#12517) 2025-11-06 23:03:52 +00:00