@vulcan-energy/mcp-helper 0.2.2 → 0.2.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/hem-target-runtime/browser-adapter.mjs +1 -1
- package/dist/hem-target-runtime/host.mjs +3 -1
- package/dist/hem-target-runtime/python-worker.mjs +1 -1
- package/dist/hem-target-runtime/release-manifests.mjs +3 -3
- package/dist/hem-target-runtime/rust-worker.mjs +1 -1
- package/package.json +1 -1
- package/wasm/wasm_version.json +9 -9
- package/wasm/wasm_wrapper.js +6 -6
- package/wasm/wasm_wrapper_bg.wasm +0 -0
|
@@ -223,7 +223,7 @@ export async function runTargetBrowser(options, dependencies = {}) {
|
|
|
223
223
|
return run(request);
|
|
224
224
|
}, { manifest, operation: options.operation, csv: options.csv, config: options.config, configName: options.configName, jobId });
|
|
225
225
|
if (interrupted) throw interrupted;
|
|
226
|
-
await progress({ status: 'completed', progress: 100, targetBundleId: manifest.bundleId });
|
|
226
|
+
await progress({ status: 'completed', progress: 100, targetBundleId: manifest.bundleId, ...(result?.warnings?.length ? { warnings: result.warnings } : {}) });
|
|
227
227
|
return result;
|
|
228
228
|
} catch (caught) {
|
|
229
229
|
const error = interrupted ?? caught;
|
|
@@ -7181,8 +7181,10 @@ async function prepareTargetBatch(config, snapshot, manifest, configName, runId,
|
|
|
7181
7181
|
const result = JSON.parse(prepare(JSON.stringify(request), JSON.stringify(snippets)));
|
|
7182
7182
|
if (!result.ok) throw new Error(result.error ?? "Target preparation failed");
|
|
7183
7183
|
if (!result.output.validation.is_valid) throw new Error(`Model ${sourceName}: ${result.output.validation.errors.map((error) => error.user_message ?? error.message ?? JSON.stringify(error)).join("; ")}`);
|
|
7184
|
+
const warnings = [...new Set((result.output.schema_omissions ?? []).filter((w) => w.code === "W_TARGET_INPUT").map((w) => w.message))];
|
|
7184
7185
|
jobs.push({
|
|
7185
7186
|
name: `${name}_${index}`,
|
|
7187
|
+
...warnings.length ? { warnings } : {},
|
|
7186
7188
|
input: cloneForHemValidationJson(JSON.stringify(result.output.model)),
|
|
7187
7189
|
modes,
|
|
7188
7190
|
sourceCsv: source.csv,
|
|
@@ -7317,7 +7319,7 @@ async function run(request) {
|
|
|
7317
7319
|
clearTimeout(startup);
|
|
7318
7320
|
worker.terminate();
|
|
7319
7321
|
if (error) reject(new Error(error));
|
|
7320
|
-
else resolve({ targetBundleId: target.id, status: "complete" });
|
|
7322
|
+
else resolve({ targetBundleId: target.id, status: "complete", warnings: jobs.flatMap((job) => (job.warnings ?? []).map((warning) => `${job.name}: ${warning}`)) });
|
|
7321
7323
|
};
|
|
7322
7324
|
const startup = setTimeout(() => finish("Target worker startup exceeded 120 seconds"), 12e4);
|
|
7323
7325
|
worker.onerror = (event) => finish(event.message || "Target worker failed");
|
|
@@ -854,7 +854,7 @@ async function executePreparedJobs(manifest2, bundleId, jobId, jobs, execute, wr
|
|
|
854
854
|
const archive = job.archiveDirectory ?? job.outputDirectory;
|
|
855
855
|
const inputSha256 = await sha256(new TextEncoder().encode(job.input));
|
|
856
856
|
if (job.weather && (!job.weather.epw.trim() || await sha256(new TextEncoder().encode(job.weather.epw)) !== job.weather.sha256)) throw new Error("Prepared weather hash mismatch or empty EPW");
|
|
857
|
-
const provenance = { ...job.weather ? { weather: { path: job.weather.path, sha256: job.weather.sha256 } } : {}, target: manifest2, inputSha256, modes: job.modes, jobId, name: job.name };
|
|
857
|
+
const provenance = { ...job.weather ? { weather: { path: job.weather.path, sha256: job.weather.sha256 } } : {}, target: manifest2, inputSha256, modes: job.modes, jobId, name: job.name, ...job.warnings?.length ? { warnings: job.warnings } : {} };
|
|
858
858
|
try {
|
|
859
859
|
await write2(`${archive}/target-run.json`, JSON.stringify({ ...provenance, status: "running" }));
|
|
860
860
|
if (archive !== job.outputDirectory) await write2(`${job.outputDirectory}/target-run.json`, JSON.stringify({ ...provenance, status: "running", archive }));
|
|
@@ -41,9 +41,9 @@ var RECOMMENDED_HEM_TARGET = HEM_TARGETS[0].id;
|
|
|
41
41
|
|
|
42
42
|
// ../hem-target-runtime/src/hem/targetAssets.ts
|
|
43
43
|
var RELEASE_MANIFEST_HASHES = {
|
|
44
|
-
"rust-fhs-a7-62d3df70-c5ba2673-v1": "
|
|
45
|
-
"python-fhs-a8-f2ab6cf7-8ca182b0-v1": "
|
|
46
|
-
"python-fhs-a9-918addad-b9b90138-v1": "
|
|
44
|
+
"rust-fhs-a7-62d3df70-c5ba2673-v1": "117bc2684a5dc0744497e865e8df27bf61e87f1907a9a86e6b71ab238b94ce96",
|
|
45
|
+
"python-fhs-a8-f2ab6cf7-8ca182b0-v1": "671617990795f3d0651fc9ec839ced0efe480ac4133e087a3c64b446a24127e0",
|
|
46
|
+
"python-fhs-a9-918addad-b9b90138-v1": "3558a43a589195c09045a59c21ab180e81f77ea5fd0f45f81aabe51670573fcc"
|
|
47
47
|
};
|
|
48
48
|
export {
|
|
49
49
|
RELEASE_MANIFEST_HASHES
|
|
@@ -259,7 +259,7 @@ async function executePreparedJobs(manifest2, bundleId, jobId, jobs, execute, wr
|
|
|
259
259
|
const archive = job.archiveDirectory ?? job.outputDirectory;
|
|
260
260
|
const inputSha256 = await sha256(new TextEncoder().encode(job.input));
|
|
261
261
|
if (job.weather && (!job.weather.epw.trim() || await sha256(new TextEncoder().encode(job.weather.epw)) !== job.weather.sha256)) throw new Error("Prepared weather hash mismatch or empty EPW");
|
|
262
|
-
const provenance = { ...job.weather ? { weather: { path: job.weather.path, sha256: job.weather.sha256 } } : {}, target: manifest2, inputSha256, modes: job.modes, jobId, name: job.name };
|
|
262
|
+
const provenance = { ...job.weather ? { weather: { path: job.weather.path, sha256: job.weather.sha256 } } : {}, target: manifest2, inputSha256, modes: job.modes, jobId, name: job.name, ...job.warnings?.length ? { warnings: job.warnings } : {} };
|
|
263
263
|
try {
|
|
264
264
|
await write2(`${archive}/target-run.json`, JSON.stringify({ ...provenance, status: "running" }));
|
|
265
265
|
if (archive !== job.outputDirectory) await write2(`${job.outputDirectory}/target-run.json`, JSON.stringify({ ...provenance, status: "running", archive }));
|
package/package.json
CHANGED
package/wasm/wasm_version.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"build_id": "20261008-
|
|
2
|
+
"build_id": "20261008-233909",
|
|
3
3
|
"variant": "free",
|
|
4
|
-
"sha256": "
|
|
5
|
-
"js_sha256": "
|
|
6
|
-
"source_git_commit": "
|
|
7
|
-
"source_tree_sha256": "
|
|
4
|
+
"sha256": "e243acc7ec7a12dcdccd8737bc9c94c9c6615d4283085387583a8f2c09570f27",
|
|
5
|
+
"js_sha256": "f6e22d12f8386b779fd917765d283f81755c317fa423b683e83d052e9f3959d3",
|
|
6
|
+
"source_git_commit": "1421ba5feead2eb63a3a4794d8f7e0362136ba7e",
|
|
7
|
+
"source_tree_sha256": "7a6edbb85fb6c06df127e2d33348792eb212565117bf0c638aa42d7232b5494d",
|
|
8
8
|
"source_tree_dirty": false,
|
|
9
|
-
"timestamp": "2026-10-
|
|
9
|
+
"timestamp": "2026-10-08T23:45:09.757Z",
|
|
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": 17761305,
|
|
12
12
|
"js_size_bytes": 50393,
|
|
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.e243acc7.wasm",
|
|
16
|
+
"hashed_js_filename": "wasm_wrapper.f6e22d12.js"
|
|
17
17
|
}
|
package/wasm/wasm_wrapper.js
CHANGED
|
@@ -1355,22 +1355,22 @@ async function __wbg_init(module_or_path, memory) {
|
|
|
1355
1355
|
export { initSync, __wbg_init as default };
|
|
1356
1356
|
|
|
1357
1357
|
// Build hash injected at build time
|
|
1358
|
-
export const BUILD_HASH = "
|
|
1359
|
-
export const BUILD_ID = "20261008-
|
|
1360
|
-
export const SOURCE_GIT_COMMIT = "
|
|
1361
|
-
export const SOURCE_TREE_SHA256 = "
|
|
1358
|
+
export const BUILD_HASH = "e243acc7ec7a12dcdccd8737bc9c94c9c6615d4283085387583a8f2c09570f27";
|
|
1359
|
+
export const BUILD_ID = "20261008-233909";
|
|
1360
|
+
export const SOURCE_GIT_COMMIT = "1421ba5feead2eb63a3a4794d8f7e0362136ba7e";
|
|
1361
|
+
export const SOURCE_TREE_SHA256 = "7a6edbb85fb6c06df127e2d33348792eb212565117bf0c638aa42d7232b5494d";
|
|
1362
1362
|
export const SOURCE_TREE_DIRTY = false;
|
|
1363
1363
|
export const WASM_FILENAME = "wasm_wrapper_bg.wasm";
|
|
1364
1364
|
export const JS_FILENAME = "wasm_wrapper.js";
|
|
1365
1365
|
|
|
1366
1366
|
// Function to get the current build hash
|
|
1367
1367
|
export function getBuildHash() {
|
|
1368
|
-
return "
|
|
1368
|
+
return "e243acc7ec7a12dcdccd8737bc9c94c9c6615d4283085387583a8f2c09570f27";
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
1371
|
// Function to get the current build ID
|
|
1372
1372
|
export function getBuildId() {
|
|
1373
|
-
return "20261008-
|
|
1373
|
+
return "20261008-233909";
|
|
1374
1374
|
}
|
|
1375
1375
|
|
|
1376
1376
|
// Function to get the WASM filename
|
|
Binary file
|