sci-form-wasm 0.13.0 → 0.14.3

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  **High-performance 3D molecular conformer generation and quantum-chemistry-inspired property computation**, written in pure Rust.
4
4
 
5
- Generates chemically valid 3D coordinates from SMILES strings with RDKit-quality accuracy (ETKDGv2), and provides a full suite of computational chemistry tools: Extended Hückel Theory, electrostatic potentials, density of states, population analysis, molecular alignment, force field energy evaluation (UFF + MMFF94), partial charges, SASA, and materials framework assembly.
5
+ Generates chemically valid 3D coordinates from SMILES strings with RDKit-quality accuracy (ETKDGv2), and provides a full suite of computational chemistry tools: Extended Hückel Theory, semi-empirical quantum chemistry (PM3, PM3(tm), GFN0/GFN1/GFN2-xTB), ab-initio methods (HF-3c, UHF/ROHF, CISD), neural network potentials (ANI-2x, ANI-TM), electrostatic potentials, density of states, population analysis, molecular alignment, force field energy evaluation (UFF + MMFF94), partial charges, SASA, stereochemistry, NMR/IR/UV-Vis spectroscopy, CIF crystallography, and materials framework assembly.
6
6
 
7
7
  Native bindings for **Rust**, **Python**, **TypeScript/JavaScript (WASM)**, and a **cross-platform CLI**.
8
8
 
@@ -21,11 +21,33 @@ Native bindings for **Rust**, **Python**, **TypeScript/JavaScript (WASM)**, and
21
21
 
22
22
  ### Quantum Chemistry (EHT)
23
23
  - **Extended Hückel Theory** — Wolfsberg-Helmholtz Hamiltonian, Löwdin orthogonalization, HOMO/LUMO gaps
24
- - **Mulliken & Löwdin population analysis** — atomic orbital contributions per atom
24
+ - **Mulliken & Löwdin population analysis** — atomic orbital contributions per atom (parallel, Z=1–86 including lanthanides)
25
25
  - **Molecular dipole moment** — bond dipoles + lone-pair contributions in Debye
26
26
  - **Volumetric orbital grids** — STO-3G basis, chunked evaluation for large molecules, marching cubes isosurfaces
27
27
  - **Density of States** — total DOS + per-atom PDOS with Gaussian smearing, JSON export, MSE metric
28
28
 
29
+ ### Semi-Empirical & Tight-Binding Methods
30
+ - **PM3 / PM3(tm)** — NDDO semi-empirical SCF with Gaussian core-core corrections, heat of formation, HOMO/LUMO; transition metal support (Ti–Au)
31
+ - **GFN0/GFN1/GFN2-xTB** — Tight-binding DFT family with Broyden SCC mixing, shell-resolved charges, D3/D4 dispersion, halogen bonding
32
+ - **EEQ Charges** — Extended Electronegativity Equalization with improved Gaussian damping
33
+
34
+ ### Ab-Initio Methods
35
+ - **HF-3c** — Minimal-basis Hartree-Fock with D3-BJ dispersion, gCP, and SRB corrections
36
+ - **UHF / ROHF** — Unrestricted and restricted open-shell Hartree-Fock SCF with configurable level shift and damping
37
+ - **CISD** — Configuration Interaction Singles+Doubles for excited states
38
+ - **AO→MO Integral Transform** — 4-index integral transform with 4-fold symmetry for post-HF methods
39
+
40
+ ### Spectroscopy
41
+ - **UV-Vis** — sTDA-xTB vertical excitations, Gaussian/Lorentzian broadening
42
+ - **IR** — Numerical Hessian vibrational analysis, dipole intensities, thermochemistry (RRHO), peak assignment
43
+ - **NMR** — Chemical shifts via HOSE codes, J-coupling (Karplus 2J–5J including long-range), ensemble averaging
44
+
45
+ ### Machine Learning
46
+ - **ANI-2x / ANI-TM** — Neural network potentials with analytical gradients (24 elements including transition metals)
47
+ - **ML Properties** — LogP, molar refractivity, solubility, Lipinski Ro5, druglikeness
48
+ - **3D Descriptors** — WHIM, RDF, GETAWAY molecular descriptors
49
+ - **ML Models** — Decision Trees, Random Forest, Gradient Boosting with cross-validation
50
+
29
51
  ### Experimental RHF Engine
30
52
  - **Isolated `experimental_2` namespace** — next-generation Roothaan-Hall RHF engine without affecting stable APIs
31
53
  - **Analytical Gaussian integrals** — overlap, kinetic, nuclear attraction, core Hamiltonian, and two-electron ERIs
@@ -59,11 +81,13 @@ Native bindings for **Rust**, **Python**, **TypeScript/JavaScript (WASM)**, and
59
81
  - **Periodic unit cells** — lattice parameters (a, b, c, α, β, γ) to Cartesian tensor
60
82
  - **Secondary Building Units (SBUs)** — node/linker topology with coordination sites
61
83
  - **Framework assembly** — MOF-type crystal structure generation from SBUs + topology
84
+ - **230 space groups** — full ITC space group library with equivalent position generation
85
+ - **CIF import/export** — parse and write CIF 1.1 crystallographic files with uncertainty notation support
62
86
 
63
87
  ### Platform
64
88
  - **Multi-platform** — Rust lib, Python (PyO3), TypeScript/JS (WASM), CLI (Linux/macOS/Windows)
65
89
  - **Zero runtime dependencies** — pure Rust, no C++ toolchain needed
66
- - **SMILES + SMARTS** — full parser and substructure matcher; 60+ bracket elements
90
+ - **SMILES, SMARTS, SMIRKS** — full parser, substructure matcher, and reaction transforms (multi-component); 60+ bracket elements
67
91
 
68
92
  ---
69
93
 
@@ -73,9 +97,9 @@ Native bindings for **Rust**, **Python**, **TypeScript/JavaScript (WASM)**, and
73
97
 
74
98
  ```toml
75
99
  [dependencies]
76
- sci-form = "0.2"
100
+ sci-form = "0.13"
77
101
  # For parallel batch + ESP:
78
- sci-form = { version = "0.2", features = ["parallel"] }
102
+ sci-form = { version = "0.13", features = ["parallel"] }
79
103
  ```
80
104
 
