Class IntegrityManager

Manages integrity check suppression for Antigravity's IntegrityService.

Call suppressCheck() after any file patching (workbench.html, main.js, etc.). It scans ALL files listed in product.json checksums, recomputes hashes for any that have changed, and updates product.json. IntegrityService will see isPure = true on next restart, producing zero warnings.

Constructors

  • Parameters

    • workbenchDir: string

      — Absolute path to the workbench directory (e.g. %LOCALAPPDATA%/Programs/Antigravity/resources/app/out/vs/code/electron-browser/workbench/)

    • namespace: string

      — Unique slug for this extension (e.g. 'kanezal-better-antigravity')

    Returns IntegrityManager

Methods

  • Release the integrity check suppression.

    Call this when uninstalling the integration. If no other SDK namespaces remain active, restores all original hashes in product.json.

    Returns void

  • Re-apply integrity suppression after auto-repair.

    Call this after auto-repair has re-patched files (e.g. after an AG update that overwrote workbench files).

    Returns void

  • Suppress the integrity check by updating ALL mismatched hashes in product.json.

    Scans every file listed in product.json checksums, recomputes SHA256 for each, and updates any that have changed. This handles not just workbench.html but also workbench.desktop.main.js (auto-run fix), jetskiAgent files, etc.

    Call this after any file patching. Safe to call multiple times.

    Returns void