Skip to content

EnvTracker

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/tools/env-tracker.ts

Methods

MethodSignatureReturns
isEnvModifyingCommandisEnvModifyingCommand(command: string)boolean
capturecapture()Promise<EnvSnapshot>
getSnapshotgetSnapshot()`EnvSnapshot
getChangesgetChanges()Record<string, { from?: string; to: string }>
formatForContextformatForContext()string
getCaptureCountgetCaptureCount()number

Where it refuses work

  • EnvTracker stops the work with an early return when !this.currentSnapshot, in 2 places.

When something fails

  • EnvTracker handles failure in 1 place: it discards it silently in all 1.

Was this page helpful?

Download as PDF