81
105
  ```rust
@@ -321,7 +345,14 @@ More detailed coverage notes live in [TESTING.md](TESTING.md), and the broader p
321
345
  | `sci_form::compute_esp` | Electrostatic potential grid (Mulliken charges) |
322
346
  | `sci_form::compute_dos` | Density of states + PDOS (EHT orbital energies) |
323
347
  | `sci_form::compute_rmsd` | RMSD after Kabsch alignment |
348
+ | `sci_form::compute_pm3` | PM3/PM3(tm) semi-empirical SCF |
349
+ | `sci_form::compute_xtb` | GFN0-xTB tight-binding with Broyden SCC |
350
+ | `sci_form::compute_uhf` | Unrestricted Hartree-Fock SCF |
351
+ | `sci_form::compute_rohf` | Restricted open-shell Hartree-Fock SCF |
324
352
  | `sci_form::compute_uff_energy` | UFF force field energy evaluation |
353
+ | `sci_form::compute_mmff94_energy` | MMFF94 force field energy evaluation |
354
+ | `sci_form::parse_cif` | CIF crystallographic file import |
355
+ | `sci_form::write_cif` | CIF crystallographic file export |
325
356
  | `sci_form::create_unit_cell` | Periodic unit cell from lattice parameters |
326
357
  | `sci_form::assemble_framework` | MOF-type framework assembly from SBUs |
327
358
 
@@ -330,13 +361,23 @@ More detailed coverage notes live in [TESTING.md](TESTING.md), and the broader p
330
361
  | Module Path | Key API |
331
362
  |-------------|---------|
332
363
  | `sci_form::eht` | `solve_eht()`, `EhtResult`, `evaluate_orbital_on_grid_chunked()`, `marching_cubes()` |
364
+ | `sci_form::pm3` | `compute_pm3()`, PM3/PM3(tm) SCF, Gaussian core-core corrections |
365
+ | `sci_form::xtb` | `compute_xtb()`, GFN0 SCC with Broyden mixing; `xtb::gfn1`, `xtb::gfn2` |
366
+ | `sci_form::scf::uhf` | `run_uhf()`, `run_rohf()`, open-shell SCF with spin contamination analysis |
367
+ | `sci_form::hf` | `solve_hf3c()`, CISD, `mo_transform::ao_to_mo_transform()` |
333
368
  | `sci_form::esp` | `compute_esp_grid_parallel()`, `esp_color_map()`, `esp_grid_to_colors()`, `export_cube()`, `read_cube()` |
334
369
  | `sci_form::dos` | `compute_dos()`, `compute_pdos()`, `dos_mse()`, `export_dos_json()` |
335
370
  | `sci_form::alignment` | `align_coordinates()`, `align_quaternion()`, `compute_rmsd()` |
336
371
  | `sci_form::forcefield` | `build_uff_force_field()`, `Mmff94Builder::build()` |
337
372
  | `sci_form::charges::gasteiger` | `gasteiger_marsili_charges()` |
373
+ | `sci_form::charges_eeq` | `compute_eeq_charges()` — improved Gaussian damping |
338
374
  | `sci_form::surface::sasa` | `compute_sasa()` |
339
375
  | `sci_form::materials` | `UnitCell`, `Sbu`, `Topology`, `assemble_framework()` |
376
+ | `sci_form::materials::cif` | `parse_cif()`, `write_cif()`, `CifStructure`, `CifAtomSite` |
377
+ | `sci_form::nmr` | `predict_nmr_shifts()`, `predict_j_couplings()` (2J–5J) |
378
+ | `sci_form::smirks` | `apply_smirks()`, `apply_smirks_multi()`, `parse_smirks()` |
379
+ | `sci_form::stereo` | `analyze_stereo()` — R/S, E/Z, helical, atropisomeric |
380
+ | `sci_form::population` | `compute_population()`, `compute_bond_orders()`, parallel variants |
340
381
  | `sci_form::transport` | `pack_batch_arrow()`, `ChunkedIterator`, `WorkerTask` |
341
382
 
342
383
  ---
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "sci-form-wasm",
3
3
  "type": "module",
4
4
  "description": "WASM/TypeScript bindings for high-performance 3D molecular conformer generation",
5
- "version": "0.13.0",
5
+ "version": "0.14.3",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -154,6 +154,18 @@ export function alpha_compute_reaxff_gradient(elements_json: string, coords_flat
154
154
  */
155
155
  export function alpha_eri_ssss(shell_a_json: string, shell_b_json: string, shell_c_json: string, shell_d_json: string): string;
156
156
 
157
+ /**
158
+ * Plan which GSM backends are available for a molecule.
159
+ */
160
+ export function alpha_gsm_backend_plan(smiles: string): string;
161
+
162
+ /**
163
+ * Compare one or more GSM backends on the same geometry.
164
+ *
165
+ * `methods_json` can be `[]` to evaluate the full backend list.
166
+ */
167
+ export function alpha_gsm_compare_backends(smiles: string, coords_flat_json: string, methods_json: string): string;
168
+
157
169
  /**
158
170
  * Grow the reaction string and find the transition state node between
159
171
  * reactant and product geometries using UFF energy.
@@ -166,6 +178,12 @@ export function alpha_eri_ssss(shell_a_json: string, shell_b_json: string, shell
166
178
  */
167
179
  export function alpha_gsm_find_ts(smiles: string, reactant_coords_json: string, product_coords_json: string, config_json: string): string;
168
180
 
181
+ /**
182
+ * Grow the reaction string and find the transition state node between
183
+ * reactant and product geometries using the selected backend.
184
+ */
185
+ export function alpha_gsm_find_ts_with_method(smiles: string, reactant_coords_json: string, product_coords_json: string, config_json: string, method: string): string;
186
+
169
187
  /**
170
188
  * Interpolate a node along the reaction path at parameter t ∈ [0, 1].
171
189
  *
@@ -240,6 +258,22 @@ export function analyze_graph_features(smiles: string): string;
240
258
  */
241
259
  export function analyze_stereo(smiles: string, coords_flat: string): string;
242
260
 
261
+ /**
262
+ * Apply a SMIRKS reaction transform to a molecule.
263
+ *
264
+ * Returns JSON `SmirksResult`:
265
+ * ```json
266
+ * {
267
+ * "products": ["[C](=O)[O-]"],
268
+ * "atom_mapping": {0: 0, 1: 1},
269
+ * "n_transforms": 1,
270
+ * "success": true,
271
+ * "messages": []
272
+ * }
273
+ * ```
274
+ */
275
+ export function apply_smirks(smirks: string, smiles: string): string;
276
+
243
277
  /**
244
278
  * Assemble a framework crystal structure.
245
279
  *
@@ -502,6 +536,16 @@ export function compute_md_trajectory(smiles: string, coords_json: string, n_ste
502
536
  */
503
537
  export function compute_md_trajectory_nvt(smiles: string, coords_json: string, n_steps: number, dt_fs: number, seed: number, target_temp_k: number, thermostat_tau_fs: number): string;
504
538
 
539
+ /**
540
+ * Run velocity-Verlet MD with a configurable energy backend.
541
+ *
542
+ * `backend`: `"uff"`, `"pm3"`, `"xtb"`.
543
+ * `target_temp_k`: if > 0, enables Berendsen thermostat with 100 fs coupling.
544
+ *
545
+ * Returns JSON `MdTrajectory`.
546
+ */
547
+ export function compute_md_trajectory_with_method(smiles: string, coords_json: string, elements_json: string, n_steps: number, dt_fs: number, seed: number, target_temp_k: number, backend: string): string;
548
+
505
549
  /**
506
550
  * Predict molecular properties using ML proxy models.
507
551
  */
@@ -517,6 +561,15 @@ export function compute_mmff94_energy(smiles: string, coords: string): string;
517
561
  */
518
562
  export function compute_molecular_descriptors(smiles: string): string;
519
563
 
564
+ /**
565
+ * Build a simplified NEB path with a configurable energy backend.
566
+ *
567
+ * `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
568
+ *
569
+ * Returns JSON `NebPathResult` with images, energies, TS info.
570
+ */
571
+ export function compute_neb_path_with_method(smiles: string, start_coords_json: string, end_coords_json: string, n_images: number, n_iter: number, spring_k: number, step_size: number, method: string): string;
572
+
520
573
  /**
521
574
  * Generate a complete NMR spectrum.
522
575
  *
@@ -560,6 +613,20 @@ export function compute_pm3(elements_json: string, coords_flat_json: string): st
560
613
  */
