Commit Graph

36 Commits

Author SHA1 Message Date
Brandon Keiji
6ba8e0b078 fix: revert pointing npm start to .bin (#144) 2025-04-24 01:21:07 +00:00
Brandon Keiji
8318f20038 feat: add react dev tools (#143) 2025-04-23 18:16:15 -07:00
Seth Troisi
b31bce078c Add generic container run command for npm start 2025-04-23 18:07:29 -07:00
Seth Troisi
5c6f018b8d Support GEMINI_CODE_SANDBOX=0/false as no SANDBOXing 2025-04-23 16:33:19 -07:00
Brandon Keiji
de3ad73c10 fix: use process.env.CLI_VERSION to avoid conflicts with NODE_ENV (#139) 2025-04-23 15:49:18 -07:00
Seth Troisi
7a48412b21 Add docker equivilant for --authfile 2025-04-23 15:46:51 -07:00
Brandon Keiji
9ccdc66eba feat: add CLI version number to footer (#134) 2025-04-23 15:00:40 -07:00
Seth Troisi
ccc28d175b Default TMPDIR to /tmp/ for sandbox (#133) 2025-04-23 14:36:15 -07:00
Olcan
efdff51bec fix .env check (#123) 2025-04-22 14:31:02 -07:00
Olcan
530ab91807 Refactor_sandbox_command (#121) 2025-04-22 13:51:50 -07:00
Olcan
69fe55cb21 quiet sandbox build (#111) 2025-04-21 23:26:53 -07:00
Brandon Keiji
448e308604 fix: point npmrc to dogfood artifact registry (#108) 2025-04-21 23:11:51 -07:00
Brandon Keiji
2ac4a3de58 fix: support node globals in scripts (#109) 2025-04-22 06:10:25 +00:00
Benjamin Bastian
cccaf1d1f2 Update sandbox script to not require term variables (#105)
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-21 22:59:49 -07:00
Olcan
8c1f2bea46 improved (full color) sandbox, mount /tmp to display build warnings, display sandbox name in footer (#96) 2025-04-21 14:43:43 -07:00
Seth Troisi
508e768443 Fix Docker Build permission issue (#95)
During docker build `npm install` running as node was exiting with 243 (EACCES) from trying to install the tgz files because `npm pack` created the files with 400 permissions on my system.
2025-04-21 14:35:03 -07:00
Olcan
8d3f28591a sandbox.sh utility to easily log into or execute commands in a sandbox, set hostname and SANDBOX env var to container name (#92) 2025-04-21 13:52:51 -07:00
Olcan
035a42f94c enable debugging through sandbox (#88) 2025-04-21 12:39:58 -07:00
Olcan
882e83f19a fix flags via sandbox (again) (#87) 2025-04-21 12:13:16 -07:00
Olcan
824d3b671c don't assume .env file (#83) 2025-04-21 11:21:48 -07:00
Jaana Dogan
cb25dcbf1b Ignore grep error if .env doesn't exist (#82)
.env file is optional. If it doesn't exist, the current script outputs "grep: .env: No such file or directory".
2025-04-21 11:15:55 -07:00
Tyler
f0346781a1 More license headers, add a CONTRIBUTING.md file (also fix README.md formatting) (#81) 2025-04-21 10:04:03 -07:00
Olcan
2b1ed088f2 make sandbox attachable, document in README (#80) 2025-04-21 09:17:17 -07:00
Olcan
3e39148cc8 seamless sandboxing (just set GEMINI_CODE_SANDBOX=true in .env) (#76) 2025-04-21 07:50:18 -07:00
Olcan
10de10040b fix passing of flags through start scripts (#73) 2025-04-20 19:19:42 -07:00
Olcan
d384673d8b drop /dist suffix no longer needed (#71) 2025-04-20 14:55:36 -07:00
Olcan
cc5193e034 start and debug scripts (will enable seamless container use later), strict error handling in bash scripts (#63)
#61
2025-04-20 14:50:12 -07:00
Olcan
596620d68c use /sandbox/<proj_name> instead of /project as workdir in container (#64) 2025-04-20 14:49:02 -07:00
Brandon Keiji
45570f22fb fix: remove 'dist' suffix from start_container.sh command (#67) 2025-04-20 13:07:54 -07:00
Olcan
cd8036f7bb Minimal container setup. Install docker (or podman), build container with scripts/build_container.sh, then start with scripts/start_container.sh. Exit with ^C for now. (#61) 2025-04-20 08:22:17 -07:00
Tyler
c26606d4a3 Add apache2 SPDX headers to all source files (#48) 2025-04-18 17:44:24 -07:00
Taylor Mullen
045bd60945 Fix remaining tslint errors (YAY).
- Also updated ci.yml to ensure that linting failures will break the build.

Fully fixes https://b.corp.google.com/issues/411384603
2025-04-18 19:14:36 -04:00
Taylor Mullen
a054fdde31 Run npm run format
- This has the entirety of the changes.

Part of https://b.corp.google.com/issues/411720532
2025-04-18 18:10:57 -04:00
Evan Senter
eede263ea1 Warn if npm run start is out of date. (#20)
* Adding some wiring to allow the Ink app to warn if there are local development changes that haven't been captured in the recent build of the Gemini CLI.

* Adding a new useAppEffects.ts file that wores some useEffect handlers in.

* Updating package-lock.json to resolve `npm ci` issues.

* Updating package-lock.json and package.json to resolve `npm ci` issues.
2025-04-18 21:55:02 +01:00
Evan Senter
cfe49014f3 Revert "Adding some wiring to allow the Ink app to warn if there are local development changes that haven't been captured in the recent build of the Gemini CLI."
This reverts commit 1bfc62dcc2.
2025-04-18 18:36:33 +01:00
Evan Senter
82e3c49c83 Adding some wiring to allow the Ink app to warn if there are local development changes that haven't been captured in the recent build of the Gemini CLI. 2025-04-18 18:16:52 +01:00