Expand description
jev with no terminal in the way: a page in, an answer page out.
The REPL is the place to shape a request; once it is shaped, the same session is something a script wants — in a pipe, in a Makefile, in CI. Everything here is the pure half of that: text in, text out, no terminal and no process, so a test can drive it without a PTY.
let session = headless::load("A payout failed.\n---\nis_urgent? Conveys urgency").unwrap();
println!("{}", headless::request_text(&session, "jev-latest"));Constants§
- COMMANDS
- The subcommands that run without a terminal, and what each one prints.
Functions§
- answers_
json - The raw body, for
--json: what arrived live, or the shape a mock answer would have arrived in. - answers_
text - The answer page: the same bars and labels the REPL draws, minus the colour.
- cached_
answers - The answers a cached body carries, lined up with the questions that were asked.
- check_
text - What
jev checksays about a page: every problem, not just the first. - code_
text - The session as code, for
jev rust. - cost_
text - The token table, priced when rates were supplied.
- is_
command - Whether
wordnames a subcommand, sojev <word>is not mistaken for a flag or a path. - live_
answers - The answers a live response carries, lined up with the questions that were asked.
- load
- Read a session from a sketch page or a request body.
- mock_
answers - Simulated answers, the same deterministic ones the REPL shows offline.
- request_
text - The exact body the SDK would POST.
- sendable
- Why this session cannot be sent yet, if it cannot.
- usage_
text - The one-line footer under an answer page: tokens, and money when the rates are known.
Type Aliases§
- Answered
- One question’s answer, or
Nonewhen nothing answered it.