561
614
  export function compute_population(elements: string, coords_flat: string): string;
562
615
 
616
+ /**
617
+ * Compute a full reaction dynamics path: embed reactant + product fragments,
618
+ * build oriented complexes, run NEB for the reactive zone, and generate
619
+ * approach/departure frames — all energies computed in Rust.
620
+ *
621
+ * `reactant_smiles_json`: JSON array of reactant SMILES, e.g. `["CC(=O)O", "N"]`.
622
+ * `product_smiles_json`: JSON array of product SMILES, e.g. `["CC(=O)N", "O"]`.
623
+ * `method`: energy backend — `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
624
+ * `config_json`: optional JSON [`ReactionDynamicsConfig`]; pass `""` or `"{}"` for defaults.
625
+ *
626
+ * Returns JSON [`ReactionDynamicsResult`] with frames, energies, TS info.
627
+ */
628
+ export function compute_reaction_dynamics(reactant_smiles_json: string, product_smiles_json: string, method: string, config_json: string): string;
629
+
563
630
  /**
564
631
  * Build empirical local-reactivity rankings.
565
632
  */
@@ -737,8 +804,33 @@ export function initThreadPool(num_threads: number): Promise<any>;
737
804
 
738
805
  export function init_webgpu(): Promise<string>;
739
806
 
807
+ /**
808
+ * List available NEB backend methods for a given set of elements.
809
+ *
810
+ * Returns JSON array of `{"method": string, "available": bool, "note": string}`.
811
+ */
812
+ export function list_neb_backends(elements_json: string): string;
813
+
740
814
  export function merge_experiment_results_wasm(): string;
741
815
 
816
+ /**
817
+ * Evaluate the energy (kcal/mol) and gradient of a geometry with a given NEB backend.
818
+ *
819
+ * `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
820
+ *
821
+ * Returns JSON `{"energy": <f64>, "gradient": [<f64>...], "method": "<str>"}`.
822
+ */
823
+ export function neb_energy_and_gradient(method: string, smiles: string, coords_json: string): string;
824
+
825
+ /**
826
+ * Evaluate the energy (kcal/mol) of a geometry with a given NEB backend.
827
+ *
828
+ * `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
829
+ *
830
+ * Returns JSON `{"energy": <f64>, "method": "<str>"}`.
831
+ */
832
+ export function neb_single_point_energy(method: string, smiles: string, coords_json: string): string;
833
+
742
834
  /**
743
835
  * Pack a batch of conformer results into Arrow-compatible columnar format.
744
836
  */
@@ -749,6 +841,22 @@ export function pack_batch_arrow(results_json: string): string;
749
841
  */
750
842
  export function parse_smiles(smiles: string): string;
751
843
 
844
+ /**
845
+ * Parse a SMIRKS reaction transform string.
846
+ *
847
+ * Returns JSON `SmirksTransform`:
848
+ * ```json
849
+ * {
850
+ * "reactant_smarts": ["[C:1](=O)[OH:2]"],
851
+ * "product_smarts": ["[C:1](=O)[O-:2]"],
852
+ * "atom_map": {1: 1, 2: 2},
853
+ * "bond_changes": [...],
854
+ * "smirks": "[C:1](=O)[OH:2]>>[C:1](=O)[O-:2]"
855
+ * }
856
+ * ```
857
+ */
858
+ export function parse_smirks(smirks: string): string;
859
+
752
860
  export function pipeline_validator_wasm(): boolean;
753
861
 
