Skip to main content

Crate logcompact_builtins

Crate logcompact_builtins 

Source
Expand description

Deterministic, source-agnostic reduction of compiler, test, and tool text.

The crate performs no I/O and has no async, provider protocol, storage, or runner dependency. Callers provide already acquired text and an explicit redaction policy; only normalized and redacted diagnostics are returned.

Structs§

Budget
Combined item and serialized-finding byte limits.
BuiltinDiagnosticParser
Bounded bridge from incremental normalized lines to the built-in parser registry. Individual language parsers retain their deterministic prepass and line-arbitration order while callers gain chunk-invariant session framing.
BuiltinMatcherOverrides
Built-in diagnostic matchers replaced by custom matchers with the same owner.
BuiltinParserOptions
Fixed options for the built-in parser pack in a streaming session.
Diagnostic
One normalized and redacted diagnostic.
Emitter
Bounded parser output sink. Contextual provenance is supplied by the engine.
GenericRanker
Generic ranking prefers compiler, test, lint, infrastructure, then tool diagnostics and uses parser-emitted evidence quality instead of message substring heuristics.
JavaScriptTestDiagnosticParser
Stateful extractor for Node.js exceptions and their application frames.
JavaTestDiagnosticParser
Stateful extractor for Java exceptions followed by JVM stack frames.
Limits
Hard bounds for incremental input and candidate retention.
Location
Optional source coordinate extracted from diagnostic text.
LogLine
One normalized input line delivered to an immutable parser plan.
NoPathMapping
Identity path policy used by generic CLI and CI consumers.
NoRedaction
Explicit identity redactor for already-sanitized or non-sensitive inputs.
OutputPolicy
Output transformations and ranking shared by batch and streaming callers.
ParserPlan
Immutable ordered set of trusted native parsers.
ProblemMatcherLimits
Hard limits for untrusted problem-matcher definitions and partial matches.
ProblemMatcherParser
Bounded, deterministic single-line and consecutive multiline matcher.
ProblemMatcherRegistry
Ordered registry compiled before parsing begins. A later owner replaces an earlier owner, matching GitHub Actions registration behavior.
Provenance
Caller and state-machine provenance for one returned finding.
PythonDiagnosticParser
Stateful extractor for standard Python traceback and syntax-error output.
RankKey
Stable typed rank key; lower values are retained first.
Reduction
Bounded result and explicit truncation accounting.
ReductionOptions
Stable options for one synchronous batch reduction call.
ReductionSession
Incremental, chunk-invariant reduction session.
ReductionStats
Accounting that never contains raw input text.
Scope
Caller-owned identity for one independently bounded parser scope.
SessionOptions
Options for an incremental reduction session.
TestFailure
Structured failed-test evidence independent of a particular test provider.
TestFailureAccumulator
Streaming, bounded extraction of concrete failed-test evidence from test logs.
TestFailureEvidence
TestLogReducer
Streaming, bounded orchestration of language and framework test-log parsers.
TestLogReduction
Provider-neutral output for one or more test-log segments.
TextInput
Borrowed text plus optional owned output provenance.

Enums§

DiagnosticClass
Provider-neutral diagnostic family used by presentation adapters.
EndReason
Why a parser scope ended.
EvidenceQuality
How directly a finding is supported by the observed evidence.
FallbackPolicy
Controls whether unclaimed actionable lines may become tool diagnostics.
ParserPlanError
Invalid immutable parser-plan construction.
ProblemMatcherError
Invalid or unsupported problem-matcher configuration.
ScopeBoundary
Parser lifecycle notification for a caller-owned scope.
ScopeKind
Provider-neutral unit that owns a related log stream.
Severity
Severity assigned by a parser or structured-input adapter.
Stream
Input channel within a scope.

Constants§

BUILTIN_MATCHER_OWNERS
Stable problem-matcher owners reserved by the built-in diagnostic pack.

Traits§

Parser
Deterministic, synchronous parser contract.
PathMapper
Pure provider-supplied path normalization performed before redaction.
Ranker
Provider-selectable ranking policy that never inspects raw log state.
Redactor
Infallible transformation applied to every untrusted returned string.

Functions§

builtin_parser_plan
Creates the immutable, versioned built-in parser order.
builtin_parser_plan_with_problem_matchers
Builds the default parser plan while replacing built-ins whose stable owner is also registered by a custom problem matcher.
deduplicate_lines
Exact line deduplication that preserves first-seen order.
normalize_terminal_text
Removes terminal control sequences and normalizes progress redraws to lines.
parse_go_diagnostic
Parses the standard Go compiler location form without depending on a particular diagnostic message or language setting.
reduce
Reduces one or more text inputs with deterministic parser and input order.
reduce_with_policy
Reduces batch inputs with caller-owned path mapping, redaction, and ranking.