sci-form-wasm 0.15.1 → 1.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/alpha/index.d.ts CHANGED
@@ -1,204 +1,411 @@
1
1
  /**
2
2
  * sci-form-wasm/alpha — TypeScript declarations.
3
3
  *
4
+ * GENERATED by `crates/wasm/js/generate-subpath-types.js` from the
5
+ * declarations of the build that produced this package. Do not edit by hand:
6
+ * the file is regenerated on every build, so it can never promise a function
7
+ * the binary does not contain.
8
+ *
4
9
  * All functions accept/return JSON strings except where noted.
5
10
  * Call `await init()` from the main `sci-form-wasm` package once before use.
6
11
  */
7
12
 
8
- // ── A1: Kohn-Sham DFT ─────────────────────────────────────────────────────
13
+ /**
14
+ * Persistent live simulation state accessible from JavaScript.
15
+ *
16
+ * The browser creates one instance via `live_simulation_create`, then calls
17
+ * `live_simulation_step` and reads the flat coordinate buffer each
18
+ * animation frame.
19
+ */
20
+ export class LiveSimulation {
21
+ free(): void;
22
+ [Symbol.dispose](): void;
23
+ /**
24
+ * Apply a harmonic steering force pulling atom `atom_index` toward `(tx, ty, tz)`.
25
+ */
26
+ apply_steering_force(atom_index: number, tx: number, ty: number, tz: number, spring_k: number): void;
27
+ /**
28
+ * Apply a Berendsen thermostat coupling towards `target_temp` K.
29
+ */
30
+ apply_thermostat(target_temp: number, tau_fs: number, dt_fs: number): void;
31
+ /**
32
+ * Clear all accumulated steering forces (call before next IMD frame).
33
+ */
34
+ clear_steering(): void;
35
+ /**
36
+ * Return current kinetic energy.
37
+ */
38
+ kinetic_energy(): number;
39
+ /**
40
+ * Create a new live simulation from SMILES, flat coordinates, and backend name.
41
+ *
42
+ * `backend`: `"uff"` | `"pm3"` | `"xtb"`.
43
+ */
44
+ constructor(smiles: string, coords_flat: string, backend: string);
45
+ /**
46
+ * Get the number of atoms.
47
+ */
48
+ num_atoms(): number;
49
+ /**
50
+ * Return current flat positions as a JSON array.
51
+ */
52
+ positions_json(): string;
53
+ /**
54
+ * Sync internal buffers and return a pointer to the flat positions array.
55
+ *
56
+ * The caller (JS side) can construct a `Float64Array` view over WASM memory
57
+ * at this pointer, with length = `num_atoms * 3`.
58
+ */
59
+ positions_ptr(): number;
60
+ /**
61
+ * Return current potential energy (from last force computation).
62
+ */
63
+ potential_energy(): number;
64
+ /**
65
+ * Set velocities from a Maxwell-Boltzmann distribution at `temperature` K.
66
+ */
67
+ set_temperature(temperature: number, seed: bigint): void;
68
+ /**
69
+ * Advance the simulation by `n_steps` with time step `dt_fs` (femtoseconds).
70
+ */
71
+ step(n_steps: number, dt_fs: number): void;
72
+ /**
73
+ * Return simulation step count.
74
+ */
75
+ step_count(): number;
76
+ /**
77
+ * Return current kinetic temperature in Kelvin.
78
+ */
79
+ temperature(): number;
80
+ }
81
+
82
+ /**
83
+ * Compute the Boys function F_n(x).
84
+ *
85
+ * Returns JSON: `{ "value": 0.9846 }`
86
+ */
87
+ export function alpha_boys_function(n: number, x: number): string;
88
+
89
+ /**
90
+ * Compute Atomic Environment Vectors (AEVs) for each atom.
91
+ *
92
+ * Uses default symmetry function parameters unless `params_json` is provided.
93
+ *
94
+ * Returns JSON: `{ "n_atoms": 5, "aev_length": 384, "aevs": [[...], [...]] }`
95
+ */
96
+ export function alpha_compute_aevs(elements_json: string, coords_flat_json: string, params_json: string): string;
9
97
 
