diff options
| author | Seth Troisi <[email protected]> | 2025-04-23 22:35:40 +0000 |
|---|---|---|
| committer | Seth Troisi <[email protected]> | 2025-04-23 16:33:19 -0700 |
| commit | d771dcbdb975664647ebc555f6adfcbba5a2b7da (patch) | |
| tree | a530bb6077ad779a99779a5ba083c3538ee7e6ad | |
| parent | 095163bbed1de2ee14933a2d70929259bb5d832a (diff) | |
Support GEMINI_CODE_SANDBOX=0/false as no SANDBOXing
| -rw-r--r-- | package-lock.json | 4 | ||||
| -rwxr-xr-x | scripts/sandbox_command.sh | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/package-lock.json b/package-lock.json index eb11b950..350087e5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6768,7 +6768,7 @@ }, "packages/cli": { "name": "@gemini-code/cli", - "version": "*", + "version": "0.1.0", "dependencies": { "@gemini-code/server": "*", "@google/genai": "^0.8.0", @@ -6804,7 +6804,7 @@ }, "packages/server": { "name": "@gemini-code/server", - "version": "*", + "version": "0.1.0", "dependencies": { "@google/genai": "^0.8.0", "diff": "^7.0.0", diff --git a/scripts/sandbox_command.sh b/scripts/sandbox_command.sh index f22d1295..81775db6 100755 --- a/scripts/sandbox_command.sh +++ b/scripts/sandbox_command.sh @@ -40,6 +40,10 @@ if [ -z "${GEMINI_CODE_SANDBOX:-}" ]; then exit 1; fi # lowercase GEMINI_CODE_SANDBOX GEMINI_CODE_SANDBOX=$(echo "${GEMINI_CODE_SANDBOX:-}" | tr '[:upper:]' '[:lower:]') +if [[ "${GEMINI_CODE_SANDBOX:-}" =~ ^(0|false)$ ]]; then + exit 1 +fi + # if GEMINI_CODE_SANDBOX is set to 1 or true, then try to use docker or podman if [[ "${GEMINI_CODE_SANDBOX:-}" =~ ^(1|true)$ ]]; then if command -v docker &> /dev/null; then |
