Skip to content

feat(examples): add automated setup scripts and fix statusline token display bugs#206

Open
weby-homelab wants to merge 38 commits into
google-antigravity:mainfrom
weby-homelab:feature/automated-setup-scripts
Open

feat(examples): add automated setup scripts and fix statusline token display bugs#206
weby-homelab wants to merge 38 commits into
google-antigravity:mainfrom
weby-homelab:feature/automated-setup-scripts

Conversation

@weby-homelab
Copy link
Copy Markdown

This PR introduces automated setup scripts for both custom statusline and custom window title examples, and provides new reference implementations for Fish, Node.js, and PowerShell.

Bug Fixes

It also fixes a critical type-mismatch bug present in all statusline implementations (statusline.sh, statusline.js, statusline.ps1, statusline.fish).

The Problem

The statusline scripts were checking if .context_window.current_usage is greater than 0 to determine whether to render token count details. However, in the actual JSON payload emitted by the agy CLI, current_usage is a JSON object (containing input_tokens, output_tokens, cache_read_input_tokens, etc.) rather than a number. This comparison failed silently across all platforms, leaving the token display section blank.

The Solution

We updated the scripts to sum the total input and output tokens (total_input_tokens and total_output_tokens) to calculate the context window usage. This resolves the object comparison issue and successfully restores the detailed token display in the TUI (e.g. (184.0K/1.0M · 141.3K in/41.9K out)).

- Add README translations in Chinese, Spanish, French, Portuguese, Ukrainian, and German
- Add a unified language switcher to all README variants to easily navigate between locales
- Preserved identical code blocks, links, and layout structure across all variants
…ve README

- Add official install scripts (install.sh, install.ps1, install.cmd)
- Add Makefile with install/update/uninstall/check/run targets
- Add .antigravity.md project config template
- Add .gitignore for binaries and temp files
- Rewrite README with full usage guide, configuration, migration from Gemini CLI

Closes #0
feat: add install scripts, Makefile, config template, and comprehensive README
- Add manifests and binaries under the packages/ directory for all supported platforms
- Modify install.sh, install.ps1, and install.cmd to prioritize local package files if present, facilitating instant and completely offline setups
- Allow tracking of packages in .gitignore
- Centered badges, demo GIF, and title for a clean premium header section
- Structured configuration guides with clear examples
- Added modern callout boxes (Shields/GitHub alerts)
- Kept ALT tags on all images for accessibility
feat: integrate pre-downloaded platform binaries for offline setup
docs: modernize README.md layout and styling
feat(install): migrate local binaries to release assets and update installers
fix(install): fix unbound DOWNLOADER variable in install.sh
docs: resolve installer URLs and clarify offline setup in README
fix(install): point DOWNLOAD_BASE_URL to raw GitHub of fork to download fork release assets
docs: polish terminology and Ukrainian grammar in README.md
docs: add comprehensive legal disclaimers to README
feat: upgrade to v1.0.3 and add multi-language README support
docs: expand tagline and translate complete README into all supported languages
docs: correct settings.json path and schema fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant