gemini-cli/scripts
DeWitt Clinton 27a773d5b2
Display git commit info in the /about section. (#567)
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-28 00:04:26 -07:00
..
bind_package_dependencies.js fix: point npmrc to dogfood artifact registry (#108) 2025-04-21 23:11:51 -07:00
bind_package_version.js infra: automate continuous deployment (#157) 2025-04-24 14:36:58 -07:00
build.sh fix(sandbox): consolidate dev and prod sandbox (#273) 2025-05-07 07:23:13 -07:00
build_package.sh Refactor: Convert copy_files.cjs to ES module syntax 2025-05-18 23:49:48 -07:00
build_sandbox.sh replace error with warning if sandbox build is triggered without enabling, improve README to reduce confusion (#570) 2025-05-27 10:55:07 -07:00
check-build-status.js fix: support node globals in scripts (#109) 2025-04-22 06:10:25 +00:00
clean.sh Display git commit info in the /about section. (#567) 2025-05-28 00:04:26 -07:00
copy_bundle_assets.sh Add bundling support. 2025-05-08 23:36:42 -07:00
copy_files.js Refactor: Convert copy_files.cjs to ES module syntax 2025-05-18 23:49:48 -07:00
generate-git-commit-info.sh Display git commit info in the /about section. (#567) 2025-05-28 00:04:26 -07:00
sandbox.sh Refactor_sandbox_command (#121) 2025-04-22 13:51:50 -07:00
sandbox_command.sh rename env vars GEMINI_CODE_{MODEL,SANDBOX,SANDBOX_IMAGE} (#411) 2025-05-17 17:28:44 -07:00
setup-dev.sh Create simple script for setting up a dev environment. (#277) 2025-05-07 16:21:16 -04:00
start.sh fix debugging with seatbelt, including in strict profile (#300) 2025-05-09 08:44:40 -07:00