Skip to content

v0.3.1

Choose a tag to compare

@MusingZone MusingZone released this 29 Nov 10:45
· 3 commits to main since this release

Antigravity Bridge v0.3.1

Versioning note: Versioned conservatively as 0.3.1 as a backward-compatible incremental update over 0.3.0 (preserving local.antigravity-bridge, all existing settings/commands, and the Run Directory Protocol). It includes new /gemini invocation, runner, setup, and built-in Undo capabilities described below.

Added

  • Contributed /gemini Agent Skill (contributes.chatSkills → skills/gemini/SKILL.md): Sets user-invocable: true and disable-model-invocation: true so VS Code Editor Chat users (Copilot harness and Local harness, VS Code ≥ 1.109) can complete /gem → /gemini cleanly in the / slash menu without colliding with @ file/attachment suggestions.
  • Bundled portable zero-dependency Node.js runner (skills/gemini/scripts/agy-bridge-runner.mjs): Co-located inside skills/gemini/ so VS Code's Agent Host skill bundler includes it automatically. Supports doctor, run, and revert with safe defaults (never passes --dangerously-skip-permissions automatically), rejects Windows .cmd/.bat shims, validates --run-id against path traversal, and reports explicit failures (AGY_CLI_NOT_FOUND / auth_required / blocked) without silently falling back to another model.
  • Built-in pure-Node all-or-nothing SHA-256 Undo (src/core/builtInRevert.ts): Works out of the box with no Python or external agy_run.py required when antigravityBridge.runnerScriptPath is unset, enforcing post-run hash verification, path-traversal checks, and intermediate symlink containment. Explicit custom runnerScriptPath overrides remain supported.
  • Three new localized commands (EN + zh-CN):
    • Antigravity: Run Task with Antigravity CLI… (antigravity.runTask)
    • Antigravity: Check Setup (Doctor) (antigravity.checkSetup)
    • Antigravity: Export /gemini Skill for Agents Window & CLI… (antigravity.exportSkill)
  • Two new settings & cross-platform default runsDir: antigravityBridge.cliPath (scope: "machine"), antigravityBridge.defaultModel (scope: "application"), and platform-native runsDir resolution (AGY_RUN_RUNS_DIR fallback, then Windows %LOCALAPPDATA%\agy-run\runs, macOS ~/Library/Application Support/agy-run/runs, Linux ${XDG_STATE_HOME:-~/.local/state}/agy-run/runs).

Changed

  • Extended verified Windows PID cancellation (verifyRunProcessIdentity) to recognize agy-bridge-runner.mjs and configured custom runner scripts alongside agy_run.py and agy/agy.exe.
  • Updated viewsWelcome, bilingual READMEs, docs/RUN-DIRECTORY-PROTOCOL.md, docs/ARCHITECTURE.md, SECURITY.md, and CONTRIBUTING.md with clear chat-surface guidance and prerequisites.

Usage & Surface Notes

  • VS Code Editor Chat (≥ 1.109): Type /gemini <your task>. (@Gemini completion itself is not provided because VS Code's public API deprecates @ chat participants in the Copilot Agent Host harness.)
  • VS Code Agents Window & terminal GitHub Copilot CLI: Run Antigravity: Export /gemini Skill for Agents Window & CLI… once (to ~/.copilot/skills/gemini/ or .github/skills/gemini/), then invoke /gemini <your task>.
  • Without Copilot Chat (VS Code ≥ 1.100): Run Antigravity: Run Task with Antigravity CLI… from the Command Palette or Antigravity → Runs view.
  • External prerequisite: Executing tasks requires your own local Google Antigravity CLI (agy) installation and sign-in. Run Antigravity: Check Setup (Doctor) to check readiness (set AGY_EXE or add agy to PATH for /gemini shell runs; antigravityBridge.cliPath configures VS Code commands).

Installation & Verification

code --install-extension antigravity-bridge-0.3.1.vsix

Reload VS Code (Developer: Reload Window) after upgrading.

  • Asset: antigravity-bridge-0.3.1.vsix (196,446 bytes, 37 files)
  • SHA-256: A73460DD35B5E42E5EFD42D4E380C4A5852FF39D48E5749B50D185CB51D2F436
  • Commit: f116eef231c16f9f39e4b944c10b42ed41ee0777