bage

module
v0.1.0 Latest Latest
Warning

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

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

Directories

Path Synopsis
cmd
bage command
Command bage is the standalone entrypoint for the Båge round-trip file editor (SPEC §6 standalone mode): files + LSP, no graph, sharing the same region/session edit engine as integrated mode.
Command bage is the standalone entrypoint for the Båge round-trip file editor (SPEC §6 standalone mode): files + LSP, no graph, sharing the same region/session edit engine as integrated mode.
internal
atomicwrite
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.
edit
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.
format
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.
hashing
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).
locator
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.
lsp
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.
normalize
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.
parser
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.
parser/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).
region
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).
session
Package session implements Båge's FILE-LEG two-phase, region-anchored, concurrency-safe edit protocol (SPEC §8, ADR-0003).
Package session implements Båge's FILE-LEG two-phase, region-anchored, concurrency-safe edit protocol (SPEC §8, ADR-0003).
wal
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.
pkg
bage
Package bage is the public, curated facade for Båge — the bidirectional code-graph round-trip file editor.
Package bage is the public, curated facade for Båge — the bidirectional code-graph round-trip file editor.

Jump to

Keyboard shortcuts

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