internal/

directory
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: MIT

Directories

Path Synopsis
Package atomicwrite provides a POSIX-atomic file writer: data is written to a temp file in the target's directory, fsync'd, then renamed over the target.
Package atomicwrite provides a POSIX-atomic file writer: data is written to a temp file in the target's directory, fsync'd, then renamed over the target.
Package edit provides the in-memory round-trip edit primitives Båge applies before any file write: drift classification (two hashes), a pure byte-range splice over a single file's bytes, a byte-offset → row/col point helper, and a reparse that prefers incremental parsing for the single-region path.
Package edit provides the in-memory round-trip edit primitives Båge applies before any file write: drift classification (two hashes), a pure byte-range splice over a single file's bytes, a byte-offset → row/col point helper, and a reparse that prefers incremental parsing for the single-region path.
Package format defines the formatter and linter ports applied to staged edit content before it is committed, together with configured-command exec adapters and in-memory fakes for downstream tests.
Package format defines the formatter and linter ports applied to staged edit content before it is committed, together with configured-command exec adapters and in-memory fakes for downstream tests.
Package hashing defines the Hasher port and the raw/normalized content-hash helpers Båge uses for drift discipline (SPEC §4.3).
Package hashing defines the Hasher port and the raw/normalized content-hash helpers Båge uses for drift discipline (SPEC §4.3).
Package locator addresses byte regions of files and applies splice edits to them.
Package locator addresses byte regions of files and applies splice edits to them.
Package lsp bridges an LSP server's symbol operations to Båge's byte-range edit model.
Package lsp bridges an LSP server's symbol operations to Båge's byte-range edit model.
Package normalize provides the shared content-normalization rule used to compute Båge's normalized content hash.
Package normalize provides the shared content-normalization rule used to compute Båge's normalized content hash.
Package parser defines the engine-agnostic parsing port and the concrete syntax tree (CST) data-transfer objects Båge uses to locate byte ranges.
Package parser defines the engine-agnostic parsing port and the concrete syntax tree (CST) data-transfer objects Båge uses to locate byte ranges.
treesitter
Package treesitter implements parser.ParserPort with the official CGO go-tree-sitter bindings (docs/adr/0002).
Package treesitter implements parser.ParserPort with the official CGO go-tree-sitter bindings (docs/adr/0002).
Package region defines Båge's region-anchoring primitives: the content-anchored edit unit (SPEC §8) and the concurrency-safe resolver that maps a possibly-stale region back onto the live file (ADR-0003).
Package region defines Båge's region-anchoring primitives: the content-anchored edit unit (SPEC §8) and the concurrency-safe resolver that maps a possibly-stale region back onto the live file (ADR-0003).
File batch.go adds the INTEGRATION NODE of the op spine (ADR-0004 §10.1/§10.3, SPEC §10): Session.ApplyBatch applies a HETEROGENEOUS []Op (Edit + Create + Delete + Move) as ONE all-or-nothing logical change a host (Hylla) maps to ONE graph mutation.
File batch.go adds the INTEGRATION NODE of the op spine (ADR-0004 §10.1/§10.3, SPEC §10): Session.ApplyBatch applies a HETEROGENEOUS []Op (Edit + Create + Delete + Move) as ONE all-or-nothing logical change a host (Hylla) maps to ONE graph mutation.
Package wal is a durable, file-based write-ahead log of edit intents.
Package wal is a durable, file-based write-ahead log of edit intents.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL