@vulcan-energy/mcp-helper 0.2.5 → 0.3.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/README.md +56 -53
- package/dist/bin/vulcan-mcp-helper.js +48 -102
- package/dist/hem-target-runtime/browser-adapter.mjs +73 -41
- package/dist/hem-target-runtime/host.mjs +217 -17896
- package/dist/hem-target-runtime/preparation.mjs +18497 -0
- package/dist/hem-target-runtime/wasm-loader.mjs +1 -0
- package/dist/server.d.ts +26 -6
- package/dist/server.js +36 -92
- package/package.json +18 -12
- package/schemas/core-input.schema.json +8020 -0
- package/schemas/input_fhs.schema.json +4728 -0
- package/wasm/wasm_version.json +9 -9
- package/wasm/wasm_wrapper.js +6 -6
- package/wasm/wasm_wrapper_bg.wasm +0 -0
- package/dist/hem-target-runtime/csv-target.mjs +0 -126
package/wasm/wasm_version.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"build_id": "
|
|
2
|
+
"build_id": "20261111-220814",
|
|
3
3
|
"variant": "free",
|
|
4
|
-
"sha256": "
|
|
5
|
-
"js_sha256": "
|
|
6
|
-
"source_git_commit": "
|
|
7
|
-
"source_tree_sha256": "
|
|
4
|
+
"sha256": "941dcd45842e8d6ab7a50464eb87fa7d086d8c3a3ffd71a9c87cf0bc7d4f97fa",
|
|
5
|
+
"js_sha256": "786c04fc61477b572cea99441cacb53988c53dbacd039ab07d9eb6d6f9afb222",
|
|
6
|
+
"source_git_commit": "531fa8f9b0ed21071c1f38a77519acfe4eaaf95d",
|
|
7
|
+
"source_tree_sha256": "ca586a72059c9cd5d6552c1f38bb2e71ed189d0b12149bc19bae276aabf284aa",
|
|
8
8
|
"source_tree_dirty": false,
|
|
9
|
-
"timestamp": "2026-11-
|
|
9
|
+
"timestamp": "2026-11-11T22:18:17.128Z",
|
|
10
10
|
"runtime_origin": "Vulcan browser HEM runtime; source origin: Home Energy Foundry Limited; marker: HEF-VULCAN-RUNTIME-2026",
|
|
11
|
-
"size_bytes":
|
|
11
|
+
"size_bytes": 18470213,
|
|
12
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.941dcd45.wasm",
|
|
16
|
+
"hashed_js_filename": "wasm_wrapper.786c04fc.js"
|
|
17
17
|
}
|
package/wasm/wasm_wrapper.js
CHANGED
|
@@ -1389,22 +1389,22 @@ async function __wbg_init(module_or_path, memory) {
|
|
|
1389
1389
|
export { initSync, __wbg_init as default };
|
|
1390
1390
|
|
|
1391
1391
|
// 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 = "
|
|
1392
|
+
export const BUILD_HASH = "941dcd45842e8d6ab7a50464eb87fa7d086d8c3a3ffd71a9c87cf0bc7d4f97fa";
|
|
1393
|
+
export const BUILD_ID = "20261111-220814";
|
|
1394
|
+
export const SOURCE_GIT_COMMIT = "531fa8f9b0ed21071c1f38a77519acfe4eaaf95d";
|
|
1395
|
+
export const SOURCE_TREE_SHA256 = "ca586a72059c9cd5d6552c1f38bb2e71ed189d0b12149bc19bae276aabf284aa";
|
|
1396
1396
|
export const SOURCE_TREE_DIRTY = false;
|
|
1397
1397
|
export const WASM_FILENAME = "wasm_wrapper_bg.wasm";
|
|
1398
1398
|
export const JS_FILENAME = "wasm_wrapper.js";
|
|
1399
1399
|
|
|
1400
1400
|
// Function to get the current build hash
|
|
1401
1401
|
export function getBuildHash() {
|
|
1402
|
-
return "
|
|
1402
|
+
return "941dcd45842e8d6ab7a50464eb87fa7d086d8c3a3ffd71a9c87cf0bc7d4f97fa";
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
1405
|
// Function to get the current build ID
|
|
1406
1406
|
export function getBuildId() {
|
|
1407
|
-
return "
|
|
1407
|
+
return "20261111-220814";
|
|
1408
1408
|
}
|
|
1409
1409
|
|
|
1410
1410
|
// Function to get the WASM filename
|
|
Binary file
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
// ../community/packages/geometry-document/src/geometryCsvSections.ts
|
|
2
|
-
function parseGeometryCsvLine(line) {
|
|
3
|
-
const fields = [];
|
|
4
|
-
let current = "";
|
|
5
|
-
let inQuotes = false;
|
|
6
|
-
let index = 0;
|
|
7
|
-
while (index < line.length) {
|
|
8
|
-
const character = line[index];
|
|
9
|
-
if (inQuotes) {
|
|
10
|
-
if (character === '"') {
|
|
11
|
-
if (index + 1 < line.length && line[index + 1] === '"') {
|
|
12
|
-
current += '"';
|
|
13
|
-
index += 2;
|
|
14
|
-
} else {
|
|
15
|
-
inQuotes = false;
|
|
16
|
-
index += 1;
|
|
17
|
-
}
|
|
18
|
-
} else {
|
|
19
|
-
current += character;
|
|
20
|
-
index += 1;
|
|
21
|
-
}
|
|
22
|
-
} else if (character === '"') {
|
|
23
|
-
inQuotes = true;
|
|
24
|
-
index += 1;
|
|
25
|
-
} else if (character === ",") {
|
|
26
|
-
fields.push(current);
|
|
27
|
-
current = "";
|
|
28
|
-
index += 1;
|
|
29
|
-
} else {
|
|
30
|
-
current += character;
|
|
31
|
-
index += 1;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
fields.push(current);
|
|
35
|
-
return fields;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// ../community/packages/geometry-editor/src/geometry/io/csvSectionRows.ts
|
|
39
|
-
var parseCsvLine = parseGeometryCsvLine;
|
|
40
|
-
function csvMetadataValue(csv, key) {
|
|
41
|
-
const rows = csv.replace(/^\uFEFF/, "").split(/\r?\n/).map(parseCsvLine);
|
|
42
|
-
const end = rows.findIndex((fields) => fields.every((field) => !field.trim()));
|
|
43
|
-
const values = new Set(rows.slice(0, end === -1 ? void 0 : end).filter((fields) => fields[0]?.replace(/^#\s*/, "").trim() === key).map((fields) => fields[1]?.trim() ?? ""));
|
|
44
|
-
if (values.size > 1) throw new Error(`CSV contains conflicting ${key} metadata`);
|
|
45
|
-
return values.values().next().value;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// ../community/packages/geometry-editor/src/lib/workspacePaths.ts
|
|
49
|
-
var DEFAULT_DEFAULTS_PATH = "input/defaults/defaults_template.json";
|
|
50
|
-
var LEGACY_DEFAULT_DEFAULTS_PATH = "input/batch_parameters/base_json/defaults_template.json";
|
|
51
|
-
function isLegacyDefaultsTemplatePath(p) {
|
|
52
|
-
const n = p.trim().replace(/\\/g, "/");
|
|
53
|
-
return n === LEGACY_DEFAULT_DEFAULTS_PATH || n.endsWith("/batch_parameters/base_json/defaults_template.json");
|
|
54
|
-
}
|
|
55
|
-
var LEGACY_SUFFIX = "batch_parameters/base_json/defaults_template.json";
|
|
56
|
-
var CANONICAL_SUFFIX = "defaults/defaults_template.json";
|
|
57
|
-
function siblingCanonicalDefaultsPathForRead(legacyPath) {
|
|
58
|
-
const n = legacyPath.trim().replace(/\\/g, "/");
|
|
59
|
-
const idx = n.lastIndexOf(LEGACY_SUFFIX);
|
|
60
|
-
if (idx >= 0) {
|
|
61
|
-
return `${n.slice(0, idx)}${CANONICAL_SUFFIX}`;
|
|
62
|
-
}
|
|
63
|
-
return DEFAULT_DEFAULTS_PATH;
|
|
64
|
-
}
|
|
65
|
-
function defaultsReadPathAttempts(workspaceRelativePath) {
|
|
66
|
-
const t = workspaceRelativePath.trim();
|
|
67
|
-
if (!t) return [];
|
|
68
|
-
if (isLegacyDefaultsTemplatePath(t)) {
|
|
69
|
-
return [siblingCanonicalDefaultsPathForRead(t), t];
|
|
70
|
-
}
|
|
71
|
-
return [t];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// ../hem-target-runtime/src/hem/targets.ts
|
|
75
|
-
var HEM_TARGETS = [
|
|
76
|
-
{
|
|
77
|
-
id: "rust-fhs-a7-62d3df70-c5ba2673-v1",
|
|
78
|
-
label: "Rust HEM:FHS 1.0.0a7",
|
|
79
|
-
runtime: "rust",
|
|
80
|
-
version: "1.0.0a7",
|
|
81
|
-
engineVersion: "1.0.0a7",
|
|
82
|
-
wrapperVersion: "1.0.0a7",
|
|
83
|
-
wrapper: "fhs",
|
|
84
|
-
engineCommit: "62d3df705690f33b3fc3e905c9971d4f3743bf2e",
|
|
85
|
-
wrapperCommit: "c5ba2673fbd886cfe4fb528f61b376bdf406ebbd",
|
|
86
|
-
conversionProfile: "current_rust_fhs"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
id: "python-fhs-a9-918addad-b9b90138-v1",
|
|
90
|
-
label: "Python HEM:FHS 1.0.0a9",
|
|
91
|
-
runtime: "python",
|
|
92
|
-
version: "1.0.0a9",
|
|
93
|
-
engineVersion: "1.0.0a9",
|
|
94
|
-
wrapperVersion: "1.0.0a9",
|
|
95
|
-
wrapper: "fhs",
|
|
96
|
-
engineCommit: "918addad2f9ffbcd9c7a4ed73497d047210be2d2",
|
|
97
|
-
wrapperCommit: "b9b901382feb0e5d27f969532842250147fb4068",
|
|
98
|
-
conversionProfile: "python_fhs_a9"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
id: "python-fhs-a8-f2ab6cf7-8ca182b0-v1",
|
|
102
|
-
label: "Python HEM:FHS 1.0.0a8",
|
|
103
|
-
runtime: "python",
|
|
104
|
-
version: "1.0.0a8",
|
|
105
|
-
engineVersion: "1.0.0a8",
|
|
106
|
-
wrapperVersion: "1.0.0a8",
|
|
107
|
-
wrapper: "fhs",
|
|
108
|
-
engineCommit: "f2ab6cf78860c36d260cb21396b747cc372f2c9d",
|
|
109
|
-
wrapperCommit: "8ca182b0171a3a928059a9c0ec0145ecefe3f4e9",
|
|
110
|
-
conversionProfile: "python_fhs_a8"
|
|
111
|
-
}
|
|
112
|
-
];
|
|
113
|
-
var RECOMMENDED_HEM_TARGET = HEM_TARGETS[0].id;
|
|
114
|
-
var UNPINNED_CSV_TARGET = "rust-fhs-a7-62d3df70-c5ba2673-v1";
|
|
115
|
-
|
|
116
|
-
// ../hem-target-runtime/src/hem/csvTarget.ts
|
|
117
|
-
function csvTarget(csv) {
|
|
118
|
-
return csvMetadataValue(csv, "TargetBundleId") || UNPINNED_CSV_TARGET;
|
|
119
|
-
}
|
|
120
|
-
function csvDefaultsReadPaths(csv) {
|
|
121
|
-
return defaultsReadPathAttempts(csvMetadataValue(csv, "DefaultsPath") ?? "");
|
|
122
|
-
}
|
|
123
|
-
export {
|
|
124
|
-
csvDefaultsReadPaths,
|
|
125
|
-
csvTarget
|
|
126
|
-
};
|