Skip to content

Releases

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 07:51

Added

  • Client impersonation layer for private endpoint calls: the exact CLI header set and order (Host, User-Agent, Content-Length, Authorization, Content-Type, Accept-Encoding: gzip), HTTP/1.1 with fixed-length bodies, and no browser-shaped defaults. The optional wreq-js dependency (tlsFingerprint, default on, automatic Node fallback when missing or unusable) delegates the TLS ClientHello to Rust + BoringSSL with the captured Go profile; measured JA4_a/JA4_b match the official capture while JA3/JA4_c still differ, as documented in TECHNICAL §2.4.

Changed

  • Private POSTs now use undici's low-level request writer instead of fetch, so accept: */*, accept-language: *, and sec-fetch-mode: cors no longer ride along with the CLI header set (the Node fallback still frames Host, Connection: keep-alive, and Content-Length itself).
  • Pinned the private-call CLI identity to agy 1.5.19 (cl=1031513713, the 2026-11-29 consumer capture) instead of the stale 1.5.8 pair (cl=1020628950); buildCliUserAgent still drops the change list for any other version, so an unpaired "new version + old build number" combination is never sent. The catalog impact on this account is unverified, and 1.5.20 is not adopted because the official updater manifest carries no change list.
  • The wreq transport runs with timeout: 0 so the total-budget behaviour is identical on both transports: an over-budget stream keeps its delivered output and finishes normally instead of surfacing a transport error, and aborting a stream cancels the body read promptly.
  • Pinned wreq-js to ~3.3.0 because the TLS emulation option names are coupled to that minor; a floating minor could silently ignore an option and weaken the fingerprint.
  • wreq-js is declared in optionalDependencies; dependencies remains undici only, and the TLS fingerprint layer degrades to Node with a single logged notice.

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 29 Nov 09:23

Fixed

  • Restored Node 20 and 22 support: npm run test:only now uses the runner's own discovery instead of a shell-expanded glob (Node 20 does not expand it), and every bounded wait uses a referenced timer (createDeadline) instead of AbortSignal.timeout, whose unref'd timer could leave a caller reported as never settling. Both affected the CI matrix; 0.2.1 is superseded.

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 29 Nov 09:10

Added

  • Settings Account tab interactive Auto-switch on quota exhaustion toggle switch (role="switch", backed by /api/antigravity-gateway-account/auto-switch RPC), defaulting to false with an inline risk warning that automatic account rotation may risk account bans, persisting the preference atomically to preferences.json, and updating AntigravityGatewayAdapter failover behavior immediately without restarting DSH.

Changed

  • Changed autoSwitchAccount default from true to false across Config, AccountService, AntigravityGatewayAdapter, and AccountPanel (with an inline suspension/ban risk warning).
  • Updated README.md / README.us.md feature summary table (removed concrete model names from the capability column and renamed the right column to Summary / 简介) and added npm online installation and DSH Agent plugin_manager installation instructions.
  • A whole attempt now honors requestTimeoutMs for the streaming body too: when the budget expires the answer keeps what was already delivered and finishes as max-tokens, while an attempt with no output still surfaces TIMEOUT.
  • Cancelling the request while its error body is being read now ends as ABORTED instead of being reclassified as the provider's 401/429 error.
  • The opt-in dumpRequestsTo diagnostic is capped at 8 MiB, written owner-only, and warns once at startup that it contains conversation content.
  • models discovery bounds the credential wait with the same budget as the probes, so a cold token refresh degrades to a cached report instead of overrunning the client timeout.