10
98
  /**
11
99
  * Run a Kohn-Sham DFT single-point calculation.
12
- * @param elements_json JSON array of atomic numbers e.g. `"[6,1,1,1,1]"`
13
- * @param coords_flat_json JSON flat coords `"[x0,y0,z0,...]"`
14
- * @param method `"svwn"` (LDA) | `"pbe"` (GGA, default)
15
- * @returns JSON DftResult:
16
- * `{ energy, homo_energy, lumo_energy, gap, converged, n_basis,
17
- * scf_iterations, mulliken_charges, orbital_energies,
18
- * nuclear_repulsion, xc_energy }`
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
+ /**
114
+ * Solve EEM charges for a molecule using the ReaxFF charge model.
115
+ *
116
+ * Returns JSON: `{ "charges": [...], "total_charge": 0.0 }`
117
+ */
118
+ export function alpha_compute_eem_charges(elements_json: string, coords_flat_json: string): string;
119
+
120
+ /**
121
+ * Compute MLFF energy and forces using pre-configured element networks.
122
+ *
123
+ * `config_json` is a JSON object matching `MlffConfig`:
124
+ * ```json
125
+ * {
126
+ * "aev_params": { "radial_cutoff": 6.0, "angular_cutoff": 3.5, ... },
127
+ * "element_nets": {
128
+ * "1": { "layers": [[...weights...]], "biases": [[...]] },
129
+ * "6": { ... }
130
+ * }
131
+ * }
132
+ * ```
133
+ *
134
+ * Returns JSON: `{ "energy": -1.23, "atomic_energies": [...], "forces": [...] }`
19
135
  */
20
- export declare function alpha_compute_dft(
21
- elements_json: string,
22
- coords_flat_json: string,
23
- method?: string
24
- ): string;
136
+ export function alpha_compute_mlff(elements_json: string, coords_flat_json: string, config_json: string): string;
25
137
 
26
- // ── A2: ReaxFF ────────────────────────────────────────────────────────────
138
+ /**
139
+ * Compute ReaxFF energy components for a molecule (no gradient).
140
+ *
141
+ * Returns JSON with keys `bonded`, `coulomb`, `van_der_waals`, `total`.
142
+ */
143
+ export function alpha_compute_reaxff_energy(elements_json: string, coords_flat_json: string): string;
27
144
 
28
145
  /**
29
- * Compute ReaxFF energy and analytical gradient.
30
- * @returns JSON `{ energy_kcal_mol: number, gradient: number[] }`
146
+ * Compute ReaxFF energy and gradient for a molecule.
147
+ *
148
+ * Returns JSON:
149
+ * ```json
150
+ * { "energy_kcal_mol": 12.3,
151
+ * "gradient": [gx0, gy0, gz0, gx1, gy1, gz1, ...] }
152
+ * ```
31
153
  */
32
- export declare function alpha_compute_reaxff_gradient(
33
- elements_json: string,
34
- coords_flat_json: string
35
- ): string;
154
+ export function alpha_compute_reaxff_gradient(elements_json: string, coords_flat_json: string): string;
36
155
 
37
156
  /**
38
- * Compute ReaxFF energy components (no gradient).
39
- * @returns JSON `{ bonded, coulomb, van_der_waals, total }` in kcal/mol
157
+ * Compute a single (ss|ss) two-electron repulsion integral using Obara-Saika.
158
+ *
159
+ * `shell_a_json` / `shell_b_json` / `shell_c_json` / `shell_d_json` are JSON
160
+ * objects `{ "alpha": 1.0, "center": [x, y, z] }`.
161
+ *
162
+ * Returns JSON: `{ "eri": 4.37 }`
40
163
  */
41
- export declare function alpha_compute_reaxff_energy(
42
- elements_json: string,
43
- coords_flat_json: string
44
- ): string;
164
+ export function alpha_eri_ssss(shell_a_json: string, shell_b_json: string, shell_c_json: string, shell_d_json: string): string;
45
165
 
