@vulcan-energy/mcp-helper 0.2.3 → 0.2.5
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/LICENSE +9 -0
- package/README.md +19 -14
- package/THIRD_PARTY_NOTICES.md +195 -1
- package/dist/bin/vulcan-mcp-helper.js +34 -39
- package/dist/hem-target-runtime/browser-adapter.mjs +60 -16
- package/dist/hem-target-runtime/csv-target.mjs +126 -0
- package/dist/hem-target-runtime/host.mjs +11809 -1200
- package/dist/hem-target-runtime/python-worker.mjs +187 -9
- package/dist/hem-target-runtime/release-manifests.mjs +3 -3
- package/dist/hem-target-runtime/rust-worker.mjs +203 -10
- package/dist/server.js +33 -38
- package/package.json +1 -1
- package/wasm/THIRD_PARTY_RUST_CRATES.md +5693 -0
- package/wasm/wasm_version.json +10 -10
- package/wasm/wasm_wrapper.js +41 -7
- package/wasm/wasm_wrapper_bg.wasm +0 -0
package/wasm/wasm_version.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"build_id": "
|
|
2
|
+
"build_id": "20261110-224204",
|
|
3
3
|
"variant": "free",
|
|
4
|
-
"sha256": "
|
|
5
|
-
"js_sha256": "
|
|
6
|
-
"source_git_commit": "
|
|
7
|
-
"source_tree_sha256": "
|
|
4
|
+
"sha256": "073d0a600b6774e2fd8169b80a230a356924d6b379f83acb23db4a53b297aaea",
|
|
5
|
+
"js_sha256": "622fd0bd8270cd8a3a0a950222e7f9e4e43cc0a1669e7424db25fa4897ba4491",
|
|
6
|
+
"source_git_commit": "80ce8c21edb48777c5be251df48b9dffc569b278",
|
|
7
|
+
"source_tree_sha256": "7ecbd7af83b429beb58b4d6acc3981b996bd25bfe8ac13db9be0407eefff36aa",
|
|
8
8
|
"source_tree_dirty": false,
|
|
9
|
-
"timestamp": "2026-
|
|
9
|
+
"timestamp": "2026-11-10T22:49:13.709Z",
|
|
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": 18454403,
|
|
12
|
+
"js_size_bytes": 51613,
|
|
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.073d0a60.wasm",
|
|
16
|
+
"hashed_js_filename": "wasm_wrapper.622fd0bd.js"
|
|
17
17
|
}
|
package/wasm/wasm_wrapper.js
CHANGED
|
@@ -571,6 +571,31 @@ export function run_target_input(model_json, output_dir, modes_json, weather_epw
|
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
|
|
574
|
+
/**
|
|
575
|
+
* @param {string} model_json
|
|
576
|
+
* @param {string} stage
|
|
577
|
+
* @param {string | null} [weather_epw]
|
|
578
|
+
* @returns {string}
|
|
579
|
+
*/
|
|
580
|
+
export function run_target_stage(model_json, stage, weather_epw) {
|
|
581
|
+
let deferred4_0;
|
|
582
|
+
let deferred4_1;
|
|
583
|
+
try {
|
|
584
|
+
const ptr0 = passStringToWasm0(model_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
585
|
+
const len0 = WASM_VECTOR_LEN;
|
|
586
|
+
const ptr1 = passStringToWasm0(stage, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
587
|
+
const len1 = WASM_VECTOR_LEN;
|
|
588
|
+
var ptr2 = isLikeNone(weather_epw) ? 0 : passStringToWasm0(weather_epw, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
589
|
+
var len2 = WASM_VECTOR_LEN;
|
|
590
|
+
const ret = wasm.run_target_stage(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
591
|
+
deferred4_0 = ret[0];
|
|
592
|
+
deferred4_1 = ret[1];
|
|
593
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
594
|
+
} finally {
|
|
595
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
574
599
|
/**
|
|
575
600
|
* Stable runtime provenance marker for copied browser/WASM artifacts.
|
|
576
601
|
* @returns {string}
|
|
@@ -595,6 +620,15 @@ export function setup_panic_hook() {
|
|
|
595
620
|
wasm.setup_panic_hook();
|
|
596
621
|
}
|
|
597
622
|
|
|
623
|
+
/**
|
|
624
|
+
* Protocol 1: FHS actual export followed by core replay for operating sensitivities.
|
|
625
|
+
* @returns {number}
|
|
626
|
+
*/
|
|
627
|
+
export function target_heating_profile_protocol_version() {
|
|
628
|
+
const ret = wasm.target_heating_profile_protocol_version();
|
|
629
|
+
return ret >>> 0;
|
|
630
|
+
}
|
|
631
|
+
|
|
598
632
|
/**
|
|
599
633
|
* Versioned capability: old JavaScript glue silently ignores extra arguments.
|
|
600
634
|
* @returns {number}
|
|
@@ -1030,7 +1064,7 @@ function __wbg_get_imports(memory) {
|
|
|
1030
1064
|
table.set(offset + 2, true);
|
|
1031
1065
|
table.set(offset + 3, false);
|
|
1032
1066
|
},
|
|
1033
|
-
memory: memory || new WebAssembly.Memory({initial:
|
|
1067
|
+
memory: memory || new WebAssembly.Memory({initial:145,maximum:16384,shared:true}),
|
|
1034
1068
|
};
|
|
1035
1069
|
return {
|
|
1036
1070
|
__proto__: null,
|
|
@@ -1355,22 +1389,22 @@ async function __wbg_init(module_or_path, memory) {
|
|
|
1355
1389
|
export { initSync, __wbg_init as default };
|
|
1356
1390
|
|
|
1357
1391
|
// Build hash injected at build time
|
|
1358
|
-
export const BUILD_HASH = "
|
|
1359
|
-
export const BUILD_ID = "
|
|
1360
|
-
export const SOURCE_GIT_COMMIT = "
|
|
1361
|
-
export const SOURCE_TREE_SHA256 = "
|
|
1392
|
+
export const BUILD_HASH = "073d0a600b6774e2fd8169b80a230a356924d6b379f83acb23db4a53b297aaea";
|
|
1393
|
+
export const BUILD_ID = "20261110-224204";
|
|
1394
|
+
export const SOURCE_GIT_COMMIT = "80ce8c21edb48777c5be251df48b9dffc569b278";
|
|
1395
|
+
export const SOURCE_TREE_SHA256 = "7ecbd7af83b429beb58b4d6acc3981b996bd25bfe8ac13db9be0407eefff36aa";
|
|
1362
1396
|
export const SOURCE_TREE_DIRTY = false;
|
|
1363
1397
|
export const WASM_FILENAME = "wasm_wrapper_bg.wasm";
|
|
1364
1398
|
export const JS_FILENAME = "wasm_wrapper.js";
|
|
1365
1399
|
|
|
1366
1400
|
// Function to get the current build hash
|
|
1367
1401
|
export function getBuildHash() {
|
|
1368
|
-
return "
|
|
1402
|
+
return "073d0a600b6774e2fd8169b80a230a356924d6b379f83acb23db4a53b297aaea";
|
|
1369
1403
|
}
|
|
1370
1404
|
|
|
1371
1405
|
// Function to get the current build ID
|
|
1372
1406
|
export function getBuildId() {
|
|
1373
|
-
return "
|
|
1407
|
+
return "20261110-224204";
|
|
1374
1408
|
}
|
|
1375
1409
|
|
|
1376
1410
|
// Function to get the WASM filename
|
|
Binary file
|