Skip to content

Colab GPU v1.3.2

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 19:03
4b7042a

Colab GPU (agy-colab) v1.3.2

English Summary

Added & Changed

  • Native Colab GPU Data-Plane Execution API (src/server/colab/runtime-exec.ts, agent-tools.ts):
    • Added 4 model-visible MCP tools (colab_exec, colab_exec_logs, colab_files, colab_kernel) communicating directly with Colab Runtime Jupyter Proxy + undici.WebSocket (/api/kernels/{id}/channels, /api/contents, /files) — eliminating external colab-cli dependencies for pure-OAuth and imported accounts alike.
    • Added dual-kernel separation (kernelId for stateful Python vs dedicated shellKernelId for bash commands, detached background jobs /tmp/agy_jobs/<jobId>/, waitSec long-polled log tailing, and file inspection) plus automatic proxyToken refresh/retry on expiry or HTTP 401/403.
  • Zero-Token Data-Plane CLI (src/server/cli/colab-run.ts -> dist/colab-run.mjs):
    • Added standalone CLI supporting exec, logs, kill, upload --tar, download, ls, kernel, and hf-pull, with automatic secret scrubbing and --task-id progress syncing.
  • Persistent Pure-OAuth Runtime Session Store (runtime-sessions.json in store.ts, racer.ts, keepalive.ts):
    • Persists active proxyUrl, proxyToken, tokenExpiresAt, kernelId, shellKernelId, and HF injection hash across MCP restarts for all accounts (no legacySessionsPath required).
  • Multi-Token HuggingFace Hub Page & Zero-Leak Vault (src/ui/components/ModelHubPage.tsx, src/server/colab/hub.ts, app-tools.ts):
    • Added top-level navigation page 🤗 Model Hub (🤗 模型凭据) and 6 UI-only tools (app_hub_get, app_hub_save_token, app_hub_delete_token, app_hub_verify_token, app_hub_save_settings, app_hub_sync_runtime) backed by domain-locked hub-secrets.json (0o600).
    • Supports multiple named HF tokens, online /api/whoami-v2 verification, default profile switching, pull/injection policy (autoInjectOnExec, HF_HOME, HF_HUB_ENABLE_HF_TRANSFER, custom HF_ENDPOINT), manual sync to running GPUs, and full hf_* secret scrubbing across MCP & CLI outputs.

中文更新摘要

新增与优化

  • 原生 Colab GPU 数据面执行 API(runtime-exec.ts、agent-tools.ts):
    • 新增 4 个 Agent 可见工具(colab_exec、colab_exec_logs、colab_files、colab_kernel),基于 Colab Runtime Proxy + undici.WebSocket(/api/kernels/{id}/channels、/api/contents、/files)直连执行 Python/Shell、后台作业长轮询日志(/tmp/agy_jobs/<jobId>/)及双向文件传输,纯 OAuth 账号开箱即用。
    • 采用主 Python 内核与伴生 Shell 内核双隔离设计,配合 proxyToken 过期自动热刷新重试,彻底避免耗时计算阻塞日志探测。
  • 零 Token 数据面 CLI(src/server/cli/colab-run.ts -> dist/colab-run.mjs):
    • 提供独立命令行 exec、logs、kill、upload --tar、download、ls、kernel、hf-pull,本地完成大模型文件打包传输、权重拉取与日志跟随,全面脱敏输出并支持 --task-id 任务进度联动。
  • 全账号连接状态持久化(runtime-sessions.json):
    • 抢卡、认领与后台保活均同步持久化 proxyUrl/proxyToken/kernelId/shellKernelId,纯 OAuth 登录与遗留账号一视同仁。
  • 多份 HuggingFace 凭据库页面(🤗 模型凭据 / 🤗 Model Hub):
    • 新增一级导航页 🤗 模型凭据 及 6 个 UI 专属只读隔离工具(app_hub_*),支持保存多份命名 HF Token、在线 whoami-v2 校验、切换默认凭据、配置 autoInjectOnExec / HF_HOME / hf_transfer / 镜像站并一键向运行中 GPU 静默注入;Token 永不进入大模型上下文或日志。

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

  • Windows / Cross-Platform (.zip): agy-colab-v1.3.2.zip
  • macOS / Linux (.tar.gz): agy-colab-v1.3.2.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.3.2 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.3.2)