Skip to content

Colab GPU v1.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 19:21
8c2d38a

Colab GPU (agy-colab) v1.1.0

English Summary

Added

  • Built-In Verified Plugin Self-Updater (Sidecar UI + Standalone CLI):
    • Added app-only MCP tools app_check_update and app_apply_update (visibility: ['app'], keeping LLM tool context untouched) backed by src/server/updater/updater.ts.
    • Added an Updates (⬆ 插件更新 / ⬆ Updates) tab in Settings plus a clickable header update pill (StatusBeacon) that quietly checks GitHub Releases on panel connect (30-minute TTL cache), displays release notes in plain text (zero innerHTML), and applies verified upgrades with a post-update reload indicator.
    • Added standalone zero-extra-dependency CLI updater scripts/update-plugin.mjs (npm run update:plugin, and bundled as update-plugin.mjs inside every portable release archive) supporting --check, --target, --version, --force, --proxy, and --json.
    • Security & safety invariants: strict HTTPS GitHub allowlist + 50 MiB download cap, mandatory fail-closed SHA256SUMS.txt verification (plus GitHub asset digest cross-check), Zip-Slip & symlink rejection for .zip and .tar.gz, source-checkout guard (.git/src/), active-race guard, junction/symlink-safe node_modules replacement with automatic rollback, and zero touch on ${PLUGIN_DATA}.
  • Bilingual EN / 中文 Sidecar Console (shipped on main since v1.0.0): automatic host/system locale detection with live header EN / 中文 toggle.

Fixed

  • Colab GPU Utilization Calculation Bug (src/server/colab/runtime.ts, RuntimeCard.tsx):
    • Google Colab's /api/colab/resources endpoint reports gpuUtilization as a [0.0, 1.0] fraction (int(row[4]) / 100). Previously, raw < 1 caused gpuUtilization = 1.0 (100% load) to be interpreted as 1%, displaying inaccurate telemetry and triggering false idle_burn alerts on fully saturated GPUs.
    • Introduced normalizeGpuUtilPct(raw, { unit }) treating [0, 1] (inclusive of 1.0) as fractional 0%–100%, explicit *Percent keys as percentages, values > 1 as clamped [0, 100], invalid/negative values as null, and multi-GPU readings via total VRAM + max utilization.

中文更新摘要

新增功能

  • 内置可校验插件自更新功能(Sidecar 面板一键更新 + 独立 CLI):
    • 新增仅前端可见的 MCP 工具 app_check_update 与 app_apply_update(visibility: ['app'],不占用 LLM 工具上下文),由 src/server/updater/updater.ts 驱动。
    • 在设置弹窗新增 ⬆ 插件更新 标签页,并在顶栏新增可点击更新提示胶囊(面板连接后静默检查 GitHub Releases、30 分钟缓存、纯文本展示 Release Notes 零 innerHTML、升级完成后自动提示重载插件)。
    • 新增独立零额外依赖 CLI 更新脚本 scripts/update-plugin.mjs(支持 npm run update:plugin 且随便携发布包打包为 update-plugin.mjs),支持 --check、--target、--version、--force、--proxy、--json 等参数。
    • 完备安全与防损保障:强制 HTTPS GitHub 下载域名白名单与 50 MiB 体积上限、强制 SHA256SUMS.txt 校验(缺校验或哈希不匹配一律失败中止)、.zip / .tar.gz 解压前 Zip-Slip 路径穿越与符号链接拦截、源码工作区保护(含 .git/src/ 禁止原地覆盖)、抢卡运行中保护、Windows Junction / Unix Symlink 安全的原子替换与失败自动回滚,且全程零触碰 ${PLUGIN_DATA} 数据目录。
  • 中英双语 Sidecar 控制台(合入自 v1.0.0 之后):自动识别宿主/系统语言,顶栏支持 EN / 中文 实时无重启切换。

问题修复

  • 修复 Google Colab GPU 利用率计算 Bug(src/server/colab/runtime.ts、RuntimeCard.tsx):
    • Google Colab /api/colab/resources 接口返回的 gpuUtilization 为 [0.0, 1.0] 小数(1.0 表示 100% 满载)。旧逻辑使用 raw < 1 导致满载卡 1.0 被错算为 1%,不仅界面显示错误,还会误触发防空烧雷达 idle_burn 告警。
    • 新增 normalizeGpuUtilPct(raw, { unit }):将 [0, 1](含 1.0)按小数换算为 0%–100%,显式 *Percent 字段按百分比处理,超界值截断至 [0, 100]、负数/非法值返回 null,并完善多卡显存求和与最高利用率聚合。

Portable Plugin Bundles / 免 npm install 便携安装包

  • Windows / Cross-Platform (.zip): agy-colab-v1.1.0.zip
  • macOS / Linux (.tar.gz): agy-colab-v1.1.0.tar.gz
  • SHA-256 Checksums: SHA256SUMS.txt

Extract the archive and run node install-portable.mjs inside the extracted agy-colab/ directory, then toggle Colab GPU (agy-colab) on in Antigravity Plugins Manager.

Harness Support: Currently v1.1.0 targets Google Antigravity first. Need another harness (Claude Code, Cursor, Codex, Windsurf, Cline, etc.)? Open a Harness Request Issue and support will be added promptly!

Full Changelog: CHANGELOG.md · Commits (v1.1.0)