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
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. |
|
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. |
|
render
Package render defines output formats for bage command results and the helpers to parse them from user-facing flags.
|
Package render defines output formats for bage command results and the helpers to parse them from user-facing flags. |
Click to show internal directories.
Click to hide internal directories.