summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2025-06-10Remove warnings for old env var names. (#920)Tommaso Sciortino
2025-06-10Fix debug to work when not running under a sandboxSeth Troisi
2025-06-10restricted networking for all sandboxing methods, new seatbelt profiles, ↵Olcan
updated docs, fixes to sandbox build, debugging through sandbox (#891)
2025-06-10strip json comments in newly created sandbox_command.js (consistent w/ bash ↵Olcan
version) (#886)
2025-06-09Windows: Refactor Shell Scripts to Node.js for Cross-Platform Compatibility ↵matt korwel
(#784)
2025-06-08replace reference to "README" with "docs" to avoid confusion for folks who ↵Olcan
do not have access to README (#866)
2025-06-08fix(deps): externalize tree-sitter (#840)matt korwel
Submitting without approval to fix broken deployment on main. But also, we should lock this down.
2025-06-07Makefile for convenience (#833)Keith Ballinger
2025-06-07refactor: rename gemini-code to gemini-cli (#822)cperry-goog
2025-06-07fix(build): correct sandbox warning link (#819)cperry-goog
2025-06-07Added /mcp command support and cleaned up broken tests (#817)Bryan Morgan
2025-06-05use execSync (vs spawnSync) so launch fails if build_sandbox fails; tweaks ↵Olcan
in build_sandbox to fix some shellcheck warnings, and to simplify the logic slightly (#767)
2025-06-05feat: Add multi-stage docker build support for custom sandbox.Dockerfile (#746)Tolik Malibroda
2025-06-02prefer to load gemini-specific .env file from .gemini folder when it exists ↵Olcan
there (#697)
2025-05-30Fix: Update sandbox build to use new core package nameTaylor Mullen
- The `packages/core` tarball name changed from `gemini-code-server-*.tgz` to `gemini-code-core-*.tgz` after the `server` to `core` rename. - This updates `scripts/build_sandbox.sh` and the root `Dockerfile` to use the new `gemini-code-core-*.tgz` naming, resolving the CI failure during the Docker build step of the publish process.
2025-05-30Rename server->core (#638)Tommaso Sciortino
2025-05-30feat(sandbox): use package config to dictate sandbox image name (#624)Brandon Keiji
2025-05-30fix(sandbox): set default env var to 'gemini-cli-sandbox' (#620)Brandon Keiji
2025-05-30use npx json instead of jq (#617)Olcan
2025-05-29fix(sandbox): add SHORT_SHA to image tag (#604)Brandon Keiji
2025-05-29allow comments in settings when parsed in scripts via jq (#603)Olcan
2025-05-29feat: publish root Dockerfile to our image registry (#599)Brandon Keiji
2025-05-28Display git commit info in the /about section. (#567)DeWitt Clinton
This change detects the most recent git commit short hash and writes it to the `GIT_COMMIT_INFO` constant in `packages/cli/src/generated/git-commit.sh`, optionally appending the string "(local modifications)" if additional local changes after that commit are detected. If set, this string is displayed in the `/about` dialog as well as passed into the `/bug` template. Example: ``` > /about ╭───────────────────────────────────────────────────────────────────────────╮ │ │ │ About Gemini CLI │ │ │ │ CLI Version development │ │ Git Commit 43370ab (local modifications) │ │ Model gemini-2.5-pro-preview-05-06 │ │ Sandbox sandbox-exec (minimal) │ │ OS darwin v23.11.0 │ │ │ ╰───────────────────────────────────────────────────────────────────────────╯ ``` Additionally, this change updates `.gitignore` to ignore the generated files, `scripts/clean.sh` to remove them, and adds a `npm run generate` stage for this and any other generators we need to write.
2025-05-27replace error with warning if sandbox build is triggered without enabling, ↵Olcan
improve README to reduce confusion (#570)
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