ITADN
cj-mills/cjm-transcript-correction-tui
cj-mills/cjm-transcript-correction-tui · 文件
文件最后提交记录最后更新时间
README.md

cjm-transcript-correction-tui

The minimal presentation driver for cjm-transcript-correction-core: a document-order segment walk over the shared transcript graph with chunk audio playback, held-key boundary-shift gestures, inline text correction, and review markers — the human pass-1/pass-2 correction loop's UI. Kept a separate library from the headless core per the non-minimal-drivers-separate-libs rule; every correction write appends through to the workflow's sidecar journal.

Modules

  • cjm_transcript_correction_tui.__init__ — Keyboard-first TUI driver for the transcript-correction workflow — a presentation
  • cjm_transcript_correction_tui.app
  • cjm_transcript_correction_tui.cli
  • cjm_transcript_correction_tui.spine

API

cjm_transcript_correction_tui.app

  • CorrectionApp class — The correction loop, v0 thinnest slice: document-order segment walk with
  • load_tui_state function — Read the per-graph TUI sidecar state (last-focused positions).
  • save_tui_state function — Merge one source's view state into the sidecar state file.
  • selector_for_spine function — The selector value a picker choice persists (pure): the full skeleton
  • spine_label function — One picker row's config summary for a skeleton spine (pure).

cjm_transcript_correction_tui.cli

  • build_parser function — The TUI driver's argument surface (mirrors correction-core's run/review args).
  • main function — Parse args, run the correction loop (the app owns the event loop + teardown).

cjm_transcript_correction_tui.spine

  • ChunkRef class — Where one Segment's VAD-chunk audio lives: the model-input WAV + the chunk-local span.
  • SeamRef class — A source-coordinate audio span across one fine-spine boundary (the g/G
  • SpineView class — One Source's effective correction spine, cursor-windowed for the TUI.
  • list_sources function — Enumerate the graph's Source nodes (the discovery corpus, 2ce81638).
  • load_source_slice function — Decode a source-coordinate slice of the ORIGINAL media to playable samples.
  • match_sources function — The --source selector (pure; shared by direct open and the picker's seed).
  • open_stack function — Bootstrap the graph capability stack, resolving the db path (2ce81638).
  • parse_entity_input function — Parse the new-speaker editor line (pure). A leading ? marks the entity
  • parse_mark_input function — Parse the M-editor mark grammar (pure; the DEC 2a231843 TUI gesture).
  • plan_boundary_shift function — Plan a ONE-WORD boundary shift (the [ / ] gesture unit).
  • plan_chunk_insert function — Plan a chunk insertion into the seam after the cursor (the i gesture unit; pure).
  • plan_chunk_split function — Plan a chunk split at a caret position (the S gesture unit; pure).
  • plan_time_nudge function — Plan a boundary-time nudge (the ,/. and </> gesture unit; pure).
  • resolve_mark_class_token function — Resolve a leading digit token to its menu class (the M picker; pure).
  • source_status function — Correction-status-at-a-glance for one Source (the picker's detail row).

Dependencies

Depends on: cjm-context-graph-layer, cjm-substrate-tui-kit, cjm-transcript-correction-core, numpy, sounddevice, soundfile, textual