@vulcan-energy/mcp-helper 0.3.1 → 0.3.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/dist/bin/vulcan-mcp-helper.js +34 -32
- package/dist/hem-target-runtime/browser-adapter.mjs +29 -1
- package/dist/hem-target-runtime/host.mjs +40 -29
- package/dist/hem-target-runtime/preparation.mjs +5728 -4625
- package/dist/hem-target-runtime/python-worker.mjs +373 -75
- package/dist/hem-target-runtime/release-manifests.mjs +49 -8
- package/dist/hem-target-runtime/rust-worker.mjs +523 -60
- package/dist/server.js +33 -31
- package/package.json +1 -1
- package/wasm/wasm_version.json +10 -10
- package/wasm/wasm_wrapper.js +27 -6
- package/wasm/wasm_wrapper_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vulcan-energy/mcp-helper",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Vulcan Home Energy Model tools for AI assistants over MCP (Claude Code, Codex, Claude Desktop, Cursor). Runs locally; Free tools need no account.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
package/wasm/wasm_version.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"build_id": "
|
|
2
|
+
"build_id": "20261117-131029",
|
|
3
3
|
"variant": "free",
|
|
4
|
-
"sha256": "
|
|
5
|
-
"js_sha256": "
|
|
6
|
-
"source_git_commit": "
|
|
7
|
-
"source_tree_sha256": "
|
|
4
|
+
"sha256": "5beb38bb31fe43b169a1e1e97dd13928e051d3b60551667bff058835ce9de2ed",
|
|
5
|
+
"js_sha256": "43a7f0946ae8751760a4c017e24f94c972fc15e83eb3043d9535b19f4bb9bba1",
|
|
6
|
+
"source_git_commit": "fba186af3f8da4f44486b61c5ab6c9e4fe049c18",
|
|
7
|
+
"source_tree_sha256": "f8879c2f02a1a8e783f9aad3174bdf61268a68fcfbe45b25914dc0fd0512b900",
|
|
8
8
|
"source_tree_dirty": false,
|
|
9
|
-
"timestamp": "2026-11-
|
|
9
|
+
"timestamp": "2026-11-17T13:19:39.570Z",
|
|
10
10
|
"runtime_origin": "Vulcan browser HEM runtime; source origin: Home Energy Foundry Limited; marker: HEF-VULCAN-RUNTIME-2026",
|
|
11
|
-
"size_bytes":
|
|
12
|
-
"js_size_bytes":
|
|
11
|
+
"size_bytes": 18506630,
|
|
12
|
+
"js_size_bytes": 52755,
|
|
13
13
|
"wasm_filename": "wasm_wrapper_bg.wasm",
|
|
14
14
|
"js_filename": "wasm_wrapper.js",
|
|
15
|
-
"hashed_wasm_filename": "wasm_wrapper_bg.
|
|
16
|
-
"hashed_js_filename": "wasm_wrapper.
|
|
15
|
+
"hashed_wasm_filename": "wasm_wrapper_bg.5beb38bb.wasm",
|
|
16
|
+
"hashed_js_filename": "wasm_wrapper.43a7f094.js"
|
|
17
17
|
}
|
package/wasm/wasm_wrapper.js
CHANGED
|
@@ -169,6 +169,27 @@ export function get_build_info() {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
/**
|
|
173
|
+
* A ground floor's U-value (W/m²K) from its HEM element fields, by BS EN ISO 13370 as BR 443
|
|
174
|
+
* directs: the converter's own floor calculation (`vulcan_model_transform::ground_floor_u_value`),
|
|
175
|
+
* for the editor's derived-value placeholder and the thermal-bridge flanking U. `undefined` when an
|
|
176
|
+
* input it needs is missing; an error when `element_json` is not a JSON object. `whole_basement`:
|
|
177
|
+
* the target takes a heated basement's U-value as the floor and its walls below ground (HEM:EPC).
|
|
178
|
+
* @param {string} element_json
|
|
179
|
+
* @param {number | null | undefined} wind_speed_mps
|
|
180
|
+
* @param {boolean} whole_basement
|
|
181
|
+
* @returns {number | undefined}
|
|
182
|
+
*/
|
|
183
|
+
export function ground_floor_u_value(element_json, wind_speed_mps, whole_basement) {
|
|
184
|
+
const ptr0 = passStringToWasm0(element_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
185
|
+
const len0 = WASM_VECTOR_LEN;
|
|
186
|
+
const ret = wasm.ground_floor_u_value(ptr0, len0, !isLikeNone(wind_speed_mps), isLikeNone(wind_speed_mps) ? 0 : wind_speed_mps, whole_basement);
|
|
187
|
+
if (ret[3]) {
|
|
188
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
189
|
+
}
|
|
190
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
191
|
+
}
|
|
192
|
+
|
|
172
193
|
/**
|
|
173
194
|
* Sum `hem_pv_micro` timestep PV AC output (kWh) over aligned irradiance/shading series (same contract as `annual_pv_kwh_sum`).
|
|
174
195
|
* Returns `[energy_produced_kwh, energy_lost_kwh]` for the full series.
|
|
@@ -1389,22 +1410,22 @@ async function __wbg_init(module_or_path, memory) {
|
|
|
1389
1410
|
export { initSync, __wbg_init as default };
|
|
1390
1411
|
|
|
1391
1412
|
// Build hash injected at build time
|
|
1392
|
-
export const BUILD_HASH = "
|
|
1393
|
-
export const BUILD_ID = "
|
|
1394
|
-
export const SOURCE_GIT_COMMIT = "
|
|
1395
|
-
export const SOURCE_TREE_SHA256 = "
|
|
1413
|
+
export const BUILD_HASH = "5beb38bb31fe43b169a1e1e97dd13928e051d3b60551667bff058835ce9de2ed";
|
|
1414
|
+
export const BUILD_ID = "20261117-131029";
|
|
1415
|
+
export const SOURCE_GIT_COMMIT = "fba186af3f8da4f44486b61c5ab6c9e4fe049c18";
|
|
1416
|
+
export const SOURCE_TREE_SHA256 = "f8879c2f02a1a8e783f9aad3174bdf61268a68fcfbe45b25914dc0fd0512b900";
|
|
1396
1417
|
export const SOURCE_TREE_DIRTY = false;
|
|
1397
1418
|
export const WASM_FILENAME = "wasm_wrapper_bg.wasm";
|
|
1398
1419
|
export const JS_FILENAME = "wasm_wrapper.js";
|
|
1399
1420
|
|
|
1400
1421
|
// Function to get the current build hash
|
|
1401
1422
|
export function getBuildHash() {
|
|
1402
|
-
return "
|
|
1423
|
+
return "5beb38bb31fe43b169a1e1e97dd13928e051d3b60551667bff058835ce9de2ed";
|
|
1403
1424
|
}
|
|
1404
1425
|
|
|
1405
1426
|
// Function to get the current build ID
|
|
1406
1427
|
export function getBuildId() {
|
|
1407
|
-
return "
|
|
1428
|
+
return "20261117-131029";
|
|
1408
1429
|
}
|
|
1409
1430
|
|
|
1410
1431
|
// Function to get the WASM filename
|
|
Binary file
|