Skip to main content

Crate jk_core

Crate jk_core 

Source
Expand description

Shared log records used by jk integration and TUI crates.

jk-core keeps the boundary between opaque jj rendering and semantic log state explicit. The rendered log body is still owned by jj; jk only keeps enough structured metadata to move by change, preserve selection across refresh, and insert inline details at the right rendered line.

Structs§

CommandExecutionContext
Context captured when a command starts.
CommandHistory
Recent command records retained in memory.
CommandIdentity
Command data captured from a typed command spec.
CommandPreview
Command data shown before a command is allowed to run.
CommandRecord
One retained command-history record.
CommandRecordFinish
Fields required when a command finishes.
CommandRecordId
A stable command-history id for the current process.
CommandRecordStart
Fields required when a command starts.
CommandResultSummary
Process result summary retained by history.
CommandSource
The view and action that caused a command.
CommandTiming
Timing captured for a command.
DiffFileStat
Per-file line counts for a rendered diff.
DiffSnapshot
A rendered jj diff view for one change.
ExitStatusSummary
Exit status data that does not require retaining platform-specific process types.
GlobalOptions
Global jj options rendered before the command family.
GlobalOptionsSnapshot
Redacted global jj options retained by command history.
InspectionSnapshot
A rendered read-only jj inspection view.
JjCommandSpec
A typed description of one jj command.
LogEntry
A semantic log item that the TUI can navigate without knowing how jj produced it.
LogSnapshot
A rendered jj log view plus semantic records for navigation.
OutputPolicy
Output-related global jj options.
PendingCommandRecord
A pending command record handle returned by CommandHistory::start.
StreamSummary
Bounded and redacted stream summary.

Enums§

ColorPolicy
Color rendering policy passed to jj --color.
CommandFamily
Broad command family for history filtering.
CommandPreviewWarning
Warning shown beside a command preview when flags or safety class deserve attention.
ConfigOverlay
Config overlays passed through global jj options.
ExecutionMode
How a command should be executed.
ImmutabilityPolicy
Whether jj should enforce immutable commits.
OperationIntegrationPolicy
Whether jj should integrate the loaded operation.
OperationLoadPolicy
Which operation jj should load before running a command.
OutputRetention
Bounded output retention policy for a command record.
PagerPolicy
Pager rendering policy passed to jj.
RefreshPlan
What should refresh after a command succeeds.
SafetyClass
The safety class for command preview and confirmation policy.
SourceAction
App action that triggered a command.
SourceView
App view that triggered a command.
WorkingCopyPolicy
How jj should handle working-copy state before running a command.