sci-form-wasm 2.2.0 → 3.0.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
@@ -9,18 +9,45 @@ Native bindings for **Rust**, **Python**, **TypeScript/JavaScript (WASM)**, and
9
9
  [![crates.io](https://img.shields.io/crates/v/sci-form)](https://crates.io/crates/sci-form)
10
10
  [![PyPI](https://img.shields.io/pypi/v/sciforma)](https://pypi.org/project/sciforma)
11
11
  [![npm](https://img.shields.io/npm/v/sci-form-wasm)](https://www.npmjs.com/package/sci-form-wasm)
12
- [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE)
13
-
14
- See also: [CHANGELOG.md](CHANGELOG.md) · [**Migrating to 2.0**](docs/guide/migration-2.0.md) · [Migrating to 1.0 (historical)](docs/guide/migration-1.0.md) · [Release checklist](docs/release-checklist-2.0.md) · [TESTING.md](TESTING.md) · [Roadmap: v2.x feature roadmap](docs/v2-roadmap.md) · [Dynamics & reactivity](docs/dynamics_reactivity_roadmap.md)
15
-
16
- > **Status: 2.0.0 — complete MMFF94, typed errors and promoted core modules.**
17
- > The library no longer panics on malformed input, the force-field results are
18
- > bit-for-bit reproducible regardless of the machine's core count, and every
19
- > public item is documented. Read the
20
- > [2.0 migration guide](docs/guide/migration-2.0.md) before upgrading from 1.x:
21
- > the root Rust API now returns `SciFormError`, and the validated experimental
22
- > modules moved to top-level core paths. The
23
- > [1.0 guide](docs/guide/migration-1.0.md) remains for the 0.15 → 1.0 step.
12
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](https://github.com/jigonzalez930209/sci-form/blob/main/LICENSE)
13
+
14
+ See also: [CHANGELOG.md](https://github.com/jigonzalez930209/sci-form/blob/main/CHANGELOG.md) · [**Migrating to 2.0**](https://jigonzalez930209.github.io/sci-form/guide/migration-2.0) · [Migrating to 1.0 (historical)](https://jigonzalez930209.github.io/sci-form/guide/migration-1.0) · [Release checklist](https://jigonzalez930209.github.io/sci-form/release-checklist-2.3) · [TESTING.md](https://github.com/jigonzalez930209/sci-form/blob/main/TESTING.md) · [Roadmap: v2.x feature roadmap](https://jigonzalez930209.github.io/sci-form/v2-roadmap) · [Dynamics & reactivity](https://jigonzalez930209.github.io/sci-form/dynamics_reactivity_roadmap) · [Maturity roadmap](https://github.com/jigonzalez930209/sci-form/blob/main/docs/maturity-roadmap.md)
15
+
16
+ > **Status: 3.0.0 — modular Stage 4 workspace, analytic xTB gradients, standard IO and lightweight WASM.**
17
+ > The 2.0 baseline removed panics on malformed input and made force-field
18
+ > results reproducible. 2.1 promoted GCMC, reaction networks and kMC to core;
19
+ > 2.2 promoted enhanced sampling and active learning. 2.3 ships all three v2
20
+ > waves together — PBE0/MP2, EPR/XPS, Raman/VCD/ROA, QM/MM, pKa/redox,
21
+ > FEP/BAR/MBAR, metadynamics/OPES, 3D-RISM, all-nuclide NMR, periodic
22
+ > KPM/RandNLA adapters and conformal active learning. The candidates that have
23
+ > not passed their L3/L4 promotion gate remain clearly labelled experimental;
24
+ > see the [2.3 release checklist](https://jigonzalez930209.github.io/sci-form/release-checklist-2.3). Read the [2.0 migration guide](https://jigonzalez930209.github.io/sci-form/guide/migration-2.0) before
25
+ > upgrading from 1.x; the [1.0 guide](https://jigonzalez930209.github.io/sci-form/guide/migration-1.0) remains for
26
+ > the 0.15 → 1.0 step.
27
+
28
+ ## Stage 4 workspace (v3.0, `dev`)
29
+
30
+ The Stage 4 architecture is in place: the library is now a Cargo workspace with
31
+ `sci-form-core`, `sci-form-conformer`, `sci-form-ff`, `sci-form-qm`,
32
+ `sci-form-spectroscopy`, `sci-form-dynamics` and the `sci-form` facade. The
33
+ facade preserves every previous `sci_form::*` path, while lightweight tools can
34
+ depend on a single sub-crate. Stage 4 also adds SDF/PDB/mmCIF/extended-XYZ/
35
+ QCSchema IO, SHA-256-verified external-weight MLIP loading, the one-SCC xTB
36
+ gradient engine, typed-array WASM hot paths and the 139 KB
37
+ `@sci-form/conformer` bundle.
38
+
39
+ See [docs/stage-4-implementation.md](docs/stage-4-implementation.md) for the
40
+ subtask-by-subtask report and reproducible commands.
41
+
42
+ ## Stability Matrix
43
+
44
+ | Tier | Feature Flag | Subsystems | Guarantee |
45
+ | :--- | :--- | :--- | :--- |
46
+ | **Stable** | *(default)* | ETKDG, UFF/MMFF94, EHT, PM3, GFN0/1/2-xTB, HF-3c, UHF/ROHF, CISD, EEQ, D3/D4, SASA, ALPB, CPM, EDL, IR/NMR/sTDA, SMIRKS, CIF/Materials | Production APIs cross-validated against RDKit / PySCF / MOPAC / tblite |
47
+ | **Beta** | *(core / `beta-*`)* | KPM, RandNLA, Riemannian PSD, MBH (`beta-mbh`), CGA, SDR, GSM, Kinetics, Live MD | Validated against external oracles; API stable within minor versions |
48
+ | **Experimental** | `experimental-ani`, `experimental-gpu`, `alpha-*` | ANI-2x/ANI-TM (`experimental-ani`, test weights only), wgpu GPU (`experimental-gpu`), v2 research (`alpha-*`) | Opt-in only; not included in default build |
49
+
50
+ See the full [Stability Matrix](docs/guide/stability-matrix.md) for per-module accuracy and valid use cases.
24
51
 
25
52
  ## Features
26
53
 
@@ -96,6 +123,14 @@ See also: [CHANGELOG.md](CHANGELOG.md) · [**Migrating to 2.0**](docs/guide/migr
96
123
  - **230 space groups** — full ITC space group library with equivalent position generation
97
124
  - **CIF import/export** — parse and write CIF 1.1 crystallographic files with uncertainty notation support
98
125
 
126
+ ### v2.3 research & electrochemistry
127
+ - **Electrochemistry** — explicit-pair pKa/redox cycles, EDL profiles and capacitance scans
128
+ - **Free energy & sampling** — FEP/BAR/MBAR, well-tempered metadynamics, OPES, GCMC and Gillespie kMC
129
+ - **Quantum extensions** — PBE0/3-21G, conventional MP2, mechanical-embedding QM/MM, EPR hyperfine, XPS and 3D-RISM
130
+ - **Spectroscopy** — Raman, VCD, ROA, all-nuclide GIAO NMR
131
+ - **Networks & ML** — SMIRKS/template reaction networks, GSM barrier refinement, conformal calibration and active learning
132
+ - **Periodic adapters** — k-meshes, Bloch sums, KPM DOS and randomized eigensolves
133
+
99
134
  ### Platform
100
135
  - **Multi-platform** — Rust lib, Python (PyO3), TypeScript/JS (WASM), CLI (Linux/macOS/Windows)
101
136
  - **Zero runtime dependencies** — pure Rust, no C++ toolchain needed
@@ -111,7 +146,7 @@ See also: [CHANGELOG.md](CHANGELOG.md) · [**Migrating to 2.0**](docs/guide/migr
111
146
  [dependencies]
112
147
  sci-form = "1.0"
113
148
  # For parallel batch + ESP:
114
- sci-form = { version = "2.0", features = ["parallel"] }
149
+ sci-form = { version = "3.0", features = ["parallel"] }
115
150
  ```
116
151
 
117
152
  ```rust
@@ -350,7 +385,7 @@ Current verified results on this repository state:
350
385
  | `cargo test --test regression test_experimental_comparison` | **54 passed, 0 failed** |
351
386
  | `cargo test --test regression test_extended_molecules` | **14 passed, 0 failed, 7 ignored** |
352
387
 
353
- More detailed coverage notes live in [TESTING.md](TESTING.md), and the broader project plan lives in the [documentation site](docs/index.md).
388
+ More detailed coverage notes live in [TESTING.md](https://github.com/jigonzalez930209/sci-form/blob/main/TESTING.md), and the broader project plan lives in the [documentation site](https://jigonzalez930209.github.io/sci-form/).
354
389
 
355
390
  ---
356
391
 
@@ -399,7 +434,7 @@ More detailed coverage notes live in [TESTING.md](TESTING.md), and the broader p
399
434
  | `sci_form::compute_rmsd` | RMSD after Kabsch alignment |
400
435
  | `sci_form::compute_pm3` | PM3/PM3(tm) semi-empirical SCF |
401
436
  | `sci_form::compute_xtb` | xTB tight binding — runs GFN2-xTB (same numbers as `compute_gfn2`) |
402
- | `sci_form::compute_pm3_gradient` / `compute_xtb_gradient` | Energy gradients (eV/Å): PM3 stationary-density (Pulay-free, no SCF per displacement), xTB warm-started central differences |
437
+ | `sci_form::compute_pm3_gradient` / `compute_xtb_gradient` | Energy gradients (eV/Å): PM3 stationary-density (Pulay-free, no SCF per displacement), GFN2 analytic fixed-density gradient |
403
438
  | `sci_form::compute_uhf` | Unrestricted Hartree-Fock SCF |
404
439
  | `sci_form::compute_rohf` | Restricted open-shell Hartree-Fock SCF |
405
440
  | `sci_form::compute_uff_energy` | UFF force field energy evaluation |
@@ -498,7 +533,7 @@ cargo clippy --all-targets -- -D warnings
498
533
  Use the provided bump script. It updates all version strings, commits, tags, and pushes:
499
534
 
500
535
  ```bash
501
- # Auto-increment patch (2.0.0 → 2.0.1)
536
+ # Auto-increment patch (2.3.0 → 2.3.1)
502
537
  ./scripts/bump_version.sh
503
538
 
504
539
  # Set a specific version
@@ -514,11 +549,14 @@ This updates versions in:
514
549
  - `crates/wasm/pkg/package.json`
515
550
  - `pkg/package.json` & `pkg-node/package.json`
516
551
 
517
- Then creates a `vX.Y.Z` git tag, which triggers the [release workflow](.github/workflows/release.yml) to publish to **crates.io**, **PyPI**, and **npm** automatically.
552
+ Then creates a `vX.Y.Z` git tag, which triggers the [release workflow](https://github.com/jigonzalez930209/sci-form/blob/main/.github/workflows/release.yml) to publish to **crates.io**, **PyPI**, and **npm** automatically.
518
553
 
519
554
  The workflow refuses to publish a tag that does not match the manifest
520
555
  versions, so a mismatch fails fast instead of shipping mislabelled artefacts.
521
- Before tagging, walk through the [release checklist](docs/release-checklist-2.0.md).
556
+ Before tagging, walk through the [release checklist](https://jigonzalez930209.github.io/sci-form/release-checklist-2.3).
557
+ The local gate builds the test binaries once and runs them in a bounded pool
558
+ (`SCI_FORM_TEST_JOBS`, default 8, x `SCI_FORM_TEST_THREADS`, default 3); set it to 1 to reproduce the historical
559
+ serial execution.
522
560
 
523
561
  **Required repository secrets:**
524
562
 
package/alpha/index.d.ts CHANGED
@@ -95,21 +95,6 @@ export function alpha_boys_function(n: number, x: number): string;
95
95
  */
96
96
  export function alpha_compute_aevs(elements_json: string, coords_flat_json: string, params_json: string): string;
97
97
 
98
- /**
99
- * Run a Kohn-Sham DFT single-point calculation.
100
- *
101
- * `method`: `"svwn"` (LDA) | `"pbe"` (GGA, default).
102
- *
103
- * Returns JSON `DftResult`:
104
- * ```json
105
- * { "energy": -1.12, "homo_energy": -0.5, "lumo_energy": 0.1, "gap": 0.6,
106
- * "converged": true, "n_basis": 5, "scf_iterations": 12,
107
- * "mulliken_charges": [...], "orbital_energies": [...],
108
- * "nuclear_repulsion": 0.72, "xc_energy": -0.3 }
109
- * ```
110
- */
111
- export function alpha_compute_dft(elements_json: string, coords_flat_json: string, method: string): string;
112
-
113
98
  /**
114
99
  * Solve EEM charges for a molecule using the ReaxFF charge model.
115
100
  *
@@ -95,21 +95,6 @@ export function alpha_boys_function(n: number, x: number): string;
95
95
  */
96
96
  export function alpha_compute_aevs(elements_json: string, coords_flat_json: string, params_json: string): string;
97
97
 
98
- /**
99
- * Run a Kohn-Sham DFT single-point calculation.
100
- *
101
- * `method`: `"svwn"` (LDA) | `"pbe"` (GGA, default).
102
- *
103
- * Returns JSON `DftResult`:
104
- * ```json
105
- * { "energy": -1.12, "homo_energy": -0.5, "lumo_energy": 0.1, "gap": 0.6,
106
- * "converged": true, "n_basis": 5, "scf_iterations": 12,
107
- * "mulliken_charges": [...], "orbital_energies": [...],
108
- * "nuclear_repulsion": 0.72, "xc_energy": -0.3 }
109
- * ```
110
- */
111
- export function alpha_compute_dft(elements_json: string, coords_flat_json: string, method: string): string;
112
-
113
98
  /**
114
99
  * Solve EEM charges for a molecule using the ReaxFF charge model.
115
100
  *
@@ -70,6 +70,151 @@ export class LiveSimulation {
70
70
  temperature(): number;
71
71
  }
72
72
 
73
+ /**
74
+ * Typed EHT result.
75
+ */
76
+ export class TypedEht {
77
+ private constructor();
78
+ free(): void;
79
+ [Symbol.dispose](): void;
80
+ /**
81
+ * MO coefficients, row-major `[ao * n_mo + mo]`.
82
+ */
83
+ readonly coefficients: Float64Array;
84
+ /**
85
+ * Orbital energies in eV, ascending.
86
+ */
87
+ readonly energies: Float64Array;
88
+ /**
89
+ * HOMO-LUMO gap in eV.
90
+ */
91
+ readonly gap: number;
92
+ /**
93
+ * HOMO energy in eV.
94
+ */
95
+ readonly homo_energy: number;
96
+ /**
97
+ * LUMO energy in eV.
98
+ */
99
+ readonly lumo_energy: number;
100
+ /**
101
+ * Number of basis functions (rows in `coefficients`).
102
+ */
103
+ readonly n_basis: number;
104
+ /**
105
+ * Number of valence electrons.
106
+ */
107
+ readonly n_electrons: number;
108
+ }
109
+
110
+ /**
111
+ * Typed embedding result: coordinates plus element numbers.
112
+ */
113
+ export class TypedEmbedding {
114
+ private constructor();
115
+ free(): void;
116
+ [Symbol.dispose](): void;
117
+ /**
118
+ * Flat coordinates `[x0,y0,z0,...]` in Å.
119
+ */
120
+ readonly coords: Float64Array;
121
+ /**
122
+ * Atomic numbers in atom order.
123
+ */
124
+ readonly elements: Uint8Array;
125
+ /**
126
+ * Number of atoms.
127
+ */
128
+ readonly num_atoms: number;
129
+ }
130
+
131
+ /**
132
+ * Typed force-field result: energy and Cartesian gradient.
133
+ */
134
+ export class TypedForceField {
135
+ private constructor();
136
+ free(): void;
137
+ [Symbol.dispose](): void;
138
+ /**
139
+ * Energy in kcal/mol.
140
+ */
141
+ readonly energy: number;
142
+ /**
143
+ * Flat gradient `[gx0,gy0,gz0,...]` in kcal/mol/Å.
144
+ */
145
+ readonly gradients: Float64Array;
146
+ }
147
+
148
+ /**
149
+ * Typed MD trajectory: all frames flattened into typed arrays.
150
+ */
151
+ export class TypedTrajectory {
152
+ private constructor();
153
+ free(): void;
154
+ [Symbol.dispose](): void;
155
+ /**
156
+ * Flat coordinates `[frame][atom][xyz]`.
157
+ */
158
+ readonly coords: Float64Array;
159
+ /**
160
+ * Timestep in femtoseconds.
161
+ */
162
+ readonly dt_fs: number;
163
+ /**
164
+ * Potential energy per frame in kcal/mol.
165
+ */
166
+ readonly energies: Float64Array;
167
+ /**
168
+ * Number of atoms per frame.
169
+ */
170
+ readonly n_atoms: number;
171
+ /**
172
+ * Number of frames.
173
+ */
174
+ readonly n_frames: number;
175
+ /**
176
+ * Temperature per frame in K.
177
+ */
178
+ readonly temperatures: Float64Array;
179
+ }
180
+
181
+ /**
182
+ * Typed xTB result: energies, charges and optional gradient.
183
+ */
184
+ export class TypedXtb {
185
+ private constructor();
186
+ free(): void;
187
+ [Symbol.dispose](): void;
188
+ /**
189
+ * Whether the SCC converged.
190
+ */
191
+ readonly converged: boolean;
192
+ /**
193
+ * Electronic energy in eV.
194
+ */
195
+ readonly electronic_energy: number;
196
+ /**
197
+ * Flat gradient in eV/Å; empty when the caller requested energy only.
198
+ */
199
+ readonly gradients: Float64Array;
200
+ /**
201
+ * Mulliken charges in e.
202
+ */
203
+ readonly mulliken_charges: Float64Array;
204
+ /**
205
+ * Orbital energies in eV.
206
+ */
207
+ readonly orbital_energies: Float64Array;
208
+ /**
209
+ * Repulsive energy in eV.
210
+ */
211
+ readonly repulsive_energy: number;
212
+ /**
213
+ * Total energy in eV.
214
+ */
215
+ readonly total_energy: number;
216
+ }
217
+
73
218
  /**
74
219
  * Propose active-learning labels from a JSON request.
75
220
  */
@@ -101,21 +246,6 @@ export function alpha_boys_function(n: number, x: number): string;
101
246
  */
102
247
  export function alpha_compute_aevs(elements_json: string, coords_flat_json: string, params_json: string): string;
103
248
 
104
- /**
105
- * Run a Kohn-Sham DFT single-point calculation.
106
- *
107
- * `method`: `"svwn"` (LDA) | `"pbe"` (GGA, default).
108
- *
109
- * Returns JSON `DftResult`:
110
- * ```json
111
- * { "energy": -1.12, "homo_energy": -0.5, "lumo_energy": 0.1, "gap": 0.6,
112
- * "converged": true, "n_basis": 5, "scf_iterations": 12,
113
- * "mulliken_charges": [...], "orbital_energies": [...],
114
- * "nuclear_repulsion": 0.72, "xc_energy": -0.3 }
115
- * ```
116
- */
117
- export function alpha_compute_dft(elements_json: string, coords_flat_json: string, method: string): string;
118
-
119
249
  /**
120
250
  * Solve EEM charges for a molecule using the ReaxFF charge model.
121
251
  *
@@ -614,7 +744,8 @@ export function build_bloch_hamiltonian_wasm(blocks_json: string, k_x: number, k
614
744
  * Build a periodic molecular graph from fractional coordinates and a unit cell.
615
745
  *
616
746
  * `cell_json`: JSON array `[a, b, c, alpha, beta, gamma]` (Å, degrees).
617
- * `bond_tolerance`: extra bonding tolerance in Å (0 = default 0.3).
747
+ * `bond_tolerance`: extra bonding tolerance in Å; `0` disables the extra
748
+ * tolerance (the Rust default of 0.3 Å is not applied on this surface).
618
749
  */
619
750
  export function build_periodic_molecule(elements_json: string, frac_coords_json: string, cell_json: string, bond_tolerance: number): string;
620
751
 
@@ -695,6 +826,20 @@ export function compute_aevs_tm(elements_json: string, coords_flat_json: string)
695
826
  */
696
827
  export function compute_all_nmr(elements: string, coords_flat: string, config_json: string): string;
697
828
 
829
+ /**
830
+ * Compute ALPB-style Born radii.
831
+ *
832
+ * Returns JSON `{radii, intrinsic}`.
833
+ */
834
+ export function compute_alpb_born_radii(elements: string, coords_flat: string, probe_radius: number): string;
835
+
836
+ /**
837
+ * Compute ALPB implicit solvation energy.
838
+ *
839
+ * Returns JSON `{electrostatic_energy, nonpolar_energy, total_energy, born_radii, alpb_factor}`.
840
+ */
841
+ export function compute_alpb_solvation(elements: string, coords_flat: string, charges: string, solvent_dielectric: number, probe_radius: number, surface_tension: number): string;
842
+
698
843
  /**
699
844
  * Compute ANI neural-network potential energy.
700
845
  */
@@ -725,8 +870,8 @@ export function compute_bond_orders(elements: string, coords_flat: string): stri
725
870
  /**
726
871
  * Build a capacitance scan chart (visualization payload).
727
872
  *
728
- * The interfacial charge is obtained by integrating the computed charge
729
- * density of every EDL profile in the scan.
873
+ * The interfacial charge is obtained from the model's potential-charge
874
+ * relation.
730
875
  *
731
876
  * Returns JSON ChartPayload with potential vs capacitance series.
732
877
  */
@@ -754,6 +899,20 @@ export function compute_charges_configured(smiles: string, max_iter: number, ini
754
899
  */
755
900
  export function compute_cisd(elements_json: string, coords_flat_json: string, n_states: number): string;
756
901
 
902
+ /**
903
+ * Compute CPM charges at a given electrochemical potential.
904
+ *
905
+ * Returns JSON `{charges, total_charge, grand_potential, electrostatic_energy, mu_ev, iterations, converged}`.
906
+ */
907
+ export function compute_cpm_charges(elements: string, coords_flat: string, mu_ev: number, dielectric: number): string;
908
+
909
+ /**
910
+ * Scan electrochemical surface over a potential range.
911
+ *
912
+ * Returns JSON `{mu_values, total_charge, free_energy, capacitance, all_converged}`.
913
+ */
914
+ export function compute_cpm_surface(elements: string, coords_flat: string, mu_min: number, mu_max: number, n_points: number, dielectric: number): string;
915
+
757
916
  /**
758
917
  * **ALPHA** — Run Kohn-Sham DFT calculation.
759
918
  *
@@ -933,7 +1092,7 @@ export function compute_gcmc_isotherm(framework_json: string, guest_json: string
933
1092
  *
934
1093
  * Returns JSON EDL profile result.
935
1094
  */
936
- export function compute_gcs_profile(surface_potential_v: number, ionic_strength_m: number, stern_thickness_a: number): string;
1095
+ export function compute_gcs_profile(surface_potential_v: number, ionic_strength_m: number, stern_thickness_a: number, temperature_k?: number | null): string;
937
1096
 
938
1097
  /**
939
1098
  * Compute GETAWAY 3D molecular descriptors.
@@ -963,14 +1122,14 @@ export function compute_giao_nmr(elements_json: string, coords_flat_json: string
963
1122
  *
964
1123
  * Returns JSON EDL profile result.
965
1124
  */
966
- export function compute_gouy_chapman_profile(surface_potential_v: number, ionic_strength_m: number): string;
1125
+ export function compute_gouy_chapman_profile(surface_potential_v: number, ionic_strength_m: number, temperature_k?: number | null): string;
967
1126
 
968
1127
  /**
969
1128
  * Compute Helmholtz-only profile.
970
1129
  *
971
1130
  * Returns JSON EDL profile result.
972
1131
  */
973
- export function compute_helmholtz_profile(surface_potential_v: number, ionic_strength_m: number): string;
1132
+ export function compute_helmholtz_profile(surface_potential_v: number, ionic_strength_m: number, temperature_k?: number | null): string;
974
1133
 
975
1134
  /**
976
1135
  * Run a HF-3c calculation with default configuration.
@@ -1059,6 +1218,11 @@ export function compute_md_trajectory_nvt(smiles: string, coords_json: string, n
1059
1218
  */
1060
1219
  export function compute_md_trajectory_nvt_seed64(smiles: string, coords_json: string, n_steps: number, dt_fs: number, seed: bigint, target_temp_k: number, thermostat_tau_fs: number): string;
1061
1220
 
1221
+ /**
1222
+ * Run NVT UFF dynamics and return all frames as typed arrays.
1223
+ */
1224
+ export function compute_md_trajectory_nvt_typed(smiles: string, coords: Float64Array, n_steps: number, dt_fs: number, seed: bigint, target_temp_k: number, thermostat_tau_fs: number): TypedTrajectory;
1225
+
1062
1226
  /**
1063
1227
  * Run short NVE molecular dynamics with UFF force field, 64-bit seed.
1064
1228
  *
@@ -1066,6 +1230,11 @@ export function compute_md_trajectory_nvt_seed64(smiles: string, coords_json: st
1066
1230
  */
1067
1231
  export function compute_md_trajectory_seed64(smiles: string, coords_json: string, n_steps: number, dt_fs: number, seed: bigint): string;
1068
1232
 
1233
+ /**
1234
+ * Run NVE UFF dynamics and return all frames as typed arrays.
1235
+ */
1236
+ export function compute_md_trajectory_typed(smiles: string, coords: Float64Array, n_steps: number, dt_fs: number, seed: bigint): TypedTrajectory;
1237
+
1069
1238
  /**
1070
1239
  * Run velocity-Verlet MD with a configurable energy backend.
1071
1240
  *
@@ -1113,6 +1282,11 @@ export function compute_mmff94_energy(smiles: string, coords: string): string;
1113
1282
  */
1114
1283
  export function compute_mmff94_energy_breakdown(smiles: string, coords: string): string;
1115
1284
 
1285
+ /**
1286
+ * Compute MMFF94 energy from a `Float64Array` coordinate buffer (no JSON).
1287
+ */
1288
+ export function compute_mmff94_energy_typed(smiles: string, coords: Float64Array): number;
1289
+
1116
1290
  /**
1117
1291
  * Compute molecular descriptors from SMILES.
1118
1292
  *
@@ -1379,6 +1553,14 @@ export function compute_trajectory_chart(smiles: string, reactant_coords_json: s
1379
1553
  */
1380
1554
  export function compute_uff_energy(smiles: string, coords: string): string;
1381
1555
 
1556
+ /**
1557
+ * Compute UFF energy and its analytic gradient in one pass.
1558
+ *
1559
+ * Returns a [`crate::typed::TypedForceField`] whose `gradients` getter is a
1560
+ * `Float64Array` in kcal/mol/Å.
1561
+ */
1562
+ export function compute_uff_energy_and_gradient_typed(smiles: string, coords: Float64Array): TypedForceField;
1563
+
1382
1564
  /**
1383
1565
  * Per-term-type UFF energy breakdown (kcal/mol).
1384
1566
  *
@@ -1388,6 +1570,11 @@ export function compute_uff_energy(smiles: string, coords: string): string;
1388
1570
  */
1389
1571
  export function compute_uff_energy_breakdown(smiles: string, coords: string): string;
1390
1572
 
1573
+ /**
1574
+ * Compute UFF energy from a `Float64Array` coordinate buffer (no JSON).
1575
+ */
1576
+ export function compute_uff_energy_typed(smiles: string, coords: Float64Array): number;
1577
+
1391
1578
  /**
1392
1579
  * Compute UFF energy with aromaticity-informed heuristic correction metadata.
1393
1580
  */
@@ -1447,6 +1634,15 @@ export function compute_xtb(elements_json: string, coords_flat_json: string): st
1447
1634
  */
1448
1635
  export function compute_xtb_gradient(elements_json: string, coords_flat_json: string): string;
1449
1636
 
1637
+ /**
1638
+ * Compute xTB and return typed energy, charges and optional gradient.
1639
+ *
1640
+ * When `with_gradient` is true the analytic gradient is evaluated as well and
1641
+ * exposed through the `gradients` getter (eV/Å). Without it the call is
1642
+ * energy-only and the gradient array is empty.
1643
+ */
1644
+ export function compute_xtb_typed(elements: Uint8Array, coords: Float64Array, with_gradient: boolean): TypedXtb;
1645
+
1450
1646
  /**
1451
1647
  * Fit a split-conformal calibration radius.
1452
1648
  */
@@ -1470,6 +1666,11 @@ export function detect_hapticity(elements_json: string, coords_flat_json: string
1470
1666
  */
1471
1667
  export function discover_reaction_network(config_json: string): string;
1472
1668
 
1669
+ /**
1670
+ * Canonical alias of [`discover_reaction_network`] for template-rule JSON.
1671
+ */
1672
+ export function discover_template_network(config_json: string): string;
1673
+
1473
1674
  /**
1474
1675
  * Run an EHT calculation on a molecule.
1475
1676
  *
@@ -1479,6 +1680,11 @@ export function discover_reaction_network(config_json: string): string;
1479
1680
  */
1480
1681
  export function eht_calculate(elements: string, coords_flat: string, k: number): string;
1481
1682
 
1683
+ /**
1684
+ * Solve EHT from typed buffers and return typed orbital arrays.
1685
+ */
1686
+ export function eht_calculate_typed(elements: Uint8Array, coords: Float64Array, k: number): TypedEht;
1687
+
1482
1688
  /**
1483
1689
  * Run EHT or route to UFF fallback based on support/confidence.
1484
1690
  */
@@ -1595,6 +1801,20 @@ export function embed_diverse(smiles: string, n_conformers: number, rmsd_cutoff:
1595
1801
  */
1596
1802
  export function embed_seed64(smiles: string, seed: bigint): string;
1597
1803
 
1804
+ /**
1805
+ * Generate a conformer and return typed buffers (no JSON).
1806
+ *
1807
+ * Coordinates are a `Float64Array`, elements a `Uint8Array`. This is the
1808
+ * JSON-free counterpart of [`embed`] and is bit-identical to it for the same
1809
+ * SMILES and seed.
1810
+ */
1811
+ export function embed_typed(smiles: string, seed: bigint): TypedEmbedding;
1812
+
1813
+ /**
1814
+ * 32-bit-seed variant of [`embed_typed`].
1815
+ */
1816
+ export function embed_typed_seed32(smiles: string, seed: number): TypedEmbedding;
1817
+
1598
1818
  /**
1599
1819
  * Estimate an alchemical free-energy difference from JSON samples.
1600
1820
  */
@@ -1655,7 +1875,12 @@ export function get_system_method_plan(elements: string): string;
1655
1875
  /**
1656
1876
  * List available NEB backend methods for a given set of elements.
1657
1877
  *
1878
+ * `available` means that every element in the input has parameters for that
1879
+ * backend. It does not guarantee SCF convergence; a supported composition can
1880
+ * still fail for an individual geometry.
1881
+ *
1658
1882
  * Returns JSON array of `{"method": string, "available": bool, "note": string}`.
1883
+ * Empty element lists and atomic numbers outside `1..=118` are rejected.
1659
1884
  */
1660
1885
  export function list_neb_backends(elements_json: string): string;
1661
1886
 
@@ -1981,6 +2206,9 @@ export function validate_electron_count(n_electrons: number, n_bands: number, n_
1981
2206
 
1982
2207
  /**
1983
2208
  * Check that the electron count fits into the available band/k-point states.
2209
+ *
2210
+ * Each band at each k-point is spin-degenerate and holds two electrons, so
2211
+ * the capacity is `2 * n_bands * n_kpoints`.
1984
2212
  */
1985
2213
  export function validate_electron_count_wasm(n_electrons: number, n_bands: number, n_kpoints: number): string;
1986
2214