46
166
  /**
47
- * Compute EEM equilibrium point charges.
48
- * @returns JSON `{ charges: number[], total_charge: number }`
167
+ * Plan which GSM backends are available for a molecule.
49
168
  */
50
- export declare function alpha_compute_eem_charges(
51
- elements_json: string,
52
- coords_flat_json: string
53
- ): string;
169
+ export function alpha_gsm_backend_plan(smiles: string): string;
54
170
 
55
- // ── A3: MLFF ─────────────────────────────────────────────────────────────
171
+ /**
172
+ * Compare one or more GSM backends on the same geometry.
173
+ *
174
+ * `methods_json` can be `[]` to evaluate the full backend list.
175
+ */
176
+ export function alpha_gsm_compare_backends(smiles: string, coords_flat_json: string, methods_json: string): string;
56
177
 
57
178
  /**
58
- * Compute MLFF energy and forces using element-specific neural networks.
59
- * @param config_json JSON `MlffConfig` object
60
- * @returns JSON `{ energy: number, atomic_energies: number[], forces: number[] }`
179
+ * Grow the reaction string and find the transition state node between
180
+ * reactant and product geometries using UFF energy.
181
+ *
182
+ * Returns JSON `GsmResult`:
183
+ * ```json
184
+ * { "ts_coords": [...], "ts_energy": 12.3,
185
+ * "path_energies": [...], "n_nodes": 5, "converged": true }
186
+ * ```
61
187
  */
62
- export declare function alpha_compute_mlff(
63
- elements_json: string,
64
- coords_flat_json: string,
65
- config_json: string
66
- ): string;
188
+ export function alpha_gsm_find_ts(smiles: string, reactant_coords_json: string, product_coords_json: string, config_json: string): string;
67
189
 
68
190
  /**
69
- * Compute Atomic Environment Vectors (AEVs) for each atom.
70
- * @param params_json JSON `SymmetryFunctionParams` or `"{}"` for defaults
71
- * @returns JSON `{ n_atoms, aev_length, aevs: number[][] }`
191
+ * Grow the reaction string and find the transition state node between
192
+ * reactant and product geometries using the selected backend.
193
+ */
194
+ export function alpha_gsm_find_ts_with_method(smiles: string, reactant_coords_json: string, product_coords_json: string, config_json: string, method: string): string;
195
+
196
+ /**
197
+ * Interpolate a node along the reaction path at parameter t ∈ [0, 1].
198
+ *
199
+ * `reactant_json` / `product_json` — flat coordinate arrays.
200
+ *
201
+ * Returns JSON: `{ "coords": [...] }`
202
+ */
203
+ export function alpha_gsm_interpolate(reactant_json: string, product_json: string, t: number): string;
204
+
205
+ /**
206
+ * Return alpha module metadata.
207
+ *
208
+ * The module list is derived from the features the binary was compiled
209
+ * with, so it always describes what the package actually contains.
210
+ *
211
+ * Returns JSON: `{ "alpha_modules": ["dft", "reaxff", …],
212
+ * "stability": "alpha — experimental, …",
213
+ * "version": "1.0.0" }`
214
+ */
215
+ export function alpha_modules_info(): string;
216
+
217
+ /**
218
+ * EHT band structure along a k-path (`eht::band_structure::compute_band_structure`).
219
+ */
220
+ export function alpha_periodic_band_structure_eht(elements_json: string, coords_flat_json: string, lattice_json: string, config_json: string, n_electrons: number): string;
221
+
222
+ /**
223
+ * Bloch phase for a fractional k-point and a lattice translation.
224
+ *
225
+ * @param k_fractional_json JSON `[kx, ky, kz]`
226
+ * @param translation_json JSON `[tx, ty, tz]`
227
+ * @returns JSON Bloch phase
228
+ */
229
+ export function alpha_periodic_bloch_phase(k_fractional_json: string, translation_json: string): string;
230
+
231
+ /**
232
+ * Brillouin-zone weighted integral of a scalar field.
233
+ *
234
+ * @param values_json JSON array of scalars
235
+ * @param weights_json JSON array of k-point weights
236
+ * @returns the weighted integral
237
+ */
238
+ export function alpha_periodic_bz_integrate_scalar(values_json: string, weights_json: string): number;
239
+
240
+ /**
241
+ * Brillouin-zone weighted integral of a vector field.
242
+ *
243
+ * @param vectors_json JSON array of `[x, y, z]`
244
+ * @param weights_json JSON array of k-point weights
245
+ * @returns JSON `[x, y, z]` integral
246
+ */
247
+ export function alpha_periodic_bz_integrate_vector(vectors_json: string, weights_json: string): string;
248
+
249
+ /**
250
+ * Trace the Fermi-surface contour of real-space operator blocks in `kz = 0`.
251
+ *
252
+ * @param blocks_json JSON array of `{ "matrix": [[…]], "translation": [i, j, k] }`
253
+ * @param fermi_energy_ev Fermi energy in eV (`null`/`undefined` = median estimate)
254
+ * @param n_kx Number of kx samples (≥ 2)
255
+ * @param n_ky Number of ky samples (≥ 2)
256
+ * @returns JSON `FermiSurfaceContour`
72
257
  */
