@tellegen/engine 0.2.0 → 0.4.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.
Files changed (60) hide show
  1. package/README.md +71 -20
  2. package/dist/data/populated_places.json +1 -0
  3. package/dist/generated/{contracts.d.ts → api-types.d.ts} +26 -18
  4. package/dist/generated/api-types.d.ts.map +1 -0
  5. package/dist/generated/api-types.js +8 -0
  6. package/dist/generated/api-types.js.map +1 -0
  7. package/dist/generated/study-schema.d.ts +2 -0
  8. package/dist/generated/study-schema.d.ts.map +1 -0
  9. package/dist/generated/study-schema.js +3 -0
  10. package/dist/generated/study-schema.js.map +1 -0
  11. package/dist/generated/study-types.d.ts +426 -0
  12. package/dist/generated/study-types.d.ts.map +1 -0
  13. package/dist/generated/study-types.js +4 -0
  14. package/dist/generated/study-types.js.map +1 -0
  15. package/dist/generated/synth-schema.d.ts +2 -0
  16. package/dist/generated/synth-schema.d.ts.map +1 -0
  17. package/dist/generated/synth-schema.js +3 -0
  18. package/dist/generated/synth-schema.js.map +1 -0
  19. package/dist/generated/synth-types.d.ts +482 -0
  20. package/dist/generated/synth-types.d.ts.map +1 -0
  21. package/dist/generated/synth-types.js +4 -0
  22. package/dist/generated/synth-types.js.map +1 -0
  23. package/dist/host.d.ts +35 -2
  24. package/dist/host.d.ts.map +1 -1
  25. package/dist/host.js +103 -17
  26. package/dist/host.js.map +1 -1
  27. package/dist/index.d.ts +549 -122
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +780 -109
  30. package/dist/index.js.map +1 -1
  31. package/dist/input-limit.d.ts +1 -1
  32. package/dist/input-limit.js +1 -1
  33. package/dist/module.d.ts +2 -0
  34. package/dist/module.d.ts.map +1 -1
  35. package/dist/module.js.map +1 -1
  36. package/dist/protocol.d.ts +182 -31
  37. package/dist/protocol.d.ts.map +1 -1
  38. package/dist/protocol.js +153 -26
  39. package/dist/protocol.js.map +1 -1
  40. package/dist/study-document.d.ts +46 -0
  41. package/dist/study-document.d.ts.map +1 -0
  42. package/dist/study-document.js +183 -0
  43. package/dist/study-document.js.map +1 -0
  44. package/dist/study-document.test.d.ts +2 -0
  45. package/dist/study-document.test.d.ts.map +1 -0
  46. package/dist/study-document.test.js +119 -0
  47. package/dist/study-document.test.js.map +1 -0
  48. package/dist/wasm-pkg/LICENSE +17 -4
  49. package/dist/wasm-pkg/tellegen.d.ts +332 -85
  50. package/dist/wasm-pkg/tellegen.js +1324 -250
  51. package/dist/wasm-pkg/tellegen_bg.wasm +0 -0
  52. package/dist/wasm-pkg/tellegen_bg.wasm.d.ts +57 -9
  53. package/dist/worker.js +20 -5
  54. package/dist/worker.js.map +1 -1
  55. package/package.json +32 -11
  56. package/dist/generated/contracts.d.ts.map +0 -1
  57. package/dist/generated/contracts.js +0 -8
  58. package/dist/generated/contracts.js.map +0 -1
  59. package/dist/wasm-pkg/LICENSE-APACHE +0 -201
  60. package/dist/wasm-pkg/LICENSE-MIT +0 -19
