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 presentationcjm_transcript_correction_tui.appcjm_transcript_correction_tui.clicjm_transcript_correction_tui.spine
API
cjm_transcript_correction_tui.app
CorrectionAppclass — The correction loop, v0 thinnest slice: document-order segment walk withload_tui_statefunction — Read the per-graph TUI sidecar state (last-focused positions).save_tui_statefunction — Merge one source's view state into the sidecar state file.selector_for_spinefunction — The selector value a picker choice persists (pure): the full skeletonspine_labelfunction — One picker row's config summary for a skeleton spine (pure).
cjm_transcript_correction_tui.cli
build_parserfunction — The TUI driver's argument surface (mirrors correction-core's run/review args).mainfunction — Parse args, run the correction loop (the app owns the event loop + teardown).
cjm_transcript_correction_tui.spine
ChunkRefclass — Where one Segment's VAD-chunk audio lives: the model-input WAV + the chunk-local span.SeamRefclass — A source-coordinate audio span across one fine-spine boundary (the g/GSpineViewclass — One Source's effective correction spine, cursor-windowed for the TUI.list_sourcesfunction — Enumerate the graph's Source nodes (the discovery corpus, 2ce81638).load_source_slicefunction — Decode a source-coordinate slice of the ORIGINAL media to playable samples.match_sourcesfunction — The --source selector (pure; shared by direct open and the picker's seed).open_stackfunction — Bootstrap the graph capability stack, resolving the db path (2ce81638).parse_entity_inputfunction — Parse the new-speaker editor line (pure). A leading?marks the entityparse_mark_inputfunction — Parse the M-editor mark grammar (pure; the DEC 2a231843 TUI gesture).plan_boundary_shiftfunction — Plan a ONE-WORD boundary shift (the [ / ] gesture unit).plan_chunk_insertfunction — Plan a chunk insertion into the seam after the cursor (the i gesture unit; pure).plan_chunk_splitfunction — Plan a chunk split at a caret position (the S gesture unit; pure).plan_time_nudgefunction — Plan a boundary-time nudge (the ,/. and </> gesture unit; pure).resolve_mark_class_tokenfunction — Resolve a leading digit token to its menu class (the M picker; pure).source_statusfunction — 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