73
- export declare function alpha_compute_aevs(
74
- elements_json: string,
75
- coords_flat_json: string,
76
- params_json?: string
77
- ): string;
258
+ export function alpha_periodic_fermi_surface_from_bands(blocks_json: string, fermi_energy_ev: number | null | undefined, n_kx: number, n_ky: number): string;
78
259
 
79
- // ── A4: Obara-Saika ERIs ─────────────────────────────────────────────────
260
+ /**
261
+ * Interpolate the default high-symmetry k-path (`Γ → X → M → Γ`).
262
+ *
263
+ * @param n_points_per_segment Intervals per high-symmetry segment (≥ 1)
264
+ * @returns JSON `KPathStandard`
265
+ */
266
+ export function alpha_periodic_kpath_standard(n_points_per_segment: number): string;
80
267
 
81
268
  /**
82
- * Compute Boys function F_n(x).
83
- * @returns JSON `{ value: number }`
269
+ * Build a Monkhorst-Pack (or gamma-centred) k-mesh.
270
+ *
271
+ * @param config_json JSON `KMeshConfig` or `"{}"`
272
+ * @returns JSON k-mesh
84
273
  */
85
- export declare function alpha_boys_function(n: number, x: number): string;
274
+ export function alpha_periodic_monkhorst_pack(config_json: string): string;
86
275
 
87
276
  /**
88
- * Compute a (ss|ss) two-electron repulsion integral.
89
- * Each shell JSON: `{ "alpha": number, "center": [x, y, z] }`
90
- * @returns JSON `{ eri: number }`
277
+ * Validate the electron count implied by a periodic DOS result.
278
+ *
279
+ * @param dos_json JSON `PeriodicKpmDosResult`
280
+ * @param fermi_energy_ev Fermi energy in eV
281
+ * @param expected_electrons Expected number of electrons
282
+ * @returns the number of electrons found
91
283
  */
92
- export declare function alpha_eri_ssss(
93
- shell_a_json: string,
94
- shell_b_json: string,
95
- shell_c_json: string,
96
- shell_d_json: string
97
- ): string;
284
+ export function alpha_periodic_validate_electron_count(dos_json: string, fermi_energy_ev: number, expected_electrons: number): number;
98
285
 
99
286
  /**
100
- * Compute Schwarz pre-screening upper bound Q_ab = √⟨ab|ab⟩.
101
- * @returns JSON `{ schwarz_bound: number }`
287
+ * Validate that the k-mesh weights sum to one.
288
+ *
289
+ * @param kmesh_json JSON `KMesh`
290
+ * @param tol Tolerance
291
+ * @returns `true` when the weights are normalised within `tol`
102
292
  */