754
862
  /**
@@ -829,27 +937,38 @@ export interface InitOutput {
829
937
  readonly eht_density_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
830
938
  readonly eht_orbital_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
831
939
  readonly eht_density_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
832
- readonly init_webgpu: () => number;
833
- readonly webgpu_status: (a: number) => void;
834
- readonly compute_esp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
835
- readonly compute_esp_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
836
- readonly compute_esp_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
837
- readonly compute_esp_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
838
- readonly compute_esp_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
839
- readonly __wbg_livesimulation_free: (a: number, b: number) => void;
840
- readonly livesimulation_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
841
- readonly livesimulation_step: (a: number, b: number, c: number) => void;
842
- readonly livesimulation_apply_thermostat: (a: number, b: number, c: number, d: number) => void;
843
- readonly livesimulation_apply_steering_force: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
844
- readonly livesimulation_clear_steering: (a: number) => void;
845
- readonly livesimulation_num_atoms: (a: number) => number;
846
- readonly livesimulation_positions_json: (a: number, b: number) => void;
847
- readonly livesimulation_positions_ptr: (a: number) => number;
848
- readonly livesimulation_temperature: (a: number) => number;
849
- readonly livesimulation_potential_energy: (a: number) => number;
850
- readonly livesimulation_kinetic_energy: (a: number) => number;
851
- readonly livesimulation_step_count: (a: number) => number;
852
- readonly livesimulation_set_temperature: (a: number, b: number, c: bigint) => void;
940
+ readonly create_unit_cell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
941
+ readonly assemble_framework: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
942
+ readonly version: (a: number) => void;
943
+ readonly system_capabilities: (a: number, b: number, c: number) => void;
944
+ readonly system_method_plan: (a: number, b: number, c: number) => void;
945
+ readonly compare_methods: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
946
+ readonly chart_to_json_wasm: (a: number) => void;
947
+ readonly chart_from_json_wasm: (a: number, b: number, c: number) => void;
948
+ readonly validate_chart_schema_wasm: (a: number, b: number) => number;
949
+ readonly merge_experiment_results_wasm: (a: number) => void;
950
+ readonly experimental_result_to_sdf_wasm: (a: number) => void;
951
+ readonly experimental_result_to_json_wasm: (a: number) => void;
952
+ readonly benchmark_function_wasm: (a: number) => void;
953
+ readonly trace_function_calls_wasm: (a: number) => void;
954
+ readonly report_generator_wasm: (a: number) => void;
955
+ readonly pipeline_validator_wasm: () => number;
956
+ readonly cache_results_wasm: (a: number) => void;
957
+ readonly compute_uff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
958
+ readonly compute_uff_energy_with_aromatic_heuristics: (a: number, b: number, c: number, d: number, e: number) => void;
959
+ readonly compute_mmff94_energy: (a: number, b: number, c: number, d: number, e: number) => void;
960
+ readonly compute_empirical_pka: (a: number, b: number, c: number) => void;
961
+ readonly parse_smirks: (a: number, b: number, c: number) => void;
962
+ readonly apply_smirks: (a: number, b: number, c: number, d: number, e: number) => void;
963
+ readonly compute_neb_path_with_method: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
964
+ readonly neb_single_point_energy: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
965
+ readonly neb_energy_and_gradient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
966
+ readonly compute_md_trajectory_with_method: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
967
+ readonly list_neb_backends: (a: number, b: number, c: number) => void;
968
+ readonly compute_reaction_dynamics: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
969
+ readonly pack_batch_arrow: (a: number, b: number, c: number) => void;
970
+ readonly split_worker_tasks: (a: number, b: number, c: number, d: number, e: number) => void;
971
+ readonly estimate_workers: (a: number, b: number) => number;
853
972
  readonly compute_pm3: (a: number, b: number, c: number, d: number, e: number) => void;
854
973
  readonly compute_xtb: (a: number, b: number, c: number, d: number, e: number) => void;
855
974
  readonly compute_gfn1: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -860,6 +979,12 @@ export interface InitOutput {
860
979
  readonly compute_dft: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
861
980
  readonly compute_orbital_mesh: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
862
981
  readonly compute_orbital_mesh_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => number;
982
+ readonly compute_sssr: (a: number, b: number, c: number) => void;
983
+ readonly compute_ecfp: (a: number, b: number, c: number, d: number, e: number) => void;
984
+ readonly compute_tanimoto: (a: number, b: number, c: number, d: number, e: number) => void;
985
+ readonly butina_cluster: (a: number, b: number, c: number, d: number) => void;
986
+ readonly compute_rmsd_matrix: (a: number, b: number, c: number) => void;
987
+ readonly analyze_stereo: (a: number, b: number, c: number, d: number, e: number) => void;
863
988
  readonly compute_charges: (a: number, b: number, c: number) => void;
864
989
  readonly compute_sasa: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
865
990
  readonly compute_population: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -867,6 +992,14 @@ export interface InitOutput {
867
992
  readonly compute_dipole: (a: number, b: number, c: number, d: number, e: number) => void;
868
993
  readonly compute_dos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
869
994
  readonly compute_rmsd: (a: number, b: number, c: number, d: number, e: number) => void;
995
+ readonly compute_frontier_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
996
+ readonly compute_fukui_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
997
+ readonly compute_reactivity_ranking: (a: number, b: number, c: number, d: number, e: number) => void;
998
+ readonly compute_uv_vis_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
999
+ readonly analyze_graph_features: (a: number, b: number, c: number) => void;
1000
+ readonly compute_topology: (a: number, b: number, c: number, d: number, e: number) => void;
1001
+ readonly compute_nonpolar_solvation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
1002
+ readonly compute_gb_solvation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
870
1003
  readonly compute_stda_uvvis: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
871
1004
  readonly compute_vibrational_analysis: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
872
1005
  readonly compute_vibrational_analysis_uff: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
@@ -878,14 +1011,20 @@ export interface InitOutput {
878
1011
  readonly compute_nmr_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
879
1012
  readonly compute_nmr_spectrum_with_coords: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
880
1013
  readonly compute_hose_codes: (a: number, b: number, c: number, d: number) => void;
881
- readonly beta_compute_kpm_dos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
882
- readonly beta_compute_kpm_mulliken: (a: number, b: number, c: number, d: number, e: number) => void;
883
- readonly beta_compute_mbh_frequencies: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
884
- readonly beta_solve_eht_randnla: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
885
- readonly beta_psd_distance: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
886
- readonly beta_psd_projection: (a: number, b: number, c: number, d: number) => void;
887
- readonly beta_compute_cpm_charges: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
888
- readonly beta_modules_info: (a: number) => void;
1014
+ readonly __wbg_livesimulation_free: (a: number, b: number) => void;
1015
+ readonly livesimulation_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
1016
+ readonly livesimulation_step: (a: number, b: number, c: number) => void;
1017
+ readonly livesimulation_apply_thermostat: (a: number, b: number, c: number, d: number) => void;
1018
+ readonly livesimulation_apply_steering_force: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
1019
+ readonly livesimulation_clear_steering: (a: number) => void;
1020
+ readonly livesimulation_num_atoms: (a: number) => number;
1021
+ readonly livesimulation_positions_json: (a: number, b: number) => void;
1022
+ readonly livesimulation_positions_ptr: (a: number) => number;
1023
+ readonly livesimulation_temperature: (a: number) => number;
1024
+ readonly livesimulation_potential_energy: (a: number) => number;
1025
+ readonly livesimulation_kinetic_energy: (a: number) => number;
1026
+ readonly livesimulation_step_count: (a: number) => number;
1027
+ readonly livesimulation_set_temperature: (a: number, b: number, c: bigint) => void;
889
1028
  readonly alpha_compute_dft: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
890
1029
  readonly alpha_compute_reaxff_gradient: (a: number, b: number, c: number, d: number, e: number) => void;
891
1030
  readonly alpha_compute_reaxff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -898,58 +1037,38 @@ export interface InitOutput {
898
1037
  readonly alpha_rotate_dihedral_cga: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
899
1038
  readonly alpha_refine_torsion_cga: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
900
1039
  readonly alpha_gsm_interpolate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
1040
+ readonly alpha_gsm_backend_plan: (a: number, b: number, c: number) => void;
1041
+ readonly alpha_gsm_compare_backends: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
901
1042
  readonly alpha_gsm_find_ts: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
1043
+ readonly alpha_gsm_find_ts_with_method: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
902
1044
  readonly alpha_sdr_embed: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
903
1045
  readonly alpha_modules_info: (a: number) => void;
904
- readonly compute_uff_energy: (a: number, b: number, c: number, d: number, e: number) => void;
905
- readonly compute_uff_energy_with_aromatic_heuristics: (a: number, b: number, c: number, d: number, e: number) => void;
906
- readonly compute_mmff94_energy: (a: number, b: number, c: number, d: number, e: number) => void;
907
- readonly compute_empirical_pka: (a: number, b: number, c: number) => void;
908
- readonly compute_sssr: (a: number, b: number, c: number) => void;
909
- readonly compute_ecfp: (a: number, b: number, c: number, d: number, e: number) => void;
910
- readonly compute_tanimoto: (a: number, b: number, c: number, d: number, e: number) => void;
911
- readonly butina_cluster: (a: number, b: number, c: number, d: number) => void;
912
- readonly compute_rmsd_matrix: (a: number, b: number, c: number) => void;
913
- readonly version: (a: number) => void;
914
- readonly system_capabilities: (a: number, b: number, c: number) => void;
915
- readonly system_method_plan: (a: number, b: number, c: number) => void;
916
- readonly compare_methods: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
917
- readonly compute_md_trajectory: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
918
- readonly compute_md_trajectory_nvt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
919
- readonly compute_simplified_neb_path: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
920
- readonly search_conformers_with_uff: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
1046
+ readonly init_webgpu: () => number;
1047
+ readonly webgpu_status: (a: number) => void;
921
1048
  readonly embed: (a: number, b: number, c: number, d: number) => void;
922
1049
  readonly embed_coords: (a: number, b: number, c: number, d: number) => void;
923
1050
  readonly embed_coords_typed: (a: number, b: number, c: number) => number;
924
1051
  readonly embed_batch: (a: number, b: number, c: number, d: number) => void;
925
1052
  readonly parse_smiles: (a: number, b: number, c: number) => void;
926
- readonly chart_to_json_wasm: (a: number) => void;
927
- readonly chart_from_json_wasm: (a: number, b: number, c: number) => void;
928
- readonly validate_chart_schema_wasm: (a: number, b: number) => number;
929
- readonly merge_experiment_results_wasm: (a: number) => void;
930
- readonly experimental_result_to_sdf_wasm: (a: number) => void;
931
- readonly experimental_result_to_json_wasm: (a: number) => void;
932
- readonly benchmark_function_wasm: (a: number) => void;
933
- readonly trace_function_calls_wasm: (a: number) => void;
934
- readonly report_generator_wasm: (a: number) => void;
935
- readonly pipeline_validator_wasm: () => number;
936
- readonly cache_results_wasm: (a: number) => void;
937
- readonly create_unit_cell: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
938
- readonly assemble_framework: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
1053
+ readonly compute_esp: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
1054
+ readonly compute_esp_grid_typed: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
1055
+ readonly compute_esp_grid_info: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
1056
+ readonly compute_esp_grid_accelerated: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
1057
+ readonly compute_esp_grid_accelerated_typed: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
939
1058
  readonly compute_ml_properties: (a: number, b: number, c: number) => void;
940
1059
  readonly compute_molecular_descriptors: (a: number, b: number, c: number) => void;
941
- readonly compute_frontier_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
942
- readonly compute_fukui_descriptors: (a: number, b: number, c: number, d: number, e: number) => void;
943
- readonly compute_reactivity_ranking: (a: number, b: number, c: number, d: number, e: number) => void;
944
- readonly compute_uv_vis_spectrum: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
945
- readonly analyze_graph_features: (a: number, b: number, c: number) => void;
946
- readonly compute_topology: (a: number, b: number, c: number, d: number, e: number) => void;
947
- readonly compute_nonpolar_solvation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
948
- readonly compute_gb_solvation: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
949
- readonly analyze_stereo: (a: number, b: number, c: number, d: number, e: number) => void;
950
- readonly pack_batch_arrow: (a: number, b: number, c: number) => void;
951
- readonly split_worker_tasks: (a: number, b: number, c: number, d: number, e: number) => void;
952
- readonly estimate_workers: (a: number, b: number) => number;
1060
+ readonly compute_md_trajectory: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
1061
+ readonly compute_md_trajectory_nvt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
1062
+ readonly compute_simplified_neb_path: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
1063
+ readonly search_conformers_with_uff: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
1064
+ readonly beta_compute_kpm_dos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
1065
+ readonly beta_compute_kpm_mulliken: (a: number, b: number, c: number, d: number, e: number) => void;
1066
+ readonly beta_compute_mbh_frequencies: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
1067
+ readonly beta_solve_eht_randnla: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
1068
+ readonly beta_psd_distance: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
1069
+ readonly beta_psd_projection: (a: number, b: number, c: number, d: number) => void;
1070
+ readonly beta_compute_cpm_charges: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
1071
+ readonly beta_modules_info: (a: number) => void;
953
1072
  readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
954
1073
  readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
955
1074
  readonly wbg_rayon_poolbuilder_receiver: (a: number) => number;
@@ -957,11 +1076,11 @@ export interface InitOutput {
957
1076
  readonly initThreadPool: (a: number) => number;
958
1077
  readonly wbg_rayon_start_worker: (a: number) => void;
959
1078
  readonly validate_experimental_result_wasm: () => number;
960
- readonly __wasm_bindgen_func_elem_2827: (a: number, b: number) => void;
961
- readonly __wasm_bindgen_func_elem_661: (a: number, b: number, c: number, d: number) => void;
962
- readonly __wasm_bindgen_func_elem_575: (a: number, b: number, c: number, d: number) => void;
963
- readonly __wasm_bindgen_func_elem_2833: (a: number, b: number, c: number) => void;
964
- readonly __wasm_bindgen_func_elem_2833_2: (a: number, b: number, c: number) => void;
1079
+ readonly __wasm_bindgen_func_elem_2967: (a: number, b: number) => void;
1080
+ readonly __wasm_bindgen_func_elem_735: (a: number, b: number, c: number, d: number) => void;
1081
+ readonly __wasm_bindgen_func_elem_649: (a: number, b: number, c: number, d: number) => void;
1082
+ readonly __wasm_bindgen_func_elem_2973: (a: number, b: number, c: number) => void;
1083
+ readonly __wasm_bindgen_func_elem_2973_2: (a: number, b: number, c: number) => void;
965
1084
  readonly memory: WebAssembly.Memory;
966
1085
  readonly __wbindgen_export: (a: number, b: number) => number;
967
1086
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
package/sci_form_wasm.js CHANGED
@@ -437,6 +437,62 @@ export function alpha_eri_ssss(shell_a_json, shell_b_json, shell_c_json, shell_d
437
437
  }
438
438
  }
439
439
 
440
+ /**
441
+ * Plan which GSM backends are available for a molecule.
442
+ * @param {string} smiles
443
+ * @returns {string}
444
+ */
445
+ export function alpha_gsm_backend_plan(smiles) {
446
+ let deferred2_0;
447
+ let deferred2_1;
448
+ try {
449
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
450
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
451
+ const len0 = WASM_VECTOR_LEN;
452
+ wasm.alpha_gsm_backend_plan(retptr, ptr0, len0);
453
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
454
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
455
+ deferred2_0 = r0;
456
+ deferred2_1 = r1;
457
+ return getStringFromWasm0(r0, r1);
458
+ } finally {
459
+ wasm.__wbindgen_add_to_stack_pointer(16);
460
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
461
+ }
462
+ }
463
+
464
+ /**
465
+ * Compare one or more GSM backends on the same geometry.
466
+ *
467
+ * `methods_json` can be `[]` to evaluate the full backend list.
468
+ * @param {string} smiles
469
+ * @param {string} coords_flat_json
470
+ * @param {string} methods_json
471
+ * @returns {string}
472
+ */
473
+ export function alpha_gsm_compare_backends(smiles, coords_flat_json, methods_json) {
474
+ let deferred4_0;
475
+ let deferred4_1;
476
+ try {
477
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
478
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
479
+ const len0 = WASM_VECTOR_LEN;
480
+ const ptr1 = passStringToWasm0(coords_flat_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
481
+ const len1 = WASM_VECTOR_LEN;
482
+ const ptr2 = passStringToWasm0(methods_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
483
+ const len2 = WASM_VECTOR_LEN;
484
+ wasm.alpha_gsm_compare_backends(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
485
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
486
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
487
+ deferred4_0 = r0;
488
+ deferred4_1 = r1;
489
+ return getStringFromWasm0(r0, r1);
490
+ } finally {
491
+ wasm.__wbindgen_add_to_stack_pointer(16);
492
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
493
+ }
494
+ }
495
+
440
496
  /**
441
497
  * Grow the reaction string and find the transition state node between
442
498
  * reactant and product geometries using UFF energy.
@@ -477,6 +533,43 @@ export function alpha_gsm_find_ts(smiles, reactant_coords_json, product_coords_j
477
533
  }
478
534
  }
479
535
 
536
+ /**
537
+ * Grow the reaction string and find the transition state node between
538
+ * reactant and product geometries using the selected backend.
539
+ * @param {string} smiles
540
+ * @param {string} reactant_coords_json
541
+ * @param {string} product_coords_json
542
+ * @param {string} config_json
543
+ * @param {string} method
544
+ * @returns {string}
545
+ */
546
+ export function alpha_gsm_find_ts_with_method(smiles, reactant_coords_json, product_coords_json, config_json, method) {
547
+ let deferred6_0;
548
+ let deferred6_1;
549
+ try {
550
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
551
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
552
+ const len0 = WASM_VECTOR_LEN;
553
+ const ptr1 = passStringToWasm0(reactant_coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
554
+ const len1 = WASM_VECTOR_LEN;
555
+ const ptr2 = passStringToWasm0(product_coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
556
+ const len2 = WASM_VECTOR_LEN;
557
+ const ptr3 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
558
+ const len3 = WASM_VECTOR_LEN;
559
+ const ptr4 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
560
+ const len4 = WASM_VECTOR_LEN;
561
+ wasm.alpha_gsm_find_ts_with_method(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
562
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
563
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
564
+ deferred6_0 = r0;
565
+ deferred6_1 = r1;
566
+ return getStringFromWasm0(r0, r1);
567
+ } finally {
568
+ wasm.__wbindgen_add_to_stack_pointer(16);
569
+ wasm.__wbindgen_export4(deferred6_0, deferred6_1, 1);
570
+ }
571
+ }
572
+
480
573
  /**
481
574
  * Interpolate a node along the reaction path at parameter t ∈ [0, 1].
482
575
  *
@@ -736,6 +829,44 @@ export function analyze_stereo(smiles, coords_flat) {
736
829
  }
737
830
  }
738
831
 
832
+ /**
833
+ * Apply a SMIRKS reaction transform to a molecule.
834
+ *
835
+ * Returns JSON `SmirksResult`:
836
+ * ```json
837
+ * {
838
+ * "products": ["[C](=O)[O-]"],
839
+ * "atom_mapping": {0: 0, 1: 1},
840
+ * "n_transforms": 1,
841
+ * "success": true,
842
+ * "messages": []
843
+ * }
844
+ * ```
845
+ * @param {string} smirks
846
+ * @param {string} smiles
847
+ * @returns {string}
848
+ */
849
+ export function apply_smirks(smirks, smiles) {
850
+ let deferred3_0;
851
+ let deferred3_1;
852
+ try {
853
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
854
+ const ptr0 = passStringToWasm0(smirks, wasm.__wbindgen_export, wasm.__wbindgen_export2);
855
+ const len0 = WASM_VECTOR_LEN;
856
+ const ptr1 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
857
+ const len1 = WASM_VECTOR_LEN;
858
+ wasm.apply_smirks(retptr, ptr0, len0, ptr1, len1);
859
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
860
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
861
+ deferred3_0 = r0;
862
+ deferred3_1 = r1;
863
+ return getStringFromWasm0(r0, r1);
864
+ } finally {
865
+ wasm.__wbindgen_add_to_stack_pointer(16);
866
+ wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
867
+ }
868
+ }
869
+
739
870
  /**
740
871
  * Assemble a framework crystal structure.
741
872
  *
@@ -1881,6 +2012,48 @@ export function compute_md_trajectory_nvt(smiles, coords_json, n_steps, dt_fs, s
1881
2012
  }
1882
2013
  }
1883
2014
 
2015
+ /**
2016
+ * Run velocity-Verlet MD with a configurable energy backend.
2017
+ *
2018
+ * `backend`: `"uff"`, `"pm3"`, `"xtb"`.
2019
+ * `target_temp_k`: if > 0, enables Berendsen thermostat with 100 fs coupling.
2020
+ *
2021
+ * Returns JSON `MdTrajectory`.
2022
+ * @param {string} smiles
2023
+ * @param {string} coords_json
2024
+ * @param {string} elements_json
2025
+ * @param {number} n_steps
2026
+ * @param {number} dt_fs
2027
+ * @param {number} seed
2028
+ * @param {number} target_temp_k
2029
+ * @param {string} backend
2030
+ * @returns {string}
2031
+ */
2032
+ export function compute_md_trajectory_with_method(smiles, coords_json, elements_json, n_steps, dt_fs, seed, target_temp_k, backend) {
2033
+ let deferred5_0;
2034
+ let deferred5_1;
2035
+ try {
2036
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2037
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2038
+ const len0 = WASM_VECTOR_LEN;
2039
+ const ptr1 = passStringToWasm0(coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2040
+ const len1 = WASM_VECTOR_LEN;
2041
+ const ptr2 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2042
+ const len2 = WASM_VECTOR_LEN;
2043
+ const ptr3 = passStringToWasm0(backend, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2044
+ const len3 = WASM_VECTOR_LEN;
2045
+ wasm.compute_md_trajectory_with_method(retptr, ptr0, len0, ptr1, len1, ptr2, len2, n_steps, dt_fs, seed, target_temp_k, ptr3, len3);
2046
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2047
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2048
+ deferred5_0 = r0;
2049
+ deferred5_1 = r1;
2050
+ return getStringFromWasm0(r0, r1);
2051
+ } finally {
2052
+ wasm.__wbindgen_add_to_stack_pointer(16);
2053
+ wasm.__wbindgen_export4(deferred5_0, deferred5_1, 1);
2054
+ }
2055
+ }
2056
+
1884
2057
  /**
1885
2058
  * Predict molecular properties using ML proxy models.
1886
2059
  * @param {string} smiles
@@ -1956,6 +2129,47 @@ export function compute_molecular_descriptors(smiles) {
1956
2129
  }
1957
2130
  }
1958
2131
 
2132
+ /**
2133
+ * Build a simplified NEB path with a configurable energy backend.
2134
+ *
2135
+ * `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
2136
+ *
2137
+ * Returns JSON `NebPathResult` with images, energies, TS info.
2138
+ * @param {string} smiles
2139
+ * @param {string} start_coords_json
2140
+ * @param {string} end_coords_json
2141
+ * @param {number} n_images
2142
+ * @param {number} n_iter
2143
+ * @param {number} spring_k
2144
+ * @param {number} step_size
2145
+ * @param {string} method
2146
+ * @returns {string}
2147
+ */
2148
+ export function compute_neb_path_with_method(smiles, start_coords_json, end_coords_json, n_images, n_iter, spring_k, step_size, method) {
2149
+ let deferred5_0;
2150
+ let deferred5_1;
2151
+ try {
2152
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2153
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2154
+ const len0 = WASM_VECTOR_LEN;
2155
+ const ptr1 = passStringToWasm0(start_coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2156
+ const len1 = WASM_VECTOR_LEN;
2157
+ const ptr2 = passStringToWasm0(end_coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2158
+ const len2 = WASM_VECTOR_LEN;
2159
+ const ptr3 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2160
+ const len3 = WASM_VECTOR_LEN;
2161
+ wasm.compute_neb_path_with_method(retptr, ptr0, len0, ptr1, len1, ptr2, len2, n_images, n_iter, spring_k, step_size, ptr3, len3);
2162
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2163
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2164
+ deferred5_0 = r0;
2165
+ deferred5_1 = r1;
2166
+ return getStringFromWasm0(r0, r1);
2167
+ } finally {
2168
+ wasm.__wbindgen_add_to_stack_pointer(16);
2169
+ wasm.__wbindgen_export4(deferred5_0, deferred5_1, 1);
2170
+ }
2171
+ }
2172
+
1959
2173
  /**
1960
2174
  * Generate a complete NMR spectrum.
1961
2175
  *
@@ -2172,6 +2386,48 @@ export function compute_population(elements, coords_flat) {
2172
2386
  }
2173
2387
  }
2174
2388
 
2389
+ /**
2390
+ * Compute a full reaction dynamics path: embed reactant + product fragments,
2391
+ * build oriented complexes, run NEB for the reactive zone, and generate
2392
+ * approach/departure frames — all energies computed in Rust.
2393
+ *
2394
+ * `reactant_smiles_json`: JSON array of reactant SMILES, e.g. `["CC(=O)O", "N"]`.
2395
+ * `product_smiles_json`: JSON array of product SMILES, e.g. `["CC(=O)N", "O"]`.
2396
+ * `method`: energy backend — `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
2397
+ * `config_json`: optional JSON [`ReactionDynamicsConfig`]; pass `""` or `"{}"` for defaults.
2398
+ *
2399
+ * Returns JSON [`ReactionDynamicsResult`] with frames, energies, TS info.
2400
+ * @param {string} reactant_smiles_json
2401
+ * @param {string} product_smiles_json
2402
+ * @param {string} method
2403
+ * @param {string} config_json
2404
+ * @returns {string}
2405
+ */
2406
+ export function compute_reaction_dynamics(reactant_smiles_json, product_smiles_json, method, config_json) {
2407
+ let deferred5_0;
2408
+ let deferred5_1;
2409
+ try {
2410
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2411
+ const ptr0 = passStringToWasm0(reactant_smiles_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2412
+ const len0 = WASM_VECTOR_LEN;
2413
+ const ptr1 = passStringToWasm0(product_smiles_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2414
+ const len1 = WASM_VECTOR_LEN;
2415
+ const ptr2 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2416
+ const len2 = WASM_VECTOR_LEN;
2417
+ const ptr3 = passStringToWasm0(config_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
2418
+ const len3 = WASM_VECTOR_LEN;
2419
+ wasm.compute_reaction_dynamics(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
2420
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2421
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2422
+ deferred5_0 = r0;
2423
+ deferred5_1 = r1;
2424
+ return getStringFromWasm0(r0, r1);
2425
+ } finally {
2426
+ wasm.__wbindgen_add_to_stack_pointer(16);
2427
+ wasm.__wbindgen_export4(deferred5_0, deferred5_1, 1);
2428
+ }
2429
+ }
2430
+
2175
2431
  /**
2176
2432
  * Build empirical local-reactivity rankings.
2177
2433
  * @param {string} elements
@@ -3061,6 +3317,32 @@ export function init_webgpu() {
3061
3317
  return takeObject(ret);
3062
3318
  }
3063
3319
 
3320
+ /**
3321
+ * List available NEB backend methods for a given set of elements.
3322
+ *
3323
+ * Returns JSON array of `{"method": string, "available": bool, "note": string}`.
3324
+ * @param {string} elements_json
3325
+ * @returns {string}
3326
+ */
3327
+ export function list_neb_backends(elements_json) {
3328
+ let deferred2_0;
3329
+ let deferred2_1;
3330
+ try {
3331
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3332
+ const ptr0 = passStringToWasm0(elements_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3333
+ const len0 = WASM_VECTOR_LEN;
3334
+ wasm.list_neb_backends(retptr, ptr0, len0);
3335
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3336
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3337
+ deferred2_0 = r0;
3338
+ deferred2_1 = r1;
3339
+ return getStringFromWasm0(r0, r1);
3340
+ } finally {
3341
+ wasm.__wbindgen_add_to_stack_pointer(16);
3342
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
3343
+ }
3344
+ }
3345
+
3064
3346
  /**
3065
3347
  * @returns {string}
3066
3348
  */
@@ -3081,6 +3363,74 @@ export function merge_experiment_results_wasm() {
3081
3363
  }
3082
3364
  }
3083
3365
 
3366
+ /**
3367
+ * Evaluate the energy (kcal/mol) and gradient of a geometry with a given NEB backend.
3368
+ *
3369
+ * `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
3370
+ *
3371
+ * Returns JSON `{"energy": <f64>, "gradient": [<f64>...], "method": "<str>"}`.
3372
+ * @param {string} method
3373
+ * @param {string} smiles
3374
+ * @param {string} coords_json
3375
+ * @returns {string}
3376
+ */
3377
+ export function neb_energy_and_gradient(method, smiles, coords_json) {
3378
+ let deferred4_0;
3379
+ let deferred4_1;
3380
+ try {
3381
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3382
+ const ptr0 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3383
+ const len0 = WASM_VECTOR_LEN;
3384
+ const ptr1 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3385
+ const len1 = WASM_VECTOR_LEN;
3386
+ const ptr2 = passStringToWasm0(coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3387
+ const len2 = WASM_VECTOR_LEN;
3388
+ wasm.neb_energy_and_gradient(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
3389
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3390
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3391
+ deferred4_0 = r0;
3392
+ deferred4_1 = r1;
3393
+ return getStringFromWasm0(r0, r1);
3394
+ } finally {
3395
+ wasm.__wbindgen_add_to_stack_pointer(16);
3396
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
3397
+ }
3398
+ }
3399
+
3400
+ /**
3401
+ * Evaluate the energy (kcal/mol) of a geometry with a given NEB backend.
3402
+ *
3403
+ * `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
3404
+ *
3405
+ * Returns JSON `{"energy": <f64>, "method": "<str>"}`.
3406
+ * @param {string} method
3407
+ * @param {string} smiles
3408
+ * @param {string} coords_json
3409
+ * @returns {string}
3410
+ */
3411
+ export function neb_single_point_energy(method, smiles, coords_json) {
3412
+ let deferred4_0;
3413
+ let deferred4_1;
3414
+ try {
3415
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3416
+ const ptr0 = passStringToWasm0(method, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3417
+ const len0 = WASM_VECTOR_LEN;
3418
+ const ptr1 = passStringToWasm0(smiles, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3419
+ const len1 = WASM_VECTOR_LEN;
3420
+ const ptr2 = passStringToWasm0(coords_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3421
+ const len2 = WASM_VECTOR_LEN;
3422
+ wasm.neb_single_point_energy(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
3423
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3424
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3425
+ deferred4_0 = r0;
3426
+ deferred4_1 = r1;
3427
+ return getStringFromWasm0(r0, r1);
3428
+ } finally {
3429
+ wasm.__wbindgen_add_to_stack_pointer(16);
3430
+ wasm.__wbindgen_export4(deferred4_0, deferred4_1, 1);
3431
+ }
3432
+ }
3433
+
3084
3434
  /**
3085
3435
  * Pack a batch of conformer results into Arrow-compatible columnar format.
3086
3436
  * @param {string} results_json
@@ -3129,6 +3479,41 @@ export function parse_smiles(smiles) {
3129
3479
  }
3130
3480
  }
3131
3481
 
3482
+ /**
3483
+ * Parse a SMIRKS reaction transform string.
3484
+ *
3485
+ * Returns JSON `SmirksTransform`:
3486
+ * ```json
3487
+ * {
3488
+ * "reactant_smarts": ["[C:1](=O)[OH:2]"],
3489
+ * "product_smarts": ["[C:1](=O)[O-:2]"],
3490
+ * "atom_map": {1: 1, 2: 2},
3491
+ * "bond_changes": [...],
3492
+ * "smirks": "[C:1](=O)[OH:2]>>[C:1](=O)[O-:2]"
3493
+ * }
3494
+ * ```
3495
+ * @param {string} smirks
3496
+ * @returns {string}
3497
+ */
3498
+ export function parse_smirks(smirks) {
3499
+ let deferred2_0;
3500
+ let deferred2_1;
3501
+ try {
3502
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3503
+ const ptr0 = passStringToWasm0(smirks, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3504
+ const len0 = WASM_VECTOR_LEN;
3505
+ wasm.parse_smirks(retptr, ptr0, len0);
3506
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3507
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3508
+ deferred2_0 = r0;
3509
+ deferred2_1 = r1;
3510
+ return getStringFromWasm0(r0, r1);
3511
+ } finally {
3512
+ wasm.__wbindgen_add_to_stack_pointer(16);
3513
+ wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
3514
+ }
3515
+ }
3516
+
3132
3517
  /**
3133
3518
  * @returns {boolean}
3134
3519
  */
@@ -3789,7 +4174,7 @@ function __wbg_get_imports(memory) {
3789
4174
  const a = state0.a;
3790
4175
  state0.a = 0;
3791
4176
  try {
3792
- return __wasm_bindgen_func_elem_575(a, state0.b, arg0, arg1);
4177
+ return __wasm_bindgen_func_elem_649(a, state0.b, arg0, arg1);
3793
4178
  } finally {
3794
4179
  state0.a = a;
3795
4180
  }
@@ -3807,7 +4192,7 @@ function __wbg_get_imports(memory) {
3807
4192
  const a = state0.a;
3808
4193
  state0.a = 0;
3809
4194
  try {
3810
- return __wasm_bindgen_func_elem_575(a, state0.b, arg0, arg1);
4195
+ return __wasm_bindgen_func_elem_649(a, state0.b, arg0, arg1);
3811
4196
  } finally {
3812
4197
  state0.a = a;
3813
4198
  }
@@ -4093,18 +4478,18 @@ function __wbg_get_imports(memory) {
4093
4478
  return addHeapObject(ret);
4094
4479
  },
4095
4480
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
4096
- // Cast intrinsic for `Closure(Closure { dtor_idx: 121, function: Function { arguments: [Externref], shim_idx: 122, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4097
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2827, __wasm_bindgen_func_elem_2833);
4481
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 125, function: Function { arguments: [Externref], shim_idx: 126, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4482
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2967, __wasm_bindgen_func_elem_2973);
4098
4483
  return addHeapObject(ret);
4099
4484
  },
4100
4485
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
4101
- // Cast intrinsic for `Closure(Closure { dtor_idx: 121, function: Function { arguments: [Externref], shim_idx: 29, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4102
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2827, __wasm_bindgen_func_elem_661);
4486
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 125, function: Function { arguments: [Externref], shim_idx: 35, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4487
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2967, __wasm_bindgen_func_elem_735);
4103
4488
  return addHeapObject(ret);
4104
4489
  },
4105
4490
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
4106
- // Cast intrinsic for `Closure(Closure { dtor_idx: 121, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 122, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4107
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2827, __wasm_bindgen_func_elem_2833_2);
4491
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 125, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 126, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4492
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2967, __wasm_bindgen_func_elem_2973_2);
4108
4493
  return addHeapObject(ret);
4109
4494
  },
4110
4495
  __wbindgen_cast_0000000000000004: function(arg0) {
@@ -4143,7 +4528,7 @@ function __wbg_get_imports(memory) {
4143
4528
  __wbindgen_object_drop_ref: function(arg0) {
4144
4529
  takeObject(arg0);
4145
4530
  },
4146
- memory: memory || new WebAssembly.Memory({initial:22,maximum:16384,shared:true}),
4531
+ memory: memory || new WebAssembly.Memory({initial:24,maximum:16384,shared:true}),
4147
4532
  };
4148
4533
  return {
4149
4534
  __proto__: null,
@@ -4151,18 +4536,18 @@ function __wbg_get_imports(memory) {
4151
4536
  };
4152
4537
  }
4153
4538
 
4154
- function __wasm_bindgen_func_elem_2833(arg0, arg1, arg2) {
4155
- wasm.__wasm_bindgen_func_elem_2833(arg0, arg1, addHeapObject(arg2));
4539
+ function __wasm_bindgen_func_elem_2973(arg0, arg1, arg2) {
4540
+ wasm.__wasm_bindgen_func_elem_2973(arg0, arg1, addHeapObject(arg2));
4156
4541
  }
4157
4542
 
4158
- function __wasm_bindgen_func_elem_2833_2(arg0, arg1, arg2) {
4159
- wasm.__wasm_bindgen_func_elem_2833_2(arg0, arg1, addHeapObject(arg2));
4543
+ function __wasm_bindgen_func_elem_2973_2(arg0, arg1, arg2) {
4544
+ wasm.__wasm_bindgen_func_elem_2973_2(arg0, arg1, addHeapObject(arg2));
4160
4545
  }
4161
4546
 
4162
- function __wasm_bindgen_func_elem_661(arg0, arg1, arg2) {
4547
+ function __wasm_bindgen_func_elem_735(arg0, arg1, arg2) {
4163
4548
  try {
4164
4549
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4165
- wasm.__wasm_bindgen_func_elem_661(retptr, arg0, arg1, addHeapObject(arg2));
4550
+ wasm.__wasm_bindgen_func_elem_735(retptr, arg0, arg1, addHeapObject(arg2));
4166
4551
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4167
4552
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4168
4553
  if (r1) {
@@ -4173,8 +4558,8 @@ function __wasm_bindgen_func_elem_661(arg0, arg1, arg2) {
4173
4558
  }
4174
4559
  }
4175
4560
 
4176
- function __wasm_bindgen_func_elem_575(arg0, arg1, arg2, arg3) {
4177
- wasm.__wasm_bindgen_func_elem_575(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
4561
+ function __wasm_bindgen_func_elem_649(arg0, arg1, arg2, arg3) {
4562
+ wasm.__wasm_bindgen_func_elem_649(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
4178
4563
  }
4179
4564
 
4180
4565
 
Binary file