linesmith 0.1.1

A Rust status line for Claude Code and other AI coding CLIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// A tight `loop {}` that trips the engine's `MAX_OPERATIONS` ceiling
// in microseconds — long before the 50ms wallclock deadline could
// fire. The deadline path is exercised at the unit-test layer
// (`src/plugins/engine.rs::past_deadline_aborts_long_running_script`,
// `src/plugins/segment.rs::deadline_abort_surfaces_clear_segment_error`)
// because injecting a past deadline through `RhaiSegment::render` is
// impossible: its RAII guard overwrites the thread-local before
// `call_fn`. This fixture pins the op-limit branch only.

const ID = "infinite_loop";

fn render(ctx) {
    loop {}
}