These docs track main. Latest release: v1.0.0.

antigravity-booster
Internals

Module map

Every module and its exports, generated from the export declarations in lib/, hooks/, sidecars/, mcp/ and bin/.

This map is generated by statically reading the export declarations of every module (named exports, export { } lists and re-exports). It replaces the hand-written module map in the old architecture document, which named classes and functions that no longer exist (C26: the pool manager is PoolSet).

ModuleExports
bin/agb.mjs(no exports: entry point)
hooks/policy/constants.mjsAGY_CONTROL_TOOLS, BOOSTER_MCP_SERVER, BOOSTER_MCP_TOOLS, DESTRUCTIVE_ROOT_VERBS, EXCLUDED_CONTENT_KEYS, IMPLICIT_RAIL_DIRS, IMPLICIT_RAIL_FILES, ORCHESTRATION_TOOLS, PATH_MUTATING_TOOLS, PURE_READERS, READ_ONLY_TOOLS, READ_TOOL_PATH_SCHEMAS, TICKET_STORE_DIR, TOOL_PATH_SCHEMAS
hooks/policy/evaluate.mjsbuildContext, evaluatePayload, extractProbedPaths, isBoosterMcpTool
hooks/policy/paths.mjsbeginEvaluation, boosterDataRoots, expandHome, hasHomePrefix, isImplicitAncestorOnly, isMagicPath, isRailAncestorOnly, isWithin, matchDeclaredRail, matchImplicitRail, matchRoot, matchesScope, physicalResolve, protectedRoots, railStaticPrefix, repoRelative, resolveCandidate, resolveSafeTarget
hooks/policy/shell-lexer.mjslexCommandLine
hooks/policy/shell.mjsclassifyRunCommand, isShimInvocation
hooks/policy/verdict.mjsPASS, ask, deny, mostRestrictive
hooks/pre-tool-use.mjs(no exports: entry point)
lib/active-rails.mjsfindAdlcRoot, findGitTop, isActiveTicket, resolveTicket, unionActiveRails
lib/adlc-bridge.mjsIS_BUNDLED, KNOWN_ADLC_DEPENDENCY_DIGESTS, KNOWN_ADLC_DIGESTS, KNOWN_VENDORED_ADLC, MIN_ADLC_CLI_VERSION, PLUGIN_CONTRACT_STATUSES, STAGED_ADLC_ANTIGRAVITY_TREE_DIGESTS, SUPPORTED_PLUGIN_CONTRACT, authenticateAdlcPackage, computePackageTreeDigest, detectTicketStoreBackend, execAuthenticatedAdlc, execFileAuthenticatedAdlc, getApprovedLocksDir, getApprovedPinnedBase, isTemporaryOrWorldWritablePath, parseSemver, pinExecutable, planTicketToAdlcTicket, planTicketToRailTicket, planToAdlcTickets, pluginManifestDir, preventExecutableReplacement, readPluginContract, recoverStaleExecutableLocks, resolveAdlcBinary, resolveExecutionCommand, resolveVendoredAdlc, revalidateAdlcBinary, semverGte, spawnAuthenticatedAdlc, writeAdlcTickets
lib/agy.mjsBRAIN_PLAN_SCHEMA, COLDSTART_VERDICT_SCHEMA, DANGEROUS_RUNTIME_ENV_VARS, ENV_ALLOWLIST, FORBIDDEN_SECRETS, MAX_CONSECUTIVE_GARBAGE_BYTES, MAX_STREAM_LINE_BYTES, MAX_STREAM_TOTAL_BYTES, MODELS, MODEL_ALIASES, PARALLAX_VERDICT_SCHEMA, PROSECUTION_VERDICT_SCHEMA, QUOTA_RESPONSE_SCHEMA, SENSITIVE_KEY_PATTERN, STREAM_EVENT_SCHEMA, checkKernelContainment, familyOf, isAgyTimeout, isAllowedEnvVar, isTestExecution, parseTimeoutMs, poolOf, resolveModelSlug, runAgy, validateJsonSchema, verifySandboxBypassAttestation
lib/bootstrap.mjsbootstrap, isNpxTemp, resolveBoosterPluginPath, resolvePluginPath
lib/brain.mjsBRAIN_DIR, brainToPlan, getActiveSessionId, listBrains, readBrain
lib/charters.mjsbuilderAgentsMd, builderPrompt, fixPrompt, prosecutionPrompt, regenPrompt
lib/digest.mjscomputeDirectoryDigest
lib/doctor.mjsMIN_AGY_VERSION, boosterDataDir, checkAdlcBinary, checkAgyAuth, checkAgyBinary, checkBrainDir, checkKernelContainment, checkKillswitchUsage, checkNodeVersion, checkPlugin, checkPolicyGuard, checkProbePlugins, checkSandbox, checkSecondaryInstall, checkTicketStore, evaluateStagedAdlcPlugin, healthLogPath, isTestExecution, runDoctor, verifyWindowsSandboxActive, verifyWindowsSandboxAttestation
lib/gates.mjsgateSandboxAvailable, gateSandboxEnabled, linuxBwrapArgs, runGate, runGates, sandboxProfile
lib/lock.mjsacquireRepoLock
lib/migrate.mjsHANDOVER_TIMEOUT_MS, SNAPSHOT_SIZE_CAP_BYTES, breakLock, finishUninstallCommand, isOwnedSkillLink, migrate, parseValidateOutput, scanSkillSymlinks, treeSize
lib/migration-lock.mjsMIGRATION_LOCK_DIRNAME, MIGRATION_STATE_FILENAME, MigrationLockError, UNINSTALLER_DIR_PREFIX, acquireMigrationLock, adoptMigrationLock, assertMigrationLockHeld, boosterDataDir, breakMigrationLock, clearMigrationState, finishUninstall, getProcessStartTime, invalidateMigrationLockToken, isAlive, migrationLockDir, migrationStatePath, parseProcStatStartTime, readLockMeta, readMigrationState, releaseMigrationLock, writeMigrationState
lib/plan.mjsPARALLAX_JUDGE_SCHEMA, PARALLAX_READER_SCHEMA, PATHSPEC_RE, PREMORTEM_SCHEMA, TICKET_ID_RE, applyModelRouterTiers, compilePlan, normalizePathspec, parallaxEdges, planEdges, premortemPlan, validatePathspec, validatePlan, verifyGateScriptIntegrity
lib/plugin-paths.mjsADLC_ANTIGRAVITY_PLUGIN_NAME, AGY_INSTALL_TIMEOUT_MS, BOOSTER_PLUGIN_NAME, BUNDLED_ADLC_ANTIGRAVITY_VERSION, INSTALL_COPY_EXCLUSIONS, PINNED_ADLC_ANTIGRAVITY_INTEGRITY, TERMINAL_SHIM_CONTENT, VENDORED_ADLC_ANTIGRAVITY_TARBALL, copyPluginTree, installAdlcAntigravityFromVendor, installPluginTarball, installTerminalShim, isBoosterPluginName, pluginsDirFor, resolveAgyBinary, resolveAssetPath, resolvePluginRoot, resolveTarBinary, safePluginInstall
lib/pools.mjsActiveV2LeasesPresentError, BASE_CAPS, DEFAULT_CAPS, HEARTBEAT_INTERVAL_MS, LEASE_TTL_MS, LegacyFleetActiveError, PROSECUTORS, PoolSet, RFC3339_UTC_RE, TIER_CANDIDATES, acquireLease, assertNoActiveLegacyFleet, canonicalPoolOf, computeEffectivePercent, computeQuotaResumption, computeScaledCap, drainPools, getLockFile, getProcessStartTime, getStateFile, getV2StateFile, isLeaseActive, isProcessAlive, parseQuotaProbeOutput, poolOf, probeQuota, readSharedState, readV2State, reconcileLeases, registerLeaseWorkerPid, releaseLease, renewLease, safeWriteHeartbeatFile, terminateWorkerTree, tierCandidates, upstreamPoolOf, withLock, withLockSync, writeSharedState, writeV2State
lib/preflight.mjsCOLDSTART_SCHEMA, applyMergeForecast, coldstartTickets, forecastOverlaps, preflight
lib/prosecute.mjsblockingFindings, prosecute, runHollowTest
lib/review.mjsLENSES, REVIEW_FINDINGS_SCHEMA, reviewCalibration, reviewDiff, reviewFleet
lib/run-integrity.mjsABSENT, diffRunIntegrity, enforcementGate, hooksDirFor, isWellFormedRail, snapshotRunIntegrity, verifyRunIntegrity
lib/sandbox-probe-helper.mjsrunSandboxProbe
lib/scheduler.mjscheckEnforcementAvailable, checkFlailDetector, getGitCommonDir, hostMediatedFetch, reconcileIntegrationJournal, runPlan, safeWriteWorktreeFile, setupAttemptGitDatabase, snapshotRootGit, terminateProcessTree, verifyRootGitIntegrity, verifyScopeAndAntiNoOp, verifyWorktreeGitPointer
lib/semver.mjscompare, eq, gt, gte, lt, parse
lib/status.mjsRunStatus, renderStatus, watchStatus
lib/sweep.mjsexpandTargets, sweepToPlan
lib/worktrees.mjsJOURNAL_PHASES, abortAnyMerge, assertSafeAdlcDir, branchDiff, changedFiles, commitAll, createIntegrationWorktree, createWorktree, currentBranch, deleteBranch, discardProjection, ensureGitignore, isDirty, isMidMerge, mergeWorktree, pruneWorktrees, quarantineIntegrationJournal, readIntegrationJournal, reapIntegrationWorktrees, removeWorktree, resetToBase, unlinkIntegrationJournal, validateWorktreeRoot, writeIntegrationJournal
mcp/server.mjsresolveAgbEntry
sidecars/jetski-launcher.mjs(no exports: entry point)
sidecars/server.mjsserveSidecar

Entry points (bin/agb.mjs, hooks/pre-tool-use.mjs, and the sidecar launcher) have no exports. For how the modules fit together see Architecture.