Skip to content

feat(console): interactive console + TracingTransport (session capture) - #8

Merged
CameronBrooks11 merged 1 commit into
mainfrom
feat/console
Jun 26, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
feat/console

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Closes #7.

Hands-on hardware bring-up + real-trace capture for the conformance corpus.

Changes

  • TracingTransport(inner, sink) — decorates any Transport, logging > tx / < rx lines. Record a real session → seed the corpus (feeds test: hardware validation — capture real traces, calibrate timing (needs-hardware) #4).
  • marlin-host console (python -m marlin_host / entry point): connect, print firmware/caps, then a REPL — bare G-code sends; :caps, :stream FILE, :estop, :quit. --log FILE records the session via TracingTransport.

Verification

  • ruff + pyright clean · 81 tests (_dispatch/_repl + tracing, all against FakeTransport) · python -m marlin_host --help works.

The only surface still pending hardware is the serial wire itself (SerialTransport), tracked under #4.

- TracingTransport decorates any Transport, logging `> tx` / `< rx` lines
  to a sink — record a real session to seed the conformance corpus.
- `marlin-host` / `python -m marlin_host` console: connect, print
  firmware/caps, then a REPL — bare G-code sends; `:caps`, `:stream FILE`,
  `:estop`, `:quit`. `--log FILE` records the session via TracingTransport.

Serves the interactive half of the use case and the hardware capture step.
Console dispatch/REPL are unit-tested against FakeTransport; the serial
wire is the only untested-pending-hardware surface.

Closes #7.
@CameronBrooks11
CameronBrooks11 merged commit 1a5ee96 into main Jun 26, 2026
5 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/console branch June 26, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: interactive console CLI + session tracing (corpus capture)

1 participant