summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2025-05-18Refactor: Convert copy_files.cjs to ES module syntaxTaylor Mullen
- Converted scripts/copy_files.cjs to use ES module syntax (renaming to copy_files.js). - This change aligns with the project's preference for ES modules over CommonJS for better modernity and future-proofing. - Updated eslint.config.js to remove the .cjs override. - Adjusted scripts/build_package.sh to call the new .js file.
2025-05-17rename env vars GEMINI_CODE_{MODEL,SANDBOX,SANDBOX_IMAGE} (#411)Olcan
2025-05-16Fix: Use Node.js script for cross-platform file copying in buildTaylor Mullen
- Replaces the rsync command in the build_package.sh script with a Node.js script (copy_files.cjs) to handle copying necessary files (e.g., .md, .json, .sb) during the build process. - Addresses an issue where the build would fail on systems that do not have rsync installed (e.g., some Windows environments or minimal Linux distributions) by using a Node.js script, providing a cross-platform solution as Node.js is already a project dependency. - Updates the ESLint configuration to correctly lint .cjs files as CommonJS modules. Fixes https://github.com/google-gemini/gemini-cli/issues/387
2025-05-14improve sandboxing status message, update README, remove dead code from a ↵Olcan
previous change to build_sandbox.sh (#346)
2025-05-13fall back to ~/.env if .env is not found in current directory or any ↵Olcan
ancestors (#338)
2025-05-09fix debugging with seatbelt, including in strict profile (#300)Olcan
2025-05-08Add bundling support.Taylor Mullen
- This can now be invoked with `npm run bundle`, it creates a `bundle/` folder that has: - gemini.js - sandbox-macos-minimal.sb - sandbox-macos-strict.sb - shell.json - shell.md - This doesn't include any sort of automation for auto bundling pieces. It's just the root capability which we can weave into other locations. Fixes https://b.corp.google.com/issues/411432723
2025-05-07use seatbelt on macos, with two profiles: minimal (default) which only ↵Olcan
restricts writes, and strict, which is deny-by-default and only allows specific operations (#283)
2025-05-07Create simple script for setting up a dev environment. (#277)cornmander
2025-05-07make sandbox build quiet by default but allow VERBOSE=1 option. enable ↵Olcan
caching by default but allow disabling via BUILD_SANDBOX_FLAGS="--no-cache" (#278)
2025-05-07fix: build image with --no-cache (#275)Brandon Keiji
2025-05-07fix(sandbox): consolidate dev and prod sandbox (#273)Brandon Keiji
2025-05-03fix sandbox prod build w/ custom Dockerfile (#255)Olcan
2025-05-02custom sandboxing via sandbox.Dockerfile and sandbox.bashrc in project ↵Olcan
settings (#249)
2025-05-02pass PATH and PYTHONPATH into sandbox, let sandbox scripts recognize user ↵Olcan
settings for sandbox (#247)
2025-05-01remove start_sandbox.sh script (#238)Olcan
2025-04-29drop the "RE" from REBUILD_SANDBOX (#218)Olcan
2025-04-29SANDBOX_SET_UID_GID option for systems where this is necessary (should be ↵Olcan
only rootful docker on linux w/o userns-remap configured) (#210) * SANDBOX_SET_UID_GID option for systems where this is necessary (should be only rootful docker on linux w/o userns-remap configured) * Merge remote-tracking branch 'origin/main' into sandbox_uid_gid
2025-04-29fix: point start.sh to relative path (#209)Brandon Keiji
2025-04-28enable servers in sandbox to listen on localhost (127.0.0.1) instead of ↵Olcan
0.0.0.0, ensuring servers can be container/host-agnostic (#207) * enable servers in sandbox to listen on localhost (127.0.0.1) instead of 0.0.0.0, ensuring servers can be container/host-agnostic * Merge remote-tracking branch 'origin/main' into sandbox_localhost_works
2025-04-28SANDBOX_PORTS env var (#204)Olcan
2025-04-28switch to shell tool, deprecating terminal (#203)Olcan
* switch to shell tool, deprecating terminal * Merge remote-tracking branch 'origin/main' into deprecate_terminal
2025-04-28env flags SANDBOX_{MOUNTS,ENV}, improved debugging through sandbox that ↵Olcan
should now work in all scenarios (#201) * env flags SANDBOX_{MOUNTS,ENV}, improved debugging through sandbox that should now work in all scenarios * Merge remote-tracking branch 'origin/main' into sandbox_flags_improved_debugging
2025-04-28refactor: remove node_modules reference in start command (#198)Brandon Keiji
2025-04-28rename dev image with -dev suffix (#195)Olcan
2025-04-26hop into sandbox (#186)Olcan
2025-04-25do not clean before package build (#175)Olcan
2025-04-25detect missing sandbox image and provide useful error message (#174)Olcan
2025-04-25instant (dev) sandbox (#171)Olcan
* instant (dev) sandbox * leave Dockerfile as is to pass deploy test * fix comma * fix prod build * do not use "images exists" which docker does not support * separate dev-mode flag * Merge remote-tracking branch 'origin/main' into instant_sandbox
2025-04-25pass model env var to sandbox (#167)Olcan
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-24infra: automate continuous deployment (#157)Brandon Keiji
2025-04-24feat: add flag to customize package version during pre-release staging (#155)Brandon Keiji
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-23Pass GEMINI_API_KEY env variable to sandboxSeth Troisi
2025-04-24fix: revert pointing npm start to .bin (#144)Brandon Keiji
2025-04-23feat: add react dev tools (#143)Brandon Keiji
2025-04-23Add generic container run command for npm startSeth Troisi
2025-04-23Support GEMINI_CODE_SANDBOX=0/false as no SANDBOXingSeth Troisi
2025-04-23fix: use process.env.CLI_VERSION to avoid conflicts with NODE_ENV (#139)Brandon Keiji
2025-04-23Add docker equivilant for --authfileSeth Troisi
2025-04-23feat: add CLI version number to footer (#134)Brandon Keiji
2025-04-23Default TMPDIR to /tmp/ for sandbox (#133)Seth Troisi
2025-04-22fix .env check (#123)Olcan
2025-04-22Refactor_sandbox_command (#121)Olcan
2025-04-21quiet sandbox build (#111)Olcan
2025-04-21fix: point npmrc to dogfood artifact registry (#108)Brandon Keiji
2025-04-22fix: support node globals in scripts (#109)Brandon Keiji
2025-04-21Update sandbox script to not require term variables (#105)Benjamin Bastian
If `nounset` is active, it'll require that TERM and COLORTERM is set in the environment. It's not necessary that these variables are set and it should be passed to the sandbox. This change just causes the TERM and COLORTERM to be set to an empty string if they are unset.
2025-04-21improved (full color) sandbox, mount /tmp to display build warnings, display ↵Olcan
sandbox name in footer (#96)