Skip to main content

Crate monoloop_testkit

Crate monoloop_testkit 

Source
Expand description

SPDX-License-Identifier: AGPL-3.0-or-later Copyright (C) Alexander R. Croft

Monoloop test kit — not a product component.

Console renderer, event distributor, and Driver composition helpers. Product crates must not depend on this package.

Structs§

ChatLine
One line in the projected chat.
ChatProjection
Full chat projection for a run.
ConsoleRenderRecord
One logical rendered record (before TTY wrapping).
ConsoleRenderer
Passive-only console renderer.
ConsoleRendererConfig
Configuration for the console renderer.
DriverRunReport
Result of a test driver run over raw dialect bytes.
EventDistributor
Fan-out hub for one run.
GrokServeOptions
How to launch a local Grok Build agent server.
HtmlReport
Built HTML report from a run’s canonical events.
HtmlReportParams
Options for HTML dump generation.
LiveAgyArtifactPaths
Artifact paths written by a live run.
LiveAgyRunOptions
Configuration for a single live agy prompt run.
LiveAgyRunReport
Report from a managed live agy run.
LiveClaudeArtifactPaths
Artifact paths written by a live run.
LiveClaudeRunOptions
Configuration for a single live Claude print run.
LiveClaudeRunReport
Report from a managed live Claude run.
LiveCodexArtifactPaths
Artifact paths written by a live run.
LiveCodexRunOptions
Configuration for a single live codex prompt run.
LiveCodexRunReport
Report from a managed live codex run.
LiveCursorArtifactPaths
Artifact paths written by a live Cursor run.
LiveCursorRunOptions
Configuration for a single live Cursor prompt run.
LiveCursorRunReport
Report from a managed live Cursor run.
LiveGrokArtifactPaths
Paths written by the live driver.
LiveGrokMultiSessionOptions
Options for a live multi-session qualification on one long-lived Grok serve.
LiveGrokMultiSessionReport
Report from run_live_grok_multi_session.
LiveGrokRunOptions
Configuration for a single live Grok prompt run.
LiveGrokRunReport
Full report from a managed live run.
LiveGrokSessionOutcome
Per-session outcome from a multi-session live run.
LiveZaiArtifactPaths
Artifact paths written by a live run.
LiveZaiRunOptions
Configuration for a single live zai headless run.
LiveZaiRunReport
Report from a managed live zai run.
ManagedGrokServe
Owned Grok serve child process.
PipelineParams
Optional parameters for a pipeline run (mirrors a --params style switch).
PipelineRawDump
Snapshot of raw input for a pipeline run.
ProjectChatOptions
Options for project_chat_with.
ProjectedTool
Compact tool snapshot for projection.
RawInputFrame
One raw frame as presented to the Interpreter (exact chunk bytes).
StdoutSink
Stdout sink (serialized).
SyncMemorySink
Sync-friendly memory sink.

Enums§

ChatRole
Role of a projected chat line.
ProjectionConfidence
Confidence of the projection relative to Interpreter emit order.
ProjectionStrategy
Strategy used to lay out the projected chat.
SubscriberPolicy
Policy for a subscriber.

Traits§

ConsoleSink
Sink for rendered lines.

Functions§

acp_binding
ACP dialect binding helper.
agy_acp_binding
Antigravity / agy ACP dialect binding (stdio NDJSON profile).
build_html_report
Build an HTML report from interpreter output events (canonical only).
claude_code_binding
Claude Code headless dialect binding (stream-json NDJSON profile).
codex_acp_binding
OpenAI Codex ACP dialect binding (stdio NDJSON profile).
collect_interpretation
Drain events until Ended.
cursor_acp_binding
Cursor ACP dialect binding (stdio NDJSON profile).
feed_chunks
Feed arbitrary fragmentation of the same logical stream.
interpret_and_render
Run interpretation and render to a memory sink; return (events, console text).
interpret_bytes
Interpret complete (or pre-concatenated) raw bytes under a dialect binding.
join_sentences_as_markdown
Join complete sentences into a single Markdown document body.
markdown_to_html
Convert Markdown to HTML (pulldown-cmark). Safe for untrusted text content.
project_chat
Project canonical Interpreter events into a chat-like flow (default options).
project_chat_with
Project with explicit options.
pump_interpreter_to_distributor
Bridge: drain an interpreter event stream into a distributor, then close.
render_all
Render events with a custom sink.
run_bytes_pipeline
Run Interpreter + Console + Empty Loop over pre-chunked raw bytes.
run_bytes_pipeline_with_params
Same as run_bytes_pipeline with full params (console + optional raw dump).
run_live_agy_prompt
Run one prompt against live Antigravity ACP and write review artifacts.
run_live_claude_prompt
Run one prompt against live Claude Code print mode and write review artifacts.
run_live_codex_prompt
Run one prompt against live Codex ACP and write review artifacts.
run_live_cursor_prompt
Run one prompt against a live Cursor ACP agent and write review artifacts.
run_live_grok_multi_session
One serve → two concurrent session/new + prompts → optional explicit load.
run_live_grok_prompt
Start Grok serve, run one prompt to completion, tear everything down.
run_live_zai_prompt
Run one prompt against live Z.ai CLI headless and write review artifacts.
test_text_binding
Test raw text dialect binding.
write_html_report
Write the full HTML page to path (parent dirs created as needed).
zai_cli_binding
Z.ai CLI headless dialect binding (OpenAI-chat NDJSON profile).