renkin 0.53.0 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -563,6 +563,11 @@ The JSON output includes `avg_nodes_expanded`, `avg_confidence`, `avg_convergenc
563
563
  | `plan_with_constraints` | Constraint-DSL planning (element filters, step limits, confidence thresholds) |
564
564
  | `estimate_diversity` | Route diversity and coverage metrics |
565
565
 
566
+ `find_routes` also accepts `search_mode: "coverage"` with a required
567
+ `coverage_templates` path. It runs the standard Stage 1 first and escalates
568
+ to Stage 2 only when Stage 1 finds no route; the response reports the selected
569
+ stage, timeout status, and per-stage elapsed time.
570
+
566
571
  The server auto-detects `data/building_blocks.smi` and `data/templates_extracted_5000.smi` in the working directory. Falls back to the embedded `DEFAULT_BUILDING_BLOCKS` / `default_rules()` defaults if not found (152 unique building blocks per `ChemEnv::bb_count()`, 21 handcrafted rules — verified 2026-08-29, after `heck_retro`'s removal (ring-fusion connectivity-collapse defect on internal alkenes fused to the same aromatic ring the leaving-group Br attaches to, confirmed by direct `apply_retro` reproduction on indene) dropped the count from 22, which itself followed `negishi_retro`'s and `grignard_addition_retro`'s removal (v0.36.0 rule-safety census: same ring-fused-atom-duplication defect as `aryl_amine_retro`/`buchwald_hartwig_retro`) dropping it from 24; a "509-BB / 20-rule" figure was previously documented here without verification).
567
572
 
568
573
  ```bash
@@ -602,7 +607,7 @@ Target SMILES
602
607
  ┌─────────────────────────┐
603
608
  │ chem_env.rs │ ← chematic wrapper
604
609
  │ - SMILES parse │ canonical-SMILES FxHashSet BB lookup (O(1))
605
- │ - 22 built-in + up to 50k via --templates │ fragment sanitization + ring-leak filter
610
+ │ - 21 built-in + up to 50k via --templates │ fragment sanitization + ring-leak filter
606
611
  │ - Building block check │ apply_retro memoization cache
607
612
  └────────────┬────────────┘
608
613
  │ par_iter (rayon / sequential on WASM)
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "kent-tokyo <kent-tokyo@users.noreply.github.com>"
6
6
  ],
7
7
  "description": "Ultra-fast retrosynthesis engine for computer-aided synthesis planning (CASP) — pure Rust, WASM-ready, Python bindings via PyO3",
8
- "version": "0.53.0",
8
+ "version": "0.54.0",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
package/renkin_bg.wasm CHANGED
Binary file