Skip to content

Commit 2c676ae

Browse files
ziffanclaude
andcommitted
docs: update CLAUDE.md with mypy fix note and local test quirk
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e1f7fe3 commit 2c676ae

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

CLAUDE.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,18 @@ NODE_OPTIONS=--use-system-ca npm install ...
169169

170170
## Current Status (v0.2.0 — as of 2026-05-10)
171171

172-
Phase 1–3 cleanup complete (CI hardening, Electron removal, SentenceChunker merged into sentence_id, docs restructured). 137 tests passing. Docker Compose support added. Retrieval tested end-to-end in Docker.
172+
Phase 1–3 cleanup complete (CI hardening, Electron removal, SentenceChunker merged into sentence_id, docs restructured). 137 tests passing (127 locally — 10 `TestTokenAwareChunker` skipped due to SSL/tiktoken download issue on corporate network; all pass in CI). Docker Compose support added. Retrieval tested end-to-end in Docker.
173173

174174
### Dependency Security Patches (2026-05-10)
175175

176176
- `mistune` bumped `3.0.2 → 3.2.1` (fixes CVE-2026-33079, CVE-2026-44897)
177177
- `axios` bumped `1.15.0 → 1.16.0` (fixes 13 high-severity CVEs)
178178
- Two CVEs on mistune without fix versions (CVE-2026-44708, CVE-2026-44896) — not exploitable here as usage is `renderer="ast"` only, not HTML rendering
179179

180+
### mypy Fix (2026-05-10)
181+
182+
`markdown_struct.py:45` — mistune 3.2.1 now exposes explicit return type `str | list[...]` for `md(text)`. Fixed by replacing `if not ast_nodes` with `if not isinstance(ast_nodes, list) or not ast_nodes`, which narrows the type and satisfies mypy.
183+
180184
### legal_id PDF Artifact Handling
181185

182186
PDF-converted Indonesian legal documents frequently have malformed line structure. Three known issues and their fixes:

0 commit comments

Comments
 (0)