Expand description
xil scan β pre-flight check of a production script. Port of
XILP000_script_scanner.py.
StructsΒ§
ConstantsΒ§
- ALLOWED_
TAGS π - Native paralinguistic cues Chatterbox Turbo renders. Anything else is
silently stripped at generation time, which is what makes a near-miss
worth flagging. Mirrors
ALLOWED_TAGSinchatterbox_turbo_worker.py. - NEAR_
MISS_ πCUTOFF - Similarity floor for suggesting a Turbo cue. Genuine mistakes score
- TAG_
ALIASES π - Variants difflib scores too low because the wording diverges.
StaticsΒ§
- INLINE_
TAG π
FunctionsΒ§
- all_
scripts π glob(dir/**/*.md, recursive=True) or glob(dir/*.md).- arr π
- backfill_
cast π - build_
scan π - The full scan result, in the key order the JSON output uses.
- command
- The clap definition behind
--help, for man pages. - execute π
- format_
report π - harvest_
cast π - inner_
text π line[1:-1].strip()β the bracket interior, as the scanner slices it.- is_
all_ πcaps_ candidate - A bare ALL-CAPS line worth classifying.
- line_
list π - load_
and_ πnormalize - Read and apply the parserβs two-pass normalization.
- pad π
- Pad to
widthby character count, as Pythonβs:<Ndoes. - resolve_
speakers_ πpath --speakers, elseconfigs/{slug}/speakers.jsonwhen--shownames one.- run
- scan_
ambience_ πcoverage - Every looping AMBIENCE needs a stop marker.
- scan_
direction_ πtexts - Audit direction texts against an existing SFX config.
- scan_
paralinguistic_ πtags - Inline
[tags]that look like misspelled Turbo cues. - scan_
script π - Classify every ALL-CAPS candidate into section, speaker or unknown.
- scan_
span_ πpairing - Every
<marker> ENGAGESmust have a matchingDISENGAGES.