103
- export declare function alpha_schwarz_bound(
104
- alpha: number,
105
- center_a_json: string,
106
- beta: number,
107
- center_b_json: string
108
- ): string;
293
+ export function alpha_periodic_validate_kmesh_weights(kmesh_json: string, tol: number): boolean;
109
294
 
110
- // ── A5: CGA Motor Algebra ────────────────────────────────────────────────
295
+ /**
296
+ * Refine a single dihedral torsion to a target angle using CGA.
297
+ *
298
+ * `smiles` — SMILES string for bond connectivity.
299
+ * `torsion_indices_json` — 4 atom indices [i, j, k, l].
300
+ * `target_angle_rad` — target dihedral angle in radians.
301
+ *
302
+ * Returns JSON: `{ "coords": [...] }`
303
+ */
304
+ export function alpha_refine_torsion_cga(elements_json: string, coords_flat_json: string, smiles: string, torsion_indices_json: string, target_angle_rad: number): string;
305
+
306
+ /**
307
+ * Build an Arrhenius chart from a JSON array of `ElementaryRateResult`.
308
+ *
309
+ * @param results_json JSON array of `ElementaryRateResult`
310
+ * @returns JSON chart payload
311
+ */
312
+ export function alpha_render_arrhenius_chart(results_json: string): string;
111
313
 
112
314
  /**
113
- * Rotate a sub-tree of atoms around a bond using a CGA motor.
114
- * @param subtree_indices_json JSON array of atom indices to rotate
115
- * @param axis_a_json / axis_b_json `[x, y, z]` of axis endpoints
116
- * @param angle_rad Rotation angle in radians
117
- * @returns JSON `{ coords: number[] }`
315
+ * Build a band-structure chart from a `BandStructureAdapterResult` JSON payload.
316
+ *
317
+ * @param bs_json JSON `BandStructureAdapterResult`
318
+ * @returns JSON chart payload
118
319
  */
119
- export declare function alpha_rotate_dihedral_cga(
120
- coords_flat_json: string,
121
- subtree_indices_json: string,
122
- axis_a_json: string,
123
- axis_b_json: string,
124
- angle_rad: number
125
- ): string;
320
+ export function alpha_render_band_structure_chart(bs_json: string): string;
126
321
 
127
322
  /**
128
- * Refine a dihedral to a target angle using CGA.
129
- * @param torsion_indices_json JSON `[i, j, k, l]`
130
- * @returns JSON `{ coords: number[] }`
323
+ * Build a capacitance-scan chart from a `CpmEdlScanResult` JSON payload.
324
+ *
325
+ * @param scan_json JSON `CpmEdlScanResult`
326
+ * @returns JSON chart payload
131
327
  */
132
- export declare function alpha_refine_torsion_cga(
133
- elements_json: string,
134
- coords_flat_json: string,
135
- smiles: string,
136
- torsion_indices_json: string,
137
- target_angle_rad: number
138
- ): string;
328
+ export function alpha_render_capacitance_scan_chart(scan_json: string): string;
139
329
 
140
- // ── A6: Growing String Method ─────────────────────────────────────────────
330
+ /**
331
+ * Build an EDL profile chart from an `EdlProfileResult` JSON payload.
332
+ *
333
+ * @param profile_json JSON `EdlProfileResult`
334
+ * @returns JSON chart payload
335
+ */
336
+ export function alpha_render_edl_profile_chart(profile_json: string): string;
141
337
 
142
338
  /**
143
- * Interpolate a reaction path node at t ∈ [0, 1].
144
- * @returns JSON `{ coords: number[] }`
339
+ * Build GSM path trajectory frames from coords + energies JSON payloads.
340
+ *
341
+ * @param coords_json JSON array of flat coordinate frames
342
+ * @param energies_json JSON array of frame energies
343
+ * @returns JSON array of trajectory frames
145
344
  */
