summaryrefslogtreecommitdiff
path: root/packages
AgeCommit message (Collapse)Author
2025-04-27don't confirm invalid params in terminal tool, or in general (added comments ↵Olcan
to base class) (#187)
2025-04-26hop into sandbox (#186)Olcan
2025-04-26Follow up fixes from flickering PR.Taylor Mullen
- The push for these changes didn't make it through.... Just doing a quick fix here which should have been in: https://github.com/google-gemini/gemini-code/pull/181
2025-04-26feat: Fix flickering in iTerm + scrolling + performance issues.Taylor Mullen
- Refactors history display using Ink's <Static> component to prevent flickering and improve performance by rendering completed items statically. - Introduces ConsolePatcher component to capture and display console.log, console.warn, and console.error output within the Ink UI, addressing native handling issues. - Introduce a new content splitting mechanism to work better for static items. Basically when content gets too long we will now split content into multiple blocks for Gemini messages to ensure that we can statically cache larger pieces of history. Fixes: - https://b.corp.google.com/issues/411450097 - https://b.corp.google.com/issues/412716309
2025-04-26Prevent console.warn's for tool calls.Taylor Mullen
- Added helper for extracting text content from responses without warning. See fixed issue for more detail: https://b.corp.google.com/issues/414005146
2025-04-25feat: prototype publish sandbox script with npm package (#182)Brandon Keiji
2025-04-25Add /exit and /quit commandsSeth Troisi
2025-04-25Pulled manual commands to seperate functionSeth Troisi
2025-04-25drop todo about qualified writes, turns out others don't do it either so nbd ↵Olcan
(#177)
2025-04-25more consistent confirmations, TODO to improve write confirmations, drop ↵Olcan
"description" from execution confirmation, add confirmation to new (still dummy) shell tool (#176)
2025-04-25fix: remove extra initError (#173)Brandon Keiji
2025-04-25more compact cli version in footer (#168)Olcan
2025-04-24enable json imports (#165)Olcan
* enable json imports * Merge remote-tracking branch 'origin/main' into enable_json_imports
2025-04-24shell bones (#160)Olcan
* shell bones * Merge remote-tracking branch 'origin/main' into shell_bones * add line break * another line break * drop the log to avoid breaking terminals * rename tool to be consistent with terminal * fix build
2025-04-24Adding a full_context command line argument. (#158)Allen Hutchison
* Adding a full_context command line argument. * Update packages/cli/src/config/config.ts Co-authored-by: N. Taylor Mullen <[email protected]> * lint fix. --------- Co-authored-by: N. Taylor Mullen <[email protected]>
2025-04-24general rules should apply to whole project (#159)Olcan
* general rules should apply to whole project * Merge remote-tracking branch 'origin/main' into fix_eslint * lint fixes under server package
2025-04-24Switch Ansi theme to use regular colors to improve readability. (#154)Jacob Richman
2025-04-24remove dead code (+ dont reset shellReady unless restarting) (#156)Olcan
2025-04-24feat: add flag to customize package version during pre-release staging (#155)Brandon Keiji
2025-04-24rename read_many_files (#153)Olcan
2025-04-24Add an ansi theme. (#152)Jacob Richman
Add the gradient used by the ascii art logo to theme.
2025-04-24Add a theme preview and update the theme when highlight changes. (#151)Jacob Richman
2025-04-24better sandbox check (#150)Olcan
2025-04-24remove target_dir flag (#149)Olcan
2025-04-24in sandboxed run scripts, allow .env to be an in any ancestor directory, ↵Olcan
same as in findEnvFile; also prep for sanboxing with global command (#147)
2025-04-23unban commands (#146)Olcan
2025-04-23Make ui/colors refelect the current theme.jacob314
2025-04-23Add concatenation tool (#130)Allen Hutchison
* Adding a tool inspired by files-to-prompt that will recursivly read through all the files in a directory (guarded by targetDir) and concatenate those files for the model. Ignores common build artifacts and non-text files. * Migraded glob logic to fast-glob. Buffed the tool description to give more guidance to the model. Incorporated reveiw feedback. * lint and error checking.
2025-04-23Refactor: Remove GEMINI.md memory and refactor system promptTaylor Mullen
- Updates CONTRIBUTING.md and Tips.tsx to remove references to GEMINI.md and the /init command, and renumbers tips. - Fixes a typo in Tips.tsx ("information.s" -> "information."). - Refactors the core system prompt in prompts.ts from a constant string to a function . - Updates client.ts to call the function. - Updates tool name references within the system prompt to use template literals for dynamic naming. Fixes bug: https://buganizer.corp.google.com/issues/413061073 --- Generated by yours truly __Gemini Code__
2025-04-23fix: use process.env.CLI_VERSION to avoid conflicts with NODE_ENV (#139)Brandon Keiji
2025-04-23feat: set dogfood artifact registry as the default publishing endpoint (#135)Brandon Keiji
2025-04-23feat: add CLI version number to footer (#134)Brandon Keiji
2025-04-23Updating the system prompt to allow for more complex app creationChris Perry
2025-04-23remove dead code (#131)Olcan
2025-04-22Add theming support.Taylor Mullen
- Added a number of common themes to our support matrix: - AtomOneDark - Dracula - VS - GitHub - GoogleCode - XCode - ... Admittedly these all were randomly picked, we could probably curate these better... - Added a new `ThemeDialog` UI that can be accessed via `/theme`. It shows your currentlyt available themes and allows you to change them freely. It does **not**: - Save the theme between sessions - Allow you to hit escape - Show a preview prior to selection. - These themes are from reacts highlight js library. Fixes https://b.corp.google.com/issues/412797985
2025-04-22Colorize code blocks.Taylor Mullen
- This changeset uses lowlight.js to parse the code in codeblocks to derive an AST, it then translates that into CSS themes that are widely known via highlight.js (things that GitHub use), finally I translate those css.color attributes into Ink colors and effectivel do <Text color={the color}>the text</Text>. - To do this I needed to build color mappings from css -> Ink - I introduced a new `Theme` type that will be used to represent many different color themes. It also enabled the color mappings to be seamless. - Added a theme manager that only has one theme for now (VS2015). The theme works very well with our colorization. - Some other bits was removal of borders around our codeblocks since they now have richer rendering. - Most complex bits of code in this PR is in the `CodeColorizer.tsx` Fixes https://b.corp.google.com/issues/412433479
2025-04-22Refactor tool confirmation radio buttons to own component.Taylor Mullen
- I plan to utilize these radio buttons for theme selection in the future. Refactoring them into their own component. Part of https://b.corp.google.com/issues/412797985
2025-04-22Question flag (#125)Allen Hutchison
2025-04-23feat: add alias to the cli bin directive (#126)Brandon Keiji
2025-04-22Fix the case where passthrough tools weren't using the correct CWD from -dAllen Hutchison
2025-04-22fix hanging toolsJaana Dogan
https://github.com/google-gemini/gemini-code/pull/117/
2025-04-22Initiate the GeminiClient with a configJaana Dogan
Also address the open readability improvement comments from #104.
2025-04-22Fix Tool -> Text -> Confirmation bu that results in disordered historyTaylor Mullen
- We weren't reseting the tool group inbetween content which meant we'd start a new group on the first tool call, and if regular textual content followed it'd effectively close that group; however, we weren't updating our state to really close that group. Meaning, any subsequent tool calls or confirmations would get grouped with the original grouping. - When we see textual content from Gemini we now reset the tool call group. Fixes https://b.corp.google.com/issues/412605330
2025-04-22Update confirmation dialog UITaylor Mullen
- This chaneset aligns our confirmation dialog with: https://screenshot.googleplex.com/9yZCX636LzpMrgc - Primary changes include having custom indicators for confirmation options that align with our coloring / scheme Fixes https://b.corp.google.com/issues/412607128
2025-04-22Update UI of tool messagesTaylor Mullen
- Bring tool messages in line with original envisioned UI of: https://screenshot.googleplex.com/9yZCX636LzpMrgc - In particular this represents more descriptive names. FWIW we already had this tech we just weren't passing around information correctly (`displayName` vs. `name`) - Add gray to our list of color pallete's and removed Background (unused) - Re-enabled representing canceled messages - Migrated back towards a cleaner tool message design of status symbols & border colors vs. overly verbose text. - Removed border from confirmation diffs. Fixes https://b.corp.google.com/issues/412598909
2025-04-21env var to set default model, display model on lower right (#110)Olcan
2025-04-21fix: point npmrc to dogfood artifact registry (#108)Brandon Keiji
2025-04-21Piped input (#104)Allen Hutchison
* New method for handling stdin. Bypass Ink, and output to stdout. Makes the CLI work like a typical Unix application when called with piped input. * Fixing a few post-merge errors. * Format code. * Clean up lint and format errors.
2025-04-21Simplify GeminiClient (#101)Jaana Dogan
Doing some more clean-up: * Remove confusing continue/break * Handle empty result * Rename the file just client.js
2025-04-21Fix the broken build (#98)Jaana Dogan