qwen-code/packages/core/src/tools
LaZzyMan 109b3d41ab fix: reduce redundant file I/O and fix BOM preservation for non-UTF-8 encodings
- Extract isUtf8CompatibleEncoding to iconvHelper.ts, removing duplicate
  definitions in fileUtils.ts and fileSystemService.ts
- Add readFileWithEncodingInfo() returning content + encoding + bom in a
  single I/O pass; update edit.ts and write-file.ts to use it instead of
  separate readTextFile/detectFileEncoding/detectFileBOM calls
- Add readTextFileWithInfo() to FileSystemService interface; implement in
  StandardFileSystemService and AcpFileSystemService (delegates to fallback)
- Fix FileReadResult.bom to be true for all Unicode BOM variants (UTF-8/
  16/32), not just UTF-8; add getBOMBytesForEncoding() and update
  writeTextFile to re-prepend the correct BOM bytes on write-back so
  UTF-16/32 BOM files are no longer silently corrupted
- Add tests for readFileWithEncodingInfo, readTextFileWithInfo, and
  UTF-16LE BOM write-back preservation
2026-03-04 16:03:17 +08:00
..
__snapshots__ feat(shell): add optional timeout for foreground commands 2026-01-12 16:23:11 +08:00
web-search Merge branch 'main' into feat/debug-logging-refactor 2026-02-04 17:30:58 +08:00
diffOptions.test.ts Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
diffOptions.ts Sync upstream Gemini-CLI v0.8.2 (#838) 2025-10-23 09:27:04 +08:00
edit.test.ts fix: Address review comments for BOM encoding support 2026-02-01 11:23:02 +08:00
edit.ts fix: reduce redundant file I/O and fix BOM preservation for non-UTF-8 encodings 2026-03-04 16:03:17 +08:00
exitPlanMode.test.ts Session-Level Conversation History Management (#1113) 2025-12-03 18:04:48 +08:00
exitPlanMode.ts feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3) 2026-01-25 20:57:25 +08:00
glob.test.ts test: update glob tool test to cover case-insensitive path comparison on macOS 2025-12-08 18:15:40 +08:00
glob.ts feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3) 2026-01-25 20:57:25 +08:00
grep.test.ts Replace spawn with execFile for memory-safe command execution (#1068) 2025-11-20 15:04:00 +08:00
grep.ts feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3) 2026-01-25 20:57:25 +08:00
ls.test.ts feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3) 2026-01-25 20:57:25 +08:00
ls.ts feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3) 2026-01-25 20:57:25 +08:00
lsp.test.ts feat(core): fix ci:test 2026-01-25 23:49:23 +08:00
lsp.ts refactor(lsp): restructure the LSP service import and test configuration 2026-01-29 00:54:59 +08:00
mcp-client-manager.test.ts rebase and resolve conflict 2026-02-01 23:49:56 -08:00
mcp-client-manager.ts Merge branch 'main' into feat/debug-logging-refactor 2026-02-04 17:30:58 +08:00
mcp-client.test.ts refactor(debug): replace ConsolePatcher with debugLogger and update error reporting 2026-02-02 17:37:54 +08:00
mcp-client.ts feat: support MCP readOnlyHint annotation in plan mode (#1826) 2026-02-14 15:07:03 +08:00
mcp-tool.test.ts Merge remote-tracking branch 'origin/main' into feat/mcp-progress-updates 2026-02-09 10:18:35 +08:00
mcp-tool.ts feat: support MCP readOnlyHint annotation in plan mode (#1826) 2026-02-14 15:07:03 +08:00
memoryTool.test.ts Session-Level Conversation History Management (#1113) 2025-12-03 18:04:48 +08:00
memoryTool.ts fix: prioritize QWEN.md for backward compatibility 2026-03-02 10:31:17 +08:00
modifiable-tool.test.ts feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3) 2026-01-25 20:57:25 +08:00
modifiable-tool.ts feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3) 2026-01-25 20:57:25 +08:00
read-file.test.ts fix(core): Reduce file size limit to 10MB and fix PDF encoding size check 2026-02-28 19:51:43 +08:00
read-file.ts fix ci test 2026-01-27 20:20:36 +08:00
ripGrep.test.ts Replace spawn with execFile for memory-safe command execution (#1068) 2025-11-20 15:04:00 +08:00
ripGrep.ts feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3) 2026-01-25 20:57:25 +08:00
sdk-control-client-transport.ts feat(core): migrate console calls to debugLogger (M3 Phase 4-5) 2026-01-25 21:37:54 +08:00
shell.test.ts Merge branch 'main' into fix/1454-shell-timeout 2026-01-13 17:41:09 +08:00
shell.ts Merge remote-tracking branch 'origin/main' into feat/debug-logging-refactor 2026-02-05 20:23:48 +08:00
skill.test.ts feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3) 2026-01-25 20:57:25 +08:00
skill.ts refactor(skill): add null check for SkillManager and update tests 2026-02-06 13:37:35 +08:00
task.test.ts feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3) 2026-01-25 20:57:25 +08:00
task.ts feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3) 2026-01-25 20:57:25 +08:00
todoWrite.test.ts feat: update tool output format, use plain string instead of json string (#881) 2025-10-27 17:26:47 +08:00
todoWrite.ts feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3) 2026-01-25 20:57:25 +08:00
tool-error.ts fix: detect and protect against truncated tool call output 2026-02-28 16:38:39 +08:00
tool-names.ts refactor: remove read_many_files tool, add readManyFiles utility for user @-commands 2026-01-31 12:17:46 +08:00
tool-registry.test.ts test: update tool-registry test for new MCP tool naming convention 2026-02-08 12:17:00 +08:00
tool-registry.ts Merge branch 'main' into feat/debug-logging-refactor 2026-02-04 17:30:58 +08:00
tools.test.ts # 🚀 Sync Gemini CLI v0.2.1 - Major Feature Update (#483) 2025-09-01 14:48:55 +08:00
tools.ts feat: add MCP tool progress update support in TUI and SDK mode 2026-02-08 15:48:13 +08:00
web-fetch.test.ts feat(core,cli): migrate console.debug to debugLogger (M3 Phase 1-3) 2026-01-25 20:57:25 +08:00
web-fetch.ts Merge branch 'main' into feat/debug-logging-refactor 2026-02-04 17:30:58 +08:00
write-file.test.ts fix: preserve original encoding when reading/writing non-UTF-8 files 2026-03-04 14:52:46 +08:00
write-file.ts fix: reduce redundant file I/O and fix BOM preservation for non-UTF-8 encodings 2026-03-04 16:03:17 +08:00