Skip to content

Local adapters

Local durable and ephemeral adapters for filesystem-backed workflows.

@gittrix/adapter-local supports both durable and ephemeral roles.

  • LocalDurableAdapter
  • LocalEphemeralAdapter
import { LocalDurableAdapter, LocalEphemeralAdapter } from '@gittrix/adapter-local'
const durable = new LocalDurableAdapter({ path: '/Users/you/code/repo' })
const ephemeral = new LocalEphemeralAdapter({ baseDir: '/tmp/gittrix-sessions' })

If your install is still on v0.1 naming, you’ll likely see LocalFsAdapter for durable-like local git behavior. Plan migration to the split interfaces in v0.2.