@vulcan-energy/mcp-helper 0.1.5 → 0.1.7
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/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vulcan-energy/mcp-helper",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Vulcan MCP Helper Service for Cursor, Claude Desktop, and other local MCP clients",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/baziyer/rust-hem-runner.git",
|
|
8
|
+
"directory": "vulcan-mcp-server"
|
|
9
|
+
},
|
|
5
10
|
"type": "module",
|
|
6
11
|
"main": "./dist/server.js",
|
|
7
12
|
"types": "./dist/server.d.ts",
|
|
@@ -14,6 +14,50 @@
|
|
|
14
14
|
// This file is kept similar to workerHelpers.js, but intended to be used in
|
|
15
15
|
// a bundlerless ES module environment (which has a few differences).
|
|
16
16
|
|
|
17
|
+
// Vulcan patch: Rayon child workers can emit FHS postprocessing files.
|
|
18
|
+
// wasm-bindgen-rayon regenerates this helper, so scripts/deploy/build-wasm.sh
|
|
19
|
+
// reapplies this bridge after every wasm-pack build.
|
|
20
|
+
const VULCAN_RAYON_FS_BRIDGE_VERSION = 1;
|
|
21
|
+
const VULCAN_FS_REQUEST_TYPE = 'file_system';
|
|
22
|
+
|
|
23
|
+
function vulcanRayonFsMessageId(operation) {
|
|
24
|
+
return `rayon_${operation}_${Date.now()}_${Math.random()}`;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function postVulcanRayonFileRequest(operation, path, content) {
|
|
28
|
+
const message = {
|
|
29
|
+
type: VULCAN_FS_REQUEST_TYPE,
|
|
30
|
+
operation,
|
|
31
|
+
path,
|
|
32
|
+
messageId: vulcanRayonFsMessageId(operation)
|
|
33
|
+
};
|
|
34
|
+
if (typeof content === 'string') {
|
|
35
|
+
message.content = content;
|
|
36
|
+
}
|
|
37
|
+
self.postMessage(message);
|
|
38
|
+
return { ok: true };
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function installVulcanRayonFileBridge(scope) {
|
|
42
|
+
if (typeof scope.write_file !== 'function') {
|
|
43
|
+
scope.write_file = (path, content) => {
|
|
44
|
+
return postVulcanRayonFileRequest('write_file', path, content);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
if (typeof scope.create_dir_all !== 'function') {
|
|
48
|
+
scope.create_dir_all = (path) => {
|
|
49
|
+
return postVulcanRayonFileRequest('create_dir_all', path);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
if (typeof scope.delete_file !== 'function') {
|
|
53
|
+
scope.delete_file = (path) => {
|
|
54
|
+
return postVulcanRayonFileRequest('delete_file', path);
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
installVulcanRayonFileBridge(self);
|
|
60
|
+
|
|
17
61
|
function waitForMsgType(target, type) {
|
|
18
62
|
return new Promise(resolve => {
|
|
19
63
|
target.addEventListener('message', function onMsg({ data }) {
|
|
@@ -67,6 +111,11 @@ export async function startWorkers(module, memory, builder) {
|
|
|
67
111
|
const worker = new Worker(url, {
|
|
68
112
|
type: 'module'
|
|
69
113
|
});
|
|
114
|
+
worker.addEventListener('message', ({ data }) => {
|
|
115
|
+
if (data && data.type === VULCAN_FS_REQUEST_TYPE) {
|
|
116
|
+
self.postMessage(data);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
70
119
|
worker.postMessage(workerInit);
|
|
71
120
|
await waitForMsgType(worker, 'wasm_bindgen_worker_ready');
|
|
72
121
|
URL.revokeObjectURL(url);
|
package/wasm/wasm_version.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"build_id": "
|
|
3
|
-
"sha256": "
|
|
4
|
-
"timestamp": "2026-
|
|
2
|
+
"build_id": "20260715-095801",
|
|
3
|
+
"sha256": "feca0f78e3e6ef49282aa38071359d171ca3e5d200060de2631a9b5c86a26e6e",
|
|
4
|
+
"timestamp": "2026-07-15T09:58:01+00:00",
|
|
5
5
|
"runtime_origin": "Vulcan browser HEM runtime; source origin: Home Energy Foundry Limited; marker: HEF-VULCAN-RUNTIME-2026",
|
|
6
|
-
"size_bytes":
|
|
6
|
+
"size_bytes": 15968878,
|
|
7
7
|
"wasm_filename": "wasm_wrapper_bg.wasm",
|
|
8
8
|
"js_filename": "wasm_wrapper.js"
|
|
9
9
|
}
|
package/wasm/wasm_wrapper.js
CHANGED
|
@@ -485,7 +485,7 @@ export function solve_thermal_bridge_problem(problem_json) {
|
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
/**
|
|
488
|
-
* Run FHS wrapper preflight (schema +
|
|
488
|
+
* Run FHS wrapper preflight (schema + FHS compliance preprocessing) without simulation.
|
|
489
489
|
* @param {string} model_json
|
|
490
490
|
* @returns {string}
|
|
491
491
|
*/
|
|
@@ -1251,19 +1251,19 @@ async function __wbg_init(module_or_path, memory) {
|
|
|
1251
1251
|
export { initSync, __wbg_init as default };
|
|
1252
1252
|
|
|
1253
1253
|
// Build hash injected at build time
|
|
1254
|
-
export const BUILD_HASH = "
|
|
1255
|
-
export const BUILD_ID = "
|
|
1254
|
+
export const BUILD_HASH = "feca0f78e3e6ef49282aa38071359d171ca3e5d200060de2631a9b5c86a26e6e";
|
|
1255
|
+
export const BUILD_ID = "20260715-095801";
|
|
1256
1256
|
export const WASM_FILENAME = "wasm_wrapper_bg.wasm";
|
|
1257
1257
|
export const JS_FILENAME = "wasm_wrapper.js";
|
|
1258
1258
|
|
|
1259
1259
|
// Function to get the current build hash
|
|
1260
1260
|
export function getBuildHash() {
|
|
1261
|
-
return "
|
|
1261
|
+
return "feca0f78e3e6ef49282aa38071359d171ca3e5d200060de2631a9b5c86a26e6e";
|
|
1262
1262
|
}
|
|
1263
1263
|
|
|
1264
1264
|
// Function to get the current build ID
|
|
1265
1265
|
export function getBuildId() {
|
|
1266
|
-
return "
|
|
1266
|
+
return "20260715-095801";
|
|
1267
1267
|
}
|
|
1268
1268
|
|
|
1269
1269
|
// Function to get the WASM filename
|
|
Binary file
|