146
- export declare function alpha_gsm_interpolate(
147
- reactant_json: string,
148
- product_json: string,
149
- t: number
150
- ): string;
345
+ export function alpha_render_gsm_path_trajectory(coords_json: string, energies_json: string): string;
151
346
 
152
347
  /**
153
- * Find transition state using Growing String Method with UFF energy.
154
- * @param config_json JSON `GsmConfig` or `"{}"`
155
- * @returns JSON `GsmResult`:
156
- * `{ ts_coords, ts_energy, path_energies, n_nodes, converged }`
348
+ * Build a microkinetic population chart from a `MicrokineticTrace` JSON payload.
349
+ *
350
+ * @param trace_json JSON `MicrokineticTrace`
351
+ * @returns JSON chart payload
157
352
  */
158
- export declare function alpha_gsm_find_ts(
159
- smiles: string,
160
- reactant_coords_json: string,
161
- product_coords_json: string,
162
- config_json?: string
163
- ): string;
353
+ export function alpha_render_microkinetic_population_chart(trace_json: string): string;
164
354
 
165
- // ── A7: SDR Embedding ────────────────────────────────────────────────────
355
+ /**
356
+ * Pack a chart payload into the columnar transport format.
357
+ *
358
+ * @param chart_json JSON `ChartPayload`
359
+ * @returns JSON packed batch
360
+ */
361
+ export function alpha_render_pack_chart_payload(chart_json: string): string;
166
362
 
167
363
  /**
168
- * Embed a molecule from pairwise distances using Semidefinite Relaxation.
169
- * @param distance_pairs_json JSON `[[i, j, d_ij], ...]`
170
- * @param n_atoms Total atom count
171
- * @param config_json JSON `SdrConfig` or `"{}"`
172
- * @returns JSON `{ coords, residual, converged, iterations }`
364
+ * Build a periodic-DOS chart from a `PeriodicKpmDosResult` JSON payload.
365
+ *
366
+ * @param dos_json JSON `PeriodicKpmDosResult`
367
+ * @returns JSON chart payload
173
368
  */
174
- export declare function alpha_sdr_embed(
175
- distance_pairs_json: string,
176
- n_atoms: number,
177
- config_json?: string
178
- ): string;
369
+ export function alpha_render_periodic_dos_chart(dos_json: string): string;
179
370
 
180
- // ── A8: Live MD ───────────────────────────────────────────────────────────
371
+ /**
372
+ * Verify a chart payload survives a pack/unpack round trip.
373
+ *
374
+ * @param chart_json JSON `ChartPayload`
375
+ * @param tol Comparison tolerance
376
+ * @returns `true` when the round trip is lossless within `tol`
377
+ */
378
+ export function alpha_render_verify_chart_round_trip(chart_json: string, tol: number): boolean;
181
379
 
182
- /** Live interactive molecular dynamics simulation handle. */
183
- export declare class LiveSimulation {
184
- constructor(smiles: string, coords_flat: string, backend: string);
185
- step(n_steps: number, dt_fs: number): void;
186
- apply_thermostat(target_temp: number, coupling: number): void;
187
- apply_steering_force(atom_index: number, target: [number, number, number], k: number): void;
188
- clear_steering(): void;
189
- positions_json(): string;
190
- positions_ptr(): number;
191
- temperature(): number;
192
- potential_energy(): number;
193
- kinetic_energy(): number;
194
- step_count(): number;
195
- set_temperature(temp: number): void;
196
- }
380
+ /**
381
+ * Apply a CGA dihedral rotation to a sub-tree of atoms.
382
+ *
383
+ * `coords_flat_json` — flat [x0,y0,z0,...] for all atoms.
384
+ * `subtree_indices_json` — atom indices to rotate.
385
+ * `axis_a_json` / `axis_b_json` — the two atoms defining the rotation axis ([x,y,z]).
386
+ * `angle_rad` — rotation angle in radians.
387
+ *
388
+ * Returns JSON: `{ "coords": [x0,y0,z0,...] }`
389
+ */
390
+ export function alpha_rotate_dihedral_cga(coords_flat_json: string, subtree_indices_json: string, axis_a_json: string, axis_b_json: string, angle_rad: number): string;
197
391
 