Fixed

  • The composer quota chip and settings quota view now always belong to the current account: a per-account epoch drops outdated responses (slow switch, logout, or overlapping forced refreshes), a response for a different active account is not shown, and switching or signing out clears the old account's numbers immediately. The Models tab no longer writes its own copy of the report.
  • The quota chip no longer borrows a 5h bucket that belongs to another model family (or a lone unlabelled pool): it reads strictly the matching family's bucket and shows 5h | -- otherwise, matching the documented contract.
  • Sign-out and credential writes no longer report success when the host credential store and the file mirror disagree: a surviving host record restores the mirror and surfaces an unconfirmed sign-out, a failed host write drops the stale record so the mirror stays authoritative, and mirror migration only fills an empty slot. A login cancelled after its callback arrived can no longer persist credentials or clear a newer sign-in's pending state.
  • Failover honours the auto-switch preference at decision time (turning it off mid-stream stops rotation) and never overrides a concurrent manual switch when the CAS is rejected.
  • Auto-switch preference write failures are reported instead of silently ignored: disabling keeps the safe runtime value but reports that it was not persisted, and enabling is neither applied nor reported.
  • SSE reader failures are classified as TRANSPORT instead of a false idle timeout, [DONE] ends the stream, OAuth token/userinfo bodies are byte- and time-bounded, and an unloaded transport refuses new work instead of reopening its dispatcher pool.
  • logMaxFiles: 1 keeps a single readable log file instead of writing an untracked rotated sibling, and unserializable diagnostic values no longer break logging.
  • /agw commands re-evaluate the loopback access policy on every invocation, matching the account RPC after a late WebServer mount.
  • Composer quota indicator (selectCompactQuota / selectQuotaForModel) now strictly reads the model pool's 5h bucket without taking Math.min against lower per-model/weekly limits, and renders 5h | XX% (or 5h | --) consistently instead of substituting weekly or quota | XX% values.
  • Aligned ModelCatalog multi-endpoint probe budget (DEFAULT_PROBE_TIMEOUT_MS = 6_000, DEFAULT_PROBE_TOTAL_BUDGET_MS = 14_000) strictly below the Settings ModelsPanel RPC safety timeout (MODELS_RPC_TIMEOUT_MS = 25_000) so dual-endpoint stalls degrade cleanly to cached/snapshot reports instead of prematurely timing out on the client; added parallel live discovery (probeAvailableModels, getAccountTier, probeQuotaSummary), client state hydration (sharedQuotaState.status / report), loadingModels placeholder card, and transient error cache retention.

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 20:47

Fixed

  • Multi-account deduplication and cache isolation when multiple consumer Google accounts share the aicode-consumers project ID: account identity and cache keys now prioritize normalized email (with id_token JWT email extraction fallback when /userinfo is unavailable), skip shared project IDs in deriveAccountId, and never merge distinct accounts on shared project IDs.
  • Clearing sharedQuotaState in client.js upon full logout or AUTH errors so the composer quota indicator immediately reverts to 5h | -- without displaying stale account/quota details.
  • Per-account refresh generation isolation (accountGenerations) in AuthManager so switching accounts does not abort an unrelated concurrent token refresh.
  • Hardened lifecycle disposal, SSE stream abort handling (iterateSse), catalog concurrency/ordering, async request-dump writes, and atomic file persistence (fs-atomic.ts).

Changed

  • Encoded the public Antigravity desktop OAuth client identifier and secret in src/protocol/constants.ts using XOR-masked byte arrays decoded at runtime (avoiding plaintext and Base64 Push Protection triggers, with optional paired ANTIGRAVITY_OAUTH_CLIENT_* / ANTIGRAVITY_CLIENT_* environment overrides in src/core/oauth.ts), added OAuth client-secret redaction in src/core/logger.ts, and added automated plaintext/Base64 leak-prevention tests (158 tests across 18 suites).
  • Refactored internal codebase into a four-layer unidirectional architecture (shared ← protocol ← core ← dsh ← index), guarded by AST dependency tests, client.js @ts-check + contract tests, and expanded offline verification (158 tests across 18 suites).
  • Settings Account tab visual hierarchy (agw-panel-header, active account spotlight card with avatar & metadata grid, styled account roster, and clean footer notes).
  • Composer quota indicator now falls back to quota | XX% when no 5h bucket matches and supports closing the hover/focus popover with Escape.

Added

  • Settings Models tab quota visualization: clear hierarchical cards (agw-panel-header, quota cards with bold 5h / weekly labels, prominent percentages, full-width 5px progress bars, and reset countdown + local time; streamlined available model rows showing model display name, status, and efforts without redundant model ID, duplicate quota, or verbose description text, plus collapsible unavailable models).
  • Chat composer compact 5-hour quota label (5h | XX%) mounted via conversation.input.right immediately to the left of the model selector when a model owned by this plugin is selected — borderless, matching the model trigger's UI font and 13px/28px alignment at semibold (600) weight, with a body-portaled hover card showing account info and the two quota pool groups (5h / weekly progress bars and reset countdowns, without per-model duplication).
  • Multi-account management (CredentialVault v2 with automatic backward-compatible single-account v1 persistence and migration): add/import multiple Google accounts, view account list, switch active account, and remove individual accounts from Settings → Account or /agw accounts · /agw switch · /agw logout [all].
  • Per-account isolated memory and disk catalog caches (catalog-cache.json v2) and automatic quota-exhaustion failover (autoSwitchAccount: true by default): on HTTP 429, in-stream RESOURCE_EXHAUSTED, or pre-flight known 0% quota, seamlessly switches to an eligible backup account while preserving the user's selected model and reasoning effort.