fix(cli): remove F-09 spillover from F-12 branch, keep only wiki group
cli.py and config.py were accidentally contaminated with uncommitted F-09 changes (search_app restructure, rich ingest, mathpix/figures settings). This restores both files to main-baseline + F-12-only additions: - cli.py: wiki_app group (compile/list/check), restore @app.command search - config.py: wiki_dir, wiki_llm_model, wiki_llm_url, wiki_top_k only All 127 tests green, ruff+mypy clean. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -84,41 +84,6 @@ class Settings(BaseSettings):
|
||||
),
|
||||
)
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# F-09 Rich Parsing — MathPix + pix2tex + figures
|
||||
# ------------------------------------------------------------------
|
||||
mathpix_app_id: str | None = Field(
|
||||
default=None,
|
||||
description=(
|
||||
"MathPix application ID for the MathPix API "
|
||||
"(env var: MATHPIX_APP_ID). Optional — pix2tex is used as fallback."
|
||||
),
|
||||
)
|
||||
|
||||
mathpix_app_key: str | None = Field(
|
||||
default=None,
|
||||
description=(
|
||||
"MathPix application key for the MathPix API "
|
||||
"(env var: MATHPIX_APP_KEY). Optional — pix2tex is used as fallback."
|
||||
),
|
||||
)
|
||||
|
||||
pix2tex_fallback: bool = Field(
|
||||
default=True,
|
||||
description=(
|
||||
"Enable pix2tex LatexOCR as the local fallback for formula extraction "
|
||||
"when MathPix credentials are not set. Disable only for testing."
|
||||
),
|
||||
)
|
||||
|
||||
figures_dir: str = Field(
|
||||
default="figures/",
|
||||
description=(
|
||||
"Directory where extracted figure images (PNG) are written. "
|
||||
"Relative paths are resolved from the current working directory."
|
||||
),
|
||||
)
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# F-12 Wiki-Compile
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user