198
- // ── Metadata ─────────────────────────────────────────────────────────────
392
+ /**
393
+ * Compute Schwarz pre-screening bound Q_ab = √〈ab|ab〉.
394
+ *
395
+ * Returns JSON: `{ "schwarz_bound": 0.8432 }`.
396
+ */
397
+ export function alpha_schwarz_bound(alpha: number, center_a_json: string, beta: number, center_b_json: string): string;
199
398
 
200
399
  /**
201
- * Return available alpha module list and stability info.
202
- * @returns JSON `{ alpha_modules: string[], stability: string, version: string }`
400
+ * Embed a molecule from pairwise distance constraints using Semidefinite Relaxation.
401
+ *
402
+ * `distance_pairs_json` — array of `[[i, j, d_ij], ...]` where d_ij is in Å.
403
+ * `n_atoms` — total number of atoms.
404
+ * `config_json` — optional SdrConfig JSON or `{}` for defaults.
405
+ *
406
+ * Returns JSON `SdrResult`:
407
+ * ```json
408
+ * { "coords": [...], "residual": 0.001, "converged": true, "iterations": 45 }
409
+ * ```
203
410
  */
204
- export declare function alpha_modules_info(): string;
411
+ export function alpha_sdr_embed(distance_pairs_json: string, n_atoms: number, config_json: string): string;
package/alpha/index.js CHANGED
@@ -19,7 +19,10 @@
19
19
  * alpha_rotate_dihedral_cga,
20
20
  * alpha_refine_torsion_cga,
21
21
  * alpha_gsm_interpolate,
22
+ * alpha_gsm_backend_plan,
23
+ * alpha_gsm_compare_backends,
22
24
  * alpha_gsm_find_ts,
25
+ * alpha_gsm_find_ts_with_method,
23
26
  * alpha_sdr_embed,
24
27
  * alpha_modules_info,
25
28
  * LiveSimulation,
@@ -57,7 +60,10 @@ export {
57
60
 
58
61
  // ── A6: Growing String Method ─────────────────────────────────────────────
59
62
  alpha_gsm_interpolate,
63
+ alpha_gsm_backend_plan,
64
+ alpha_gsm_compare_backends,
60
65
  alpha_gsm_find_ts,
66
+ alpha_gsm_find_ts_with_method,
61
67
 
62
68
  // ── A7: SDR Embedding ─────────────────────────────────────────────────────
63
69
  alpha_sdr_embed,
@@ -65,6 +71,26 @@ export {
65
71
  // ── A8: Live MD (also available via main entry) ───────────────────────────
66
72
  LiveSimulation,
67
73
 
74
+ // ── Render bridge: chart utilities ────────────────────────────────────────
75
+ alpha_render_edl_profile_chart,
76
+ alpha_render_capacitance_scan_chart,
77
+ alpha_render_periodic_dos_chart,
78
+ alpha_render_band_structure_chart,
79
+ alpha_render_microkinetic_population_chart,
80
+ alpha_render_arrhenius_chart,
81
+ alpha_render_gsm_path_trajectory,
82
+ alpha_render_pack_chart_payload,
83
+ alpha_render_verify_chart_round_trip,
84
+
85
+ // ── Periodic linear ──────────────────────────────────────────────────────
86
+ alpha_periodic_monkhorst_pack,
87
+ alpha_periodic_bloch_phase,
88
+ alpha_periodic_bz_integrate_scalar,
89
+ alpha_periodic_bz_integrate_vector,
90
+ alpha_periodic_validate_kmesh_weights,
91
+ alpha_periodic_band_structure_eht,
92
+ alpha_periodic_validate_electron_count,
93
+
68
94
  // ── Metadata ──────────────────────────────────────────────────────────────
69
95
  alpha_modules_info,
70
96
  } from '../sci_form_wasm.js';