@@ -0,0 +1 @@
1
+ {"version":3,"file":"study-document.test.js","sourceRoot":"","sources":["../src/study-document.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAsC,MAAM,qBAAqB,CAAC;AAGlG,MAAM,KAAK,GAAgB,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,iBAAiB;IAC/I,SAAS,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE;IAC9G,SAAS,EAAE,EAAE,SAAS,EAAE,C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AS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;QACvG,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvD,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;QAClB,MAAM,MAAM,CAAC,UAAU,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAC5F,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC9D,MAAM,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvD,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC;QACnB,MAAM,UAAU,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;QAC9C,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
@@ -1,6 +1,19 @@
1
- This crate is part of tellegen.
1
+ Copyright (c) 2026 Samuel Talkington and contributors
2
2
 
3
- License: Apache-2.0 OR MIT
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
4
9
 
5
- See LICENSE-APACHE and LICENSE-MIT in this directory for the full license
6
- texts.
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
@@ -2,17 +2,82 @@
2
2
  /* eslint-disable */
3
3
 
4
4
  /**
5
- * A build-once handle over the engine, exported to JS. Construct once per case (the
6
- * network is parsed and the model built here); then [`replace_edits`](Study::replace_edits)
5
+ * A retained fixed-point current-injection session. The prepared network,
6
+ * sparse LU, and last converged voltage remain in this WASM object across
7
+ * load edits. Ordinary edits return the compact summary; detailed terminal
8
+ * and equipment values are fetched on demand.
9
+ */
10
+ export class McPfSession {
11
+ free(): void;
12
+ [Symbol.dispose](): void;
13
+ /**
14
+ * Phase timings of the session's parse, preparation, factorization, and first solve.
15
+ */
16
+ cold_profile(): string;
17
+ /**
18
+ * One bounded page of terminal and equipment values for a bus or element.
19
+ */
20
+ detail(query_json: string): string;
21
+ /**
22
+ * Materialize the current edited input as PowerIO IR.
23
+ */
24
+ input_module(): string;
25
+ /**
26
+ * Editable load branches with base and current P/Q values.
27
+ */
28
+ load_branches(): string;
29
+ /**
30
+ * Edited networks materialized for portable output; ordinary edits build none.
31
+ */
32
+ materialization_count(): number;
33
+ constructor(module_json: string, options_json: string);
34
+ /**
35
+ * Phase timings of the most recent solve.
36
+ */
37
+ profile(): string;
38
+ /**
39
+ * Replace the absolute branch-power edit state, solve with the retained
40
+ * factorization and previous converged voltage, and return the summary.
41
+ */
42
+ replace_load_powers(edits_json: string): string;
43
+ /**
44
+ * The complete terminal and equipment result, built on demand. Its size
45
+ * grows with the network; the interactive path uses `summary`/`detail`.
46
+ */
47
+ result(): string;
48
+ /**
49
+ * Save the current edited point and result without re-solving.
50
+ */
51
+ snapshot(study_id: string, study_title: string): string;
52
+ /**
53
+ * The compact summary of the current operating point (constant size).
54
+ */
55
+ summary(): string;
56
+ /**
57
+ * Currents injected into the network as interleaved `[re, im]` amperes.
58
+ */
59
+ terminal_currents(): Float64Array;
60
+ /**
61
+ * Terminal identities as `[bus, terminal]` pairs in calculation order.
62
+ * They never change for a session, so a host fetches them once.
63
+ */
64
+ terminal_ids(): string;
65
+ /**
66
+ * Terminal voltages as interleaved `[re, im]` volts (a `Float64Array`).
67
+ */
68
+ terminal_voltages(): Float64Array;
69
+ }
70
+
71
+ /**
72
+ * A retained handle over the engine, exported to JS. Construct once per PowerIO module;
73
+ * then [`replace_edits`](Study::replace_edits)
7
74
  * solves exactly at an absolute edit state and [`preview_replacement`](Study::preview_replacement)
8
- * returns a first-order linearization toward an absolute edit state — neither re-parses
9
- * the network, unlike `solve_json` which rebuilds it on every call. This is
10
- * the path a reactive drag should use.
75
+ * returns a first order linearization toward an absolute edit state.
11
76
  *
12
77
  * Arguments and results are JSON in the engine's `Study` shapes: edits are a
13
78
  * `NetworkEdit[]` (e.g. `[{"kind":"add_load","bus":2,"p_mw":50}]`; the element key
14
- * also accepts the powerio row uid string `ingest_case` stamps, e.g.
15
- * `"bus":"buses:1"`), `preview` watches an
79
+ * also accepts a powerio row uid string when the source format carries uids,
80
+ * e.g. `"bus":"buses:1"`), `preview` watches an
16
81
  * `Operand[]` (e.g. `[{"Price":"Active"}]`) and returns a `Preview`. `commit` takes the
17
82
  * edits plus a `SensRequest[]` of watched cells and returns `{ solution, iterations,
18
83
  * sensitivities }` — the committed [`SolveResponse`] plus the requested ∂operand/∂param
@@ -25,7 +90,7 @@ export class Study {
25
90
  /**
26
91
  * Apply a geographic layer (a canonical `.geo.json` from [`parse_geo`] or
27
92
  * [`apply_layout`]) onto this study's base network, so a later
28
- * [`save_package`](Study::save_package) or export carries the coordinates
93
+ * [`save_module`](Study::save_module) or export carries the coordinates
29
94
  * on screen. Locations are metadata the model never reads; nothing
30
95
  * re-solves. Returns the apply report JSON.
31
96
  */
@@ -40,16 +105,34 @@ export class Study {
40
105
  * columns so the UI renders the ∂LMP/∂d column without a second solve.
41
106
  */
42
107
  commit(edits_json: string, sensitivities_json: string): string;
108
+ /**
109
+ * Export the committed operating point to a powerio `format` (`matpower`,
110
+ * `psse`, ...). Returns `{ text, diagnostics, format,
111
+ * extension }` as JSON: the serialized case, this output operation's
112
+ * structured diagnostics, and the format token and file extension.
113
+ */
114
+ export(format: string): string;
43
115
  /**
44
116
  * The formulation tag (`"dcopf"` / `"acpf"`).
45
117
  */
46
118
  formulation(): string;
47
119
  /**
48
- * Build a study over `network_json` for `formulation` (`"dcopf"` / `"acpf"`, and —
120
+ * Build a study over `module_json` for `formulation` (`"dcopf"` / `"acpf"`, and —
49
121
  * in a build that includes them — `"socwr"` / `"acopf"`), solving the base case.
50
- * Errors on an unknown or not-built formulation.
122
+ * Bare model JSON and unknown or unavailable formulations are rejected.
123
+ */
124
+ constructor(module_json: string, formulation: string);
125
+ /**
126
+ * Run a bounded differentiable planning search over the committed
127
+ * operating point: the implicit gradient of the serializable outer
128
+ * objective through the exact DC OPF KKT orders capacity trials
129
+ * whose every step is verified by an exact re-solve. Read only — the
130
+ * committed case, edits, and revision are untouched. `spec_json` is a
131
+ * [`tellegen::plan::CapacityPlanSpec`]; the returned JSON is the complete
132
+ * [`tellegen::plan::CapacityPlanOutcome`] trace with the unapplied
133
+ * proposal. A non-DC formulation returns a typed error.
51
134
  */
52
- constructor(network_json: string, formulation: string);
135
+ plan(spec_json: string): string;
53
136
  /**
54
137
  * First-order preview of `edits_json` (a `NetworkEdit[]`) for the `watched_json`
55
138
  * operands (an `Operand[]`), at the committed point, without re-solving. Returns the
@@ -69,25 +152,104 @@ export class Study {
69
152
  */
70
153
  replace_edits(edits_json: string, sensitivities_json: string): string;
71
154
  /**
72
- * Serialize this study as a `.pio.json` package: the base network is the payload,
73
- * the edit log is the study block (one commit per `commit` call, keyed by row uid),
74
- * and the formulation and solve options ride under `study.app["tellegen"]`. Returns
75
- * the package JSON, ready to download or hand to [`export_study`].
155
+ * Serialize the exact problem instance, including its inner objective and constraints.
156
+ */
157
+ save_instance_module(): string;
158
+ /**
159
+ * Serialize the committed operating point as a stored PowerIO module:
160
+ * the materialized network with one descriptive `Edit` history entry per
161
+ * committed edit, ready to download as `.pio.json`. Any PowerIO reader
162
+ * understands the file; reloading it starts a fresh session.
76
163
  */
77
- save_package(): string;
164
+ save_module(): string;
165
+ /**
166
+ * Save the committed exact DC OPF result as a PowerIO solution module.
167
+ * The embedded instance contains the materialized case that was solved.
168
+ */
169
+ save_solution_module(): string;
78
170
  /**
79
171
  * The most recent committed solution as `SolveResponse` JSON.
80
172
  */
81
173
  solution(): string;
82
174
  }
83
175
 
176
+ /**
177
+ * A synthetic preview as flat arrays: bus `[lon, lat]` pairs, kinds (0 load,
178
+ * 1 substation, 2 generator, 3 converter) and kV in bus order, branch route
179
+ * points, the index where each route starts (one entry more than there are
180
+ * branches) and branch kV.
181
+ */
182
+ export class SynthPreviewBuffers {
183
+ private constructor();
184
+ free(): void;
185
+ [Symbol.dispose](): void;
186
+ branch_kv(): Float32Array;
187
+ branch_positions(): Float64Array;
188
+ branch_start_indices(): Uint32Array;
189
+ bus_kinds(): Uint8Array;
190
+ bus_kv(): Float32Array;
191
+ bus_positions(): Float64Array;
192
+ }
193
+
194
+ /**
195
+ * A staged synthetic generation: one bounded stage per `advance`, a map
196
+ * preview between stages, and the module, the report and the drop-panel
197
+ * payload once it is done.
198
+ */
199
+ export class SynthSession {
200
+ free(): void;
201
+ [Symbol.dispose](): void;
202
+ /**
203
+ * Run one stage (one calibration iteration for `calibrate`); returns the
204
+ * `StepOutcome` JSON.
205
+ */
206
+ advance(): string;
207
+ /**
208
+ * The network as GridFM graphkit JSON (per-unit feature matrices on a
209
+ * 0-based bus index), from `electrify` on.
210
+ */
211
+ export_gridfm(): string;
212
+ /**
213
+ * The drop-panel payload of the module (the `ingest_case` shape with
214
+ * `module_json`).
215
+ */
216
+ ingest(): string;
217
+ /**
218
+ * The module as generation 2 PowerIO IR text, with bus locations and
219
+ * branch routes, from `electrify` on.
220
+ */
221
+ module(): string;
222
+ /**
223
+ * Open a session at the `context` stage. `osm_json` is the Overpass
224
+ * document (one, or a JSON array of documents) for `source: "osm"`.
225
+ */
226
+ constructor(request_json: string, osm_json?: string | null);
227
+ /**
228
+ * The map preview as `Preview` JSON records.
229
+ */
230
+ preview(): string;
231
+ /**
232
+ * The map preview as flat arrays for binary map attributes, computed
233
+ * once; read each array, then `free()` the buffers.
234
+ */
235
+ preview_buffers(): SynthPreviewBuffers;
236
+ /**
237
+ * The `GenerationReport` JSON, partial until the session is done.
238
+ */
239
+ report(): string;
240
+ /**
241
+ * The stage the next `advance` runs.
242
+ */
243
+ stage(): string;
244
+ }
245
+
84
246
  /**
85
247
  * Fill case coordinates from a PowerWorld `.pwd` sibling: substation symbols
86
248
  * project to approximate longitude/latitude and join onto buses through the
87
249
  * `SubNum` extras key. Returns the refreshed `ingest_case` payload plus a
88
250
  * `report`; errors when no bus joined.
89
251
  */
90
- export function apply_display_geo(network_json: string, bytes: Uint8Array): string;
252
+ export function apply_display_geo(module_json: string, bytes: Uint8Array): string;
91
253
 
92
254
  /**
93
255
  * Apply a [`parse_geo`] layer onto a case network: matched bus points land in
@@ -96,7 +258,7 @@ export function apply_display_geo(network_json: string, bytes: Uint8Array): stri
96
258
  * the refreshed `ingest_case` payload plus a `report` of matched/unmatched
97
259
  * counts; errors when nothing matched.
98
260
  */
99
- export function apply_geo(network_json: string, layer_geojson: string): string;
261
+ export function apply_geo(module_json: string, layer_geojson: string): string;
100
262
 
101
263
  /**
102
264
  * Stamp a computed layout (bus id => `[lon, lat]`) onto a case network with
@@ -104,7 +266,12 @@ export function apply_geo(network_json: string, layer_geojson: string): string;
104
266
  * `ingest_case` payload plus `layer`, the stamped layout as a canonical
105
267
  * `.geo.json` document.
106
268
  */
107
- export function apply_layout(network_json: string, coords_json: string, kind: string): string;
269
+ export function apply_layout(module_json: string, coords_json: string, kind: string): string;
270
+
271
+ /**
272
+ * Attach geographic or drawing positions to a saved multiconductor result.
273
+ */
274
+ export function apply_mc_study_geo(snapshot_json: string, layer_geojson: string): string;
108
275
 
109
276
  /**
110
277
  * The capability matrix as JSON: which `(formulation, operand, parameter)` cells this
@@ -118,25 +285,16 @@ export function capabilities_json(): string;
118
285
  */
119
286
  export function classify_json(bytes: Uint8Array): string;
120
287
 
121
- /**
122
- * Export the balanced study state at commit `commit` to a powerio `format`
123
- * (`matpower`, `psse`, `model-json`, ...). Returns `{ text, warnings, format,
124
- * extension }` as JSON: the serialized case, the writer's fidelity warnings so the
125
- * frontend can surface them, and the format token and file extension. The package
126
- * JSON is untrusted; malformed input returns a `JsError`, never a panic.
127
- */
128
- export function export_study(package_json: string, commit: number, format: string): string;
129
-
130
288
  /**
131
289
  * A case's coordinates as a canonical `.geo.json` document (one point per
132
290
  * located bus, one route per routed branch, provenance preserved). Errors
133
291
  * when the case carries none.
134
292
  */
135
- export function extract_geo(network_json: string): string;
293
+ export function extract_geo(module_json: string): string;
136
294
 
137
295
  /**
138
296
  * Everything the drop panel needs from one parse: counts, total load and
139
- * capacity, parse warnings, and a `view` of buses and branches in the shape
297
+ * capacity, parse diagnostics, and a `view` of buses and branches in the shape
140
298
  * the tellegen API serves, placed at the coordinates the file carries
141
299
  * (PowerWorld complete case aux exports). `view` is null when the file has no
142
300
  * coordinates.
@@ -149,13 +307,14 @@ export function ingest_case(bytes: Uint8Array, format: string): string;
149
307
  /**
150
308
  * The distribution counterpart of [`ingest_case`]: view a multiconductor case
151
309
  * with no solve. `format` is a distribution reader token (`dss`, `bmopf`,
152
- * `pmd`) parsed by [`powerio_dist`], or `pio` for a `.pio.json` package
153
- * carrying a multiconductor payload. Returns the drop-panel payload JSON:
154
- * name, element counts, connected load/generation (kW), parse warnings,
310
+ * `pmd`) parsed by [`powerio_dist`], or `pio` for a `.pio.json` stored module
311
+ * holding a supported multiconductor network, instance, or solution. Returns
312
+ * the drop-panel payload JSON:
313
+ * name, element counts, connected load/generation (kW), parse diagnostics,
155
314
  * coordinate provenance, and the bus/terminal graph the frontend renders (see
156
- * [`dist`]).
315
+ * the private `dist` adapter).
157
316
  *
158
- * Untrusted input: the parse and package restore return error strings (mapped
317
+ * Untrusted input: the parse and module restore return error strings (mapped
159
318
  * to `JsError` here), so a malformed, truncated, or oversized `.dss`/JSON
160
319
  * rejects cleanly and never panics the wasm instance.
161
320
  */
@@ -170,113 +329,201 @@ export function ingest_dist_case_bytes(bytes: Uint8Array, format: string): strin
170
329
  * Classify and ingest one dropped JSON byte buffer. Known inputs return their
171
330
  * render-ready payload; ambiguous and unknown documents return a null payload
172
331
  * so the caller can request an explicit format without decoding the bytes a
173
- * second time. Package envelopes are decoded once and the parsed package is
174
- * passed directly to the appropriate restore path.
332
+ * second time. A stored module is read once and its value routed to the
333
+ * balanced or multiconductor view. The TS drop-classify layer must mirror
334
+ * the kinds (`module` and powerio's families).
175
335
  */
176
336
  export function ingest_json_drop(bytes: Uint8Array): string;
177
337
 
178
338
  /**
179
- * [`ingest_case`] for powerio's own model JSON, the document `export_study`
180
- * writes under the `model-json` token and powerio classifies as
181
- * `JsonClass::ModelJson`. It is not a case format, so it reaches
182
- * `BalancedNetwork::from_json` rather than a case reader, and there are no
183
- * reader warnings to carry: nothing was converted.
339
+ * Engine heap accounting: live and peak bytes held by the WASM allocator
340
+ * (peak since the last reset) and the size of linear memory, which only
341
+ * grows. Native builds report zeros.
184
342
  */
185
- export function ingest_model_json(network_json: string): string;
186
-
187
- /**
188
- * Byte counterpart of [`ingest_model_json`] for dropped files. UTF-8 decoding
189
- * and model validation both stay in powerio.
190
- */
191
- export function ingest_model_json_bytes(bytes: Uint8Array): string;
192
-
193
- /**
194
- * Restore a study saved by [`Study::save_package`]. Returns a JSON bundle the frontend
195
- * reads to rebuild its case, edit sliders, formulation, and solve options in one step.
196
- * See [`load_package_bundle`] for the shape and the fail-closed contract.
197
- */
198
- export function load_package(package_json: string): string;
199
-
200
- /**
201
- * Byte counterpart of [`load_package`] for a dropped package.
202
- */
203
- export function load_package_bytes(bytes: Uint8Array): string;
343
+ export function memory_stats(): string;
204
344
 
205
345
  /**
206
346
  * Parse a case file (MATPOWER, PSS/E RAW, PowerWorld aux, PowerModels or
207
- * egret JSON) and return `{"network": ..., "warnings": [...]}` as JSON.
347
+ * egret JSON) and return `{"network": ..., "diagnostics": [...]}` as JSON.
208
348
  *
209
- * Takes the upload's bytes, not decoded text: `powerio::parse_bytes` refuses a
210
- * text format whose bytes are not UTF-8, where a browser side `File.text()`
211
- * would have replaced each offending byte with U+FFFD and parsed on. It also
212
- * reaches PowerWorld `.pwb`, which has no text form at all.
349
+ * Takes the upload's bytes, not decoded text: powerio refuses a text format
350
+ * whose bytes are not UTF-8, where a browser side `File.text()` would have
351
+ * replaced each offending byte with U+FFFD and parsed on. It also reaches
352
+ * PowerWorld `.pwb`, which has no text form at all.
213
353
  */
214
354
  export function parse_case(bytes: Uint8Array, format: string): string;
215
355
 
216
356
  /**
217
- * Decode a PowerWorld `.pwd` display file (binary). Returns the substation
218
- * symbols at the diagram coordinates the file stores (x east, y north) plus
219
- * the canvas size, each with the approximate `lon`/`lat` projection
220
- * (`pwd_mercator_to_lonlat`; hand edited diagrams drift from it). A `.pwd`
221
- * carries no buses or branches. `format` is "pwd". Pure in-memory parsing,
222
- * no filesystem, so it runs in the browser.
357
+ * Decode a PowerWorld drawing as a canonical PowerIO GeoLayer in diagram units.
223
358
  */
224
359
  export function parse_display(bytes: Uint8Array, format: string): string;
225
360
 
226
361
  /**
227
362
  * Parse a geographic sidecar (buscoords CSV, aliased CSV/JSON records,
228
363
  * GeoJSON) from raw dropped bytes; `hint` is the file name ("" to sniff).
229
- * Returns `{ layer, warnings, n_points, n_routes }` — the layer as its
364
+ * Returns `{ layer, diagnostics, n_points, n_routes }` — the layer as its
230
365
  * canonical `.geo.json` document, ready for [`apply_geo`]. Untrusted input
231
366
  * rejects as a `JsError`, never a panic.
232
367
  */
233
368
  export function parse_geo(bytes: Uint8Array, hint: string): string;
234
369
 
235
370
  /**
236
- * The stateless solve front door: a [`SolveRequest`](tellegen::SolveRequest) JSON
237
- * in, a [`SolveResponse`](tellegen::SolveResponse) JSON out. One-shot callers only;
371
+ * Validate and canonicalize a saved multiconductor Study snapshot without
372
+ * re-solving it.
373
+ */
374
+ export function replay_mc_study(snapshot_json: string): string;
375
+
376
+ /**
377
+ * Start a new peak-heap window at the current live size.
378
+ */
379
+ export function reset_peak_memory(): void;
380
+
381
+ /**
382
+ * Solve a raw BMOPF multiconductor constant-power case. The parser and
383
+ * fixed-point implementation remain in the engine crate; this export only
384
+ * performs the bounded text/JSON conversion at the browser boundary.
385
+ */
386
+ export function solve_mc_bmopf(text: string, options_json: string): string;
387
+
388
+ /**
389
+ * Solve a stored PowerIO multiconductor module. This accepts the portable
390
+ * module form used by browser persistence in addition to raw BMOPF text.
391
+ */
392
+ export function solve_mc_module(module_json: string, options_json: string): string;
393
+
394
+ /**
395
+ * Solve a supported multiconductor Study input and return a self-contained,
396
+ * replayable snapshot containing the typed input, PowerIO solution module, and
397
+ * terminal-aware result view.
398
+ */
399
+ export function solve_mc_study(module_json: string, study_id: string, study_title: string, options_json: string): string;
400
+
401
+ /**
402
+ * The stateless solve front door: a retained PowerIO module and a
403
+ * [`tellegen::SolveRequest`] JSON in, a [`tellegen::SolveResponse`] JSON out. One-shot callers only;
238
404
  * the reactive hot path is the [`Study`].
239
405
  */
240
- export function solve_json(network_json: string, request_json: string): string;
406
+ export function solve_module(module_json: string, request_json: string): string;
407
+
408
+ /**
409
+ * Create a portable application Study through the shared native controller.
410
+ */
411
+ export function study_document_create(request_json: string): string;
412
+
413
+ /**
414
+ * Validate and normalize a portable bundle without executing its contents.
415
+ */
416
+ export function study_document_import(bundle_json: string): string;
417
+
418
+ /**
419
+ * Execute a revision-checked Study operation and return the completed bundle.
420
+ */
421
+ export function study_document_run(bundle_json: string, request_json: string, cancelled: Function): Promise<string>;
422
+
423
+ /**
424
+ * Run every stage of a synthetic generation: `{module_json, report, ingest}`.
425
+ */
426
+ export function synth_generate(request_json: string, osm_json?: string | null): string;
427
+
428
+ /**
429
+ * Load the populated places table every synthetic session of this instance
430
+ * reads (the engine package's `data/populated_places.json`, or any table of
431
+ * `{n, lo, la, p, c}` rows). Returns `{count, sha256}`.
432
+ */
433
+ export function synth_load_places(bytes: Uint8Array): string;
434
+
435
+ /**
436
+ * The Overpass QL queries for a synthetic request's region: a JSON array, two
437
+ * entries when the region crosses the antimeridian.
438
+ */
439
+ export function synth_overpass_queries(request_json: string): string;
241
440
 
242
441
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
243
442
 
244
443
  export interface InitOutput {
245
444
  readonly memory: WebAssembly.Memory;
445
+ readonly __wbg_mcpfsession_free: (a: number, b: number) => void;
246
446
  readonly __wbg_study_free: (a: number, b: number) => void;
447
+ readonly __wbg_synthpreviewbuffers_free: (a: number, b: number) => void;
448
+ readonly __wbg_synthsession_free: (a: number, b: number) => void;
247
449
  readonly apply_display_geo: (a: number, b: number, c: number, d: number) => [number, number, number, number];
248
450
  readonly apply_geo: (a: number, b: number, c: number, d: number) => [number, number, number, number];
249
451
  readonly apply_layout: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
452
+ readonly apply_mc_study_geo: (a: number, b: number, c: number, d: number) => [number, number, number, number];
250
453
  readonly capabilities_json: () => [number, number];
251
454
  readonly classify_json: (a: number, b: number) => [number, number, number, number];
252
- readonly export_study: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
253
455
  readonly extract_geo: (a: number, b: number) => [number, number, number, number];
254
456
  readonly ingest_case: (a: number, b: number, c: number, d: number) => [number, number, number, number];
255
457
  readonly ingest_dist_case: (a: number, b: number, c: number, d: number) => [number, number, number, number];
256
458
  readonly ingest_dist_case_bytes: (a: number, b: number, c: number, d: number) => [number, number, number, number];
257
459
  readonly ingest_json_drop: (a: number, b: number) => [number, number, number, number];
258
- readonly ingest_model_json: (a: number, b: number) => [number, number, number, number];
259
- readonly ingest_model_json_bytes: (a: number, b: number) => [number, number, number, number];
260
- readonly load_package: (a: number, b: number) => [number, number, number, number];
261
- readonly load_package_bytes: (a: number, b: number) => [number, number, number, number];
460
+ readonly mcpfsession_cold_profile: (a: number) => [number, number, number, number];
461
+ readonly mcpfsession_detail: (a: number, b: number, c: number) => [number, number, number, number];
462
+ readonly mcpfsession_input_module: (a: number) => [number, number, number, number];
463
+ readonly mcpfsession_load_branches: (a: number) => [number, number, number, number];
464
+ readonly mcpfsession_materialization_count: (a: number) => number;
465
+ readonly mcpfsession_new: (a: number, b: number, c: number, d: number) => [number, number, number];
466
+ readonly mcpfsession_profile: (a: number) => [number, number, number, number];
467
+ readonly mcpfsession_replace_load_powers: (a: number, b: number, c: number) => [number, number, number, number];
468
+ readonly mcpfsession_result: (a: number) => [number, number, number, number];
469
+ readonly mcpfsession_snapshot: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
470
+ readonly mcpfsession_summary: (a: number) => [number, number, number, number];
471
+ readonly mcpfsession_terminal_currents: (a: number) => [number, number];
472
+ readonly mcpfsession_terminal_ids: (a: number) => [number, number, number, number];
473
+ readonly mcpfsession_terminal_voltages: (a: number) => [number, number];
474
+ readonly memory_stats: () => [number, number];
262
475
  readonly parse_case: (a: number, b: number, c: number, d: number) => [number, number, number, number];
263
476
  readonly parse_display: (a: number, b: number, c: number, d: number) => [number, number, number, number];
264
477
  readonly parse_geo: (a: number, b: number, c: number, d: number) => [number, number, number, number];
265
- readonly solve_json: (a: number, b: number, c: number, d: number) => [number, number, number, number];
478
+ readonly replay_mc_study: (a: number, b: number) => [number, number, number, number];
479
+ readonly reset_peak_memory: () => void;
480
+ readonly solve_mc_bmopf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
481
+ readonly solve_mc_module: (a: number, b: number, c: number, d: number) => [number, number, number, number];
482
+ readonly solve_mc_study: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
483
+ readonly solve_module: (a: number, b: number, c: number, d: number) => [number, number, number, number];
266
484
  readonly study_apply_geo: (a: number, b: number, c: number) => [number, number, number, number];
267
485
  readonly study_commit: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
486
+ readonly study_document_create: (a: number, b: number) => [number, number, number, number];
487
+ readonly study_document_import: (a: number, b: number) => [number, number, number, number];
488
+ readonly study_document_run: (a: number, b: number, c: number, d: number, e: any) => any;
489
+ readonly study_export: (a: number, b: number, c: number) => [number, number, number, number];
268
490
  readonly study_formulation: (a: number) => [number, number];
269
491
  readonly study_new: (a: number, b: number, c: number, d: number) => [number, number, number];
492
+ readonly study_plan: (a: number, b: number, c: number) => [number, number, number, number];
270
493
  readonly study_preview: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
271
494
  readonly study_preview_replacement: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
272
495
  readonly study_replace_edits: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
273
- readonly study_save_package: (a: number) => [number, number, number, number];
496
+ readonly study_save_instance_module: (a: number) => [number, number, number, number];
497
+ readonly study_save_module: (a: number) => [number, number, number, number];
498
+ readonly study_save_solution_module: (a: number) => [number, number, number, number];
274
499
  readonly study_solution: (a: number) => [number, number, number, number];
500
+ readonly synth_generate: (a: number, b: number, c: number, d: number) => [number, number, number, number];
501
+ readonly synth_load_places: (a: number, b: number) => [number, number, number, number];
502
+ readonly synth_overpass_queries: (a: number, b: number) => [number, number, number, number];
503
+ readonly synthpreviewbuffers_branch_kv: (a: number) => [number, number];
504
+ readonly synthpreviewbuffers_branch_positions: (a: number) => [number, number];
505
+ readonly synthpreviewbuffers_branch_start_indices: (a: number) => [number, number];
506
+ readonly synthpreviewbuffers_bus_kinds: (a: number) => [number, number];
507
+ readonly synthpreviewbuffers_bus_kv: (a: number) => [number, number];
508
+ readonly synthpreviewbuffers_bus_positions: (a: number) => [number, number];
509
+ readonly synthsession_advance: (a: number) => [number, number, number, number];
510
+ readonly synthsession_export_gridfm: (a: number) => [number, number, number, number];
511
+ readonly synthsession_ingest: (a: number) => [number, number, number, number];
512
+ readonly synthsession_module: (a: number) => [number, number, number, number];
513
+ readonly synthsession_new: (a: number, b: number, c: number, d: number) => [number, number, number];
514
+ readonly synthsession_preview: (a: number) => [number, number, number, number];
515
+ readonly synthsession_preview_buffers: (a: number) => number;
516
+ readonly synthsession_report: (a: number) => [number, number, number, number];
517
+ readonly synthsession_stage: (a: number) => [number, number];
518
+ readonly wasm_bindgen__convert__closures_____invoke__h1c534e945ee6d3b6: (a: number, b: number, c: any) => [number, number];
519
+ readonly wasm_bindgen__convert__closures_____invoke__h67ba427e9454f1d8: (a: number, b: number, c: any, d: any) => void;
520
+ readonly __wbindgen_exn_store: (a: number) => void;
521
+ readonly __externref_table_alloc: () => number;
522
+ readonly __wbindgen_externrefs: WebAssembly.Table;
275
523
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
276
524
  readonly __wbindgen_malloc: (a: number, b: number) => number;
277
525
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
278
- readonly __externref_table_alloc: () => number;
279
- readonly __wbindgen_externrefs: WebAssembly.Table;
526
+ readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
280
527
  readonly __externref_table_dealloc: (a: number) => void;
281
528
  readonly __wbindgen_start: () => void;
282
529
  }