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