Skip to content

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 29 Nov 07:59
· 43 commits to main since this release
ad06f32

Added

  • Zero-dep spill-on-overflow at tool boundaries (src/utils/spill.ts, src/tools/run-checks.ts, src/tools/apply-edits.ts, src/tools/batch-search.ts, #113, thanks @1-pluto1, Closes #80)
    • When run_checks, apply_edits inline verify, or batch_search exceeds the inline <= 8,800 B UTF-8 budget, full untruncated output is now automatically saved to a private 0o700/0o600 spill file under <cache>/spills/ (capped at 2 MiB/file with 20-file FIFO rotation, strict symlink/owner guards, and a trailing Full output saved: footer preserved even when paired with passing diff: true; disable via AGY_FAST_SPILL=0/off).
  • Compact +-2-line diff: true output for apply_edits (src/tools/apply-edits.ts, src/mcp-server-core.ts, src/cli-runner.ts, #78, thanks @acrot0)
    • Added optional diff: true (and --cli edit --diff) emitting compact unified +-2-line diff hunks within leftover inline budget without crowding out applied summaries, verify diagnostics, or trailing spill footers.
  • Benchmark Issue #59 hygiene, multimodal split, logical-op packing, and session-kind stratification (src/benchmark-core.ts, #93, thanks @1-pluto1)
    • Surfaced run_checks hygiene (full-mode & single-cmd counts), multimodal high-context breakdown (tool vs. user media), logical-op packing ratio, and main / subagent / swarm session stratification.
  • Read-only local storage health check in doctor (scripts/install.mjs)
    • Reported tracked local Antigravity conversations/ DB and brain/ transcript storage sizes (across ~/.gemini/antigravity*, GEMINI_HOME, T3 Code ACP profiles, and ANTIGRAVITY_APP_DATA_DIR, bounded with concurrency + time budget and canonical deduplication) plus >60-day stale session counts in explicit doctor runs (advisory tip at >= 2 GiB or >= 50 stale sessions; strictly read-only, never deletes user history, skipped on install/update hot paths).
  • --file / --from-file <path> JSON input & actionable CLI flags (src/cli-runner.ts, src/benchmark-core.ts)
    • Added --file / --from-file <path> JSON payload input (with bounded fs.open reads, UTF-8 BOM tolerance, UTF-16 BOM guidance, regular-file validation, duplicate/mixed-flag rejection, and normalized ~/ / relative --cwd resolution) across --cli subcommands, silently aliased --query/-q → --pattern and --paths → --path in --cli search, fixed --context <0..10> usage text, and appended a 1-line Valid flags: list to Unknown option errors.
  • Trilingual documentation sync, eager toolSummary / portable MCP docs & long-SSE proxy templates (README.md, README.zh-CN.md, README.zh-TW.md, CONTRIBUTING.md, SECURITY.md, docs/ANALYSIS_REPORT*.md, #91 thanks @Komorebi-GZM, #95 thanks @1-pluto1)
    • Documented Antigravity eager toolSummary requirements and canonical npx -y agy-fast mcp / mcp-config --rules workflows across all three READMEs (#91), synchronized trilingual READMEs, CI/security metadata, and analysis reports (#95), and added copyable static-TCP routing templates (Clash/Mihomo prepend-rules: Merge Override, Surge, sing-box) for Antigravity API endpoints to prevent mid-stream unexpected EOF / broken pipe drops without touching third-party proxy configs.

Performance & Reliability

  • Safe auto-recovery for unique small line-range drifts in apply_edits (src/tools/apply-edits.ts)
    • When a non-replaceAll hunk misses its requested startLine..endLine window but has a single globally unique exact match within <= 50 lines (and passes range & overlap checks), apply_edits now applies it automatically and notes auto-shifted L...->L... instead of aborting and forcing an extra LLM retry turn (0 B schema cost; inverted ranges, ambiguous matches, replaceAll, and >50-line drifts remain strictly rejected).
  • Dynamic truncation tips & self-contained absolute-path cwd inference (src/tools/batch-search.ts, src/tools/run-checks.ts, src/mcp-server-core.ts)
    • Appended compact within-budget footer hints (... [tip: for broad scans, use outputMode: "files_with_matches" or "count"] on broad batch_search content truncations / >=40-match caps without re-truncating fitting output, and Tip: omit outputMode (defaults to "compact")... when run_checks full mode truncates passing stdout).
    • Allowed omitting cwd on hosts without MCP roots/list (e.g. Desktop 2.0 / Hub) when every target path in the call is already an explicit full absolute path and no implicit workspace scan or relative verify command is requested (preserving all relative-path and $HOME/plugin-dir/root safety guards).
  • ~26% leaner rules/AGENTS.md + v2.36 safety-review, frontend image-hygiene & anti-batch=1 calibration (rules/AGENTS.md, README*.md, #97, thanks @1-pluto1)
    • Trimmed always-on rules/AGENTS.md from 8,466 B (v0.3.2) down to 6,236 B (~26% fewer permanent rule bytes per turn) while raising single-file quick_outline threshold to >800 lines (matching zero-check built-in read_file), curbing wasteful single-item MCP calls, guiding callers to omit startLine/endLine on unique blocks and inspect saved spill footers, refining Rule 3 so frontend/UI developers can directly read 1–2 pixel-level design/UI screenshots in <150k-token sessions while still delegating >150k/bulk screenshot audits to text-only subagents, keeping Swarm --cli & long-SSE/compaction hygiene, and adding trilingual FAQ notes clarifying zero custom agents (no 4x billing), 1/N serial safety-check batching, and small vs. multi-file task routing.

Fixed

  • Actionable apply_edits batch failures & 0-byte line-count fix (src/tools/apply-edits.ts, src/mcp-server-core.ts, #100, thanks @iazrael)
    • Clarified bestEffort retry wording and EOF startLine diagnostics while preserving drift detection, guarded lineStarts.pop() on 0-byte empty files, avoided false Verify skipped notices on whitespace-only verify, and tightened apply_edits failure guidance.
  • Preserved already-scanned walkFiles results on maxDirs and timeout budgets (src/utils/fs-utils.ts, test/fs-utils.test.ts, #108, thanks @1-pluto1)
    • Tracked per-directory scan outcomes so walkFiles retains contiguous lexicographical DFS prefixes up to the truncation boundary instead of discarding already-scanned siblings, improving partial-result recall across batch_search fallback, glob, and fuzzy queries.
  • Hardened install.sh / install.ps1 subcommands, test env isolation, and build/CI checks (install.sh, install.ps1, scripts/test.mjs, scripts/build.mjs, scripts/stress-benchmark.mjs, .github/workflows/ci.yml, #107, thanks @1-pluto1)
    • Forwarded mcp/mcp-config directly in both install.sh and install.ps1, blocked remote-pipe irm ... | iex workspace-CWD decoy execution in install.ps1 with plugin.json identity checks and guarded $env:USERPROFILE / ${HOME:-}, stripped GEMINI_HOME, PLUGIN_ROOT, AGY_PLUGIN_ROOT, and ANTIGRAVITY_* plus case-insensitive PATH in test/stress scripts, marked dist/benchmark.mjs and dist/updater.mjs executable, and added Windows install.ps1 PowerShell AST syntax checks to CI.
  • Per-install updater state/lock isolation & Windows 8.3 canonicalization (src/utils/updater-core.ts, scripts/install.mjs, #101, thanks @1-pluto1)
    • Isolated update-state.json and update.lock per canonical pluginDir (using realpathSync.native on Windows 8.3 paths) so multiple installations or isolated profiles never collide on update state.
  • Validated workspacePaths preference in SessionStart & PowerShell -NoProfile (src/utils/session-workspace.ts, src/utils/exec-utils.ts, #81, thanks @yzd05)
    • Preferred validated workspacePaths when host cwd points inside the plugin dir and passed -NoProfile when invoking PowerShell on Windows.
  • Accurate streamWaitSec attribution with update_focus/update_steps & long-cycle diagnostics (src/benchmark-core.ts)
    • Excluded leading UI progress calls (update_focus / update_steps) from anchoring firstGeneric so single large apply_edits/write_file decode time is no longer miscounted as multi-tool streamWaitSec, prevented ERROR_MESSAGE retry-backoff gaps from inflating longSse60sTurns/longSse120sTurns, and surfaced Turns >= 300k context, Long SSE turns (>=60s / >=120s), and Network/SSE disconnect errors across benchmark reports.

简体中文摘要(v0.3.3)

  • 工具边界零依赖超限溢写(#113 感谢 @1-pluto1,Closes #80):run_checks、apply_edits 内联 verify(含 diff: true 通过时保持 footer 末尾锚定)与 batch_search 超出 8.8 KB 内联上限时,自动将完整输出写入私有 0o700/0o600 缓存文件(单文件上限 2 MiB、20 份 FIFO 轮转、严格防 symlink/越权校验),并在末尾附带 Full output saved: 路径提示(可通过 AGY_FAST_SPILL=0/off 关闭)。
  • apply_edits 紧凑差异 diff: true、批次报错可操作化与行号微漂移自动纠偏(#78 感谢 @acrot0;#100 感谢 @iazrael):新增可选 +-2 行紧凑 diff: true;优化 bestEffort 重试提示与 EOF startLine 诊断并修复 0 字节文件行号计数;非 replaceAll 且全文件存在唯一精确匹配、偏移 ≤ 50 行且行号合法无重叠时自动应用并标注 auto-shifted L...->L...(0 B Schema 成本)。
  • walkFiles 预算截断保底与双平台安装/测试/CI 加固(#108、#107 感谢 @1-pluto1):walkFiles 触发 maxDirs 或超时预算时保留连续 DFS 已扫描结果;install.sh 与 install.ps1 均支持 mcp/mcp-config 直通、plugin.json 身份校验(阻止 irm | iex 误执行工作区同名脚本)与空 HOME/USERPROFILE 防护;scripts/test.mjs 隔离宿主环境变量;CI 新增 Windows install.ps1 PowerShell AST 校验。
  • 常驻规则瘦身 ~26% + v2.36 路由、前端读图分级与三语文档同步(#97/#95 感谢 @1-pluto1;#91 感谢 @Komorebi-GZM):将 rules/AGENTS.md 从 8,466 B(v0.3.2)精简至 6,236 B;单文件 quick_outline 门槛上调至 >800 行对齐免审 read_file,抑制低效 batch=1 调用并强调唯一代码块免传行号与溢写文件读取指引;Rule 3 改为按上下文与场景分级(<150k 允许前端直读 1–2 张像素级 UI/设计稿截图,>150k 或批量巡检/OCR 仍委派纯文本子代理);同步三语 README/分析报告、急加载 toolSummary 与标准 npx -y agy-fast mcp 文档,并新增 Clash/Mihomo prepend-rules:、Surge 与 sing-box 长 SSE 静态分流模板及 v2.36 4x/安全复审 FAQ。
  • Swarm --cli 防呆增强、动态截断提示与全绝对路径免 cwd 误报:--cli 新增 --file / --from-file <path> JSON 输入(有界安全读取、UTF-8 BOM 兼容、Windows UTF-16 BOM 提示与相对 --cwd 归一化),静默兼容 --query/-q 与 --paths 并附带 1 行 Valid flags: 提示;batch_search / run_checks 截断自动附带紧凑调优提示;无 roots/list 宿主在全部路径均为显式绝对路径时免报 'cwd' is required。
  • 多实例更新隔离与 SessionStart/PowerShell 加固(#101 感谢 @1-pluto1;#81 感谢 @yzd05):按规范安装目录隔离自动更新状态与锁文件(兼容 Windows 8.3 路径);优先采用有效 workspacePaths 并在 Windows 下透传 PowerShell -NoProfile。
  • benchmark 指标升级与 doctor 存储盘点(#93 感谢 @1-pluto1):新增 Issue #59 专项指标(run_checks 规范度、工具/用户多模态拆分、逻辑操作打包率与 main/subagent/swarm 会话分层),同时修复首位 update_focus/update_steps 导致的 streamWaitSec 虚高并新增 >=300k 上下文、长 SSE(>=60s / >=120s)与网络断流指标;显式 doctor 新增只读并发限时本地存储盘点(覆盖 antigravity*、ACP 与 T3)。