@vulcan-energy/mcp-helper 0.1.7 → 0.2.2
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 +51 -5
- package/dist/bin/vulcan-mcp-helper.d.ts +0 -8
- package/dist/bin/vulcan-mcp-helper.js +126 -50
- package/dist/hem-target-runtime/browser-adapter.mjs +260 -0
- package/dist/hem-target-runtime/host.mjs +7362 -0
- package/dist/hem-target-runtime/python-worker.mjs +1005 -0
- package/dist/hem-target-runtime/release-manifests.mjs +50 -0
- package/dist/hem-target-runtime/rust-worker.mjs +460 -0
- package/dist/{src/server.d.ts → server.d.ts} +3 -2
- package/dist/server.js +125 -0
- package/package.json +6 -4
- package/wasm/wasm_version.json +13 -5
- package/wasm/wasm_wrapper.js +163 -56
- package/wasm/wasm_wrapper_bg.wasm +0 -0
- package/dist/bin/vulcan-mcp-helper.d.ts.map +0 -1
- package/dist/bin/vulcan-mcp-helper.js.map +0 -1
- package/dist/src/engine/filesystem.d.ts +0 -30
- package/dist/src/engine/filesystem.d.ts.map +0 -1
- package/dist/src/engine/filesystem.js +0 -61
- package/dist/src/engine/filesystem.js.map +0 -1
- package/dist/src/engine/licenseKeys.d.ts +0 -2
- package/dist/src/engine/licenseKeys.d.ts.map +0 -1
- package/dist/src/engine/licenseKeys.js +0 -9
- package/dist/src/engine/licenseKeys.js.map +0 -1
- package/dist/src/engine/wasm.d.ts +0 -23
- package/dist/src/engine/wasm.d.ts.map +0 -1
- package/dist/src/engine/wasm.js +0 -335
- package/dist/src/engine/wasm.js.map +0 -1
- package/dist/src/engine/workspace.d.ts +0 -23
- package/dist/src/engine/workspace.d.ts.map +0 -1
- package/dist/src/engine/workspace.js +0 -138
- package/dist/src/engine/workspace.js.map +0 -1
- package/dist/src/server.d.ts.map +0 -1
- package/dist/src/server.js +0 -172
- package/dist/src/server.js.map +0 -1
- package/dist/src/tools/autoThermalBridges.d.ts +0 -8
- package/dist/src/tools/autoThermalBridges.d.ts.map +0 -1
- package/dist/src/tools/autoThermalBridges.js +0 -12
- package/dist/src/tools/autoThermalBridges.js.map +0 -1
- package/dist/src/tools/calculateMetrics.d.ts +0 -7
- package/dist/src/tools/calculateMetrics.d.ts.map +0 -1
- package/dist/src/tools/calculateMetrics.js +0 -23
- package/dist/src/tools/calculateMetrics.js.map +0 -1
- package/dist/src/tools/createBatchConfig.d.ts +0 -7
- package/dist/src/tools/createBatchConfig.d.ts.map +0 -1
- package/dist/src/tools/createBatchConfig.js +0 -8
- package/dist/src/tools/createBatchConfig.js.map +0 -1
- package/dist/src/tools/geometryCsvConversion.d.ts +0 -3
- package/dist/src/tools/geometryCsvConversion.d.ts.map +0 -1
- package/dist/src/tools/geometryCsvConversion.js +0 -2
- package/dist/src/tools/geometryCsvConversion.js.map +0 -1
- package/dist/src/tools/getBatchStatus.d.ts +0 -7
- package/dist/src/tools/getBatchStatus.d.ts.map +0 -1
- package/dist/src/tools/getBatchStatus.js +0 -8
- package/dist/src/tools/getBatchStatus.js.map +0 -1
- package/dist/src/tools/index.d.ts +0 -100
- package/dist/src/tools/index.d.ts.map +0 -1
- package/dist/src/tools/index.js +0 -500
- package/dist/src/tools/index.js.map +0 -1
- package/dist/src/tools/listBatchModels.d.ts +0 -8
- package/dist/src/tools/listBatchModels.d.ts.map +0 -1
- package/dist/src/tools/listBatchModels.js +0 -8
- package/dist/src/tools/listBatchModels.js.map +0 -1
- package/dist/src/tools/listCsvColumns.d.ts +0 -8
- package/dist/src/tools/listCsvColumns.d.ts.map +0 -1
- package/dist/src/tools/listCsvColumns.js +0 -8
- package/dist/src/tools/listCsvColumns.js.map +0 -1
- package/dist/src/tools/listParameters.d.ts +0 -7
- package/dist/src/tools/listParameters.d.ts.map +0 -1
- package/dist/src/tools/listParameters.js +0 -8
- package/dist/src/tools/listParameters.js.map +0 -1
- package/dist/src/tools/mergeCsvToJson.d.ts +0 -21
- package/dist/src/tools/mergeCsvToJson.d.ts.map +0 -1
- package/dist/src/tools/mergeCsvToJson.js +0 -44
- package/dist/src/tools/mergeCsvToJson.js.map +0 -1
- package/dist/src/tools/runBatch.d.ts +0 -7
- package/dist/src/tools/runBatch.d.ts.map +0 -1
- package/dist/src/tools/runBatch.js +0 -41
- package/dist/src/tools/runBatch.js.map +0 -1
- package/dist/src/tools/saveParameter.d.ts +0 -7
- package/dist/src/tools/saveParameter.d.ts.map +0 -1
- package/dist/src/tools/saveParameter.js +0 -23
- package/dist/src/tools/saveParameter.js.map +0 -1
- package/dist/src/tools/validateGeometryCsv.d.ts +0 -8
- package/dist/src/tools/validateGeometryCsv.d.ts.map +0 -1
- package/dist/src/tools/validateGeometryCsv.js +0 -12
- package/dist/src/tools/validateGeometryCsv.js.map +0 -1
- package/dist/src/tools/validateThermalBridges.d.ts +0 -9
- package/dist/src/tools/validateThermalBridges.d.ts.map +0 -1
- package/dist/src/tools/validateThermalBridges.js +0 -13
- package/dist/src/tools/validateThermalBridges.js.map +0 -1
- package/dist/src/tools/viewParameter.d.ts +0 -7
- package/dist/src/tools/viewParameter.d.ts.map +0 -1
- package/dist/src/tools/viewParameter.js +0 -8
- package/dist/src/tools/viewParameter.js.map +0 -1
- package/dist/src/utils/batchConfig.d.ts +0 -32
- package/dist/src/utils/batchConfig.d.ts.map +0 -1
- package/dist/src/utils/batchConfig.js +0 -148
- package/dist/src/utils/batchConfig.js.map +0 -1
- package/dist/src/utils/defaultsPaths.d.ts +0 -10
- package/dist/src/utils/defaultsPaths.d.ts.map +0 -1
- package/dist/src/utils/defaultsPaths.js +0 -47
- package/dist/src/utils/defaultsPaths.js.map +0 -1
- package/dist/src/utils/fileLoader.d.ts +0 -40
- package/dist/src/utils/fileLoader.d.ts.map +0 -1
- package/dist/src/utils/fileLoader.js +0 -149
- package/dist/src/utils/fileLoader.js.map +0 -1
- package/dist/src/utils/schemaPaths.d.ts +0 -2
- package/dist/src/utils/schemaPaths.d.ts.map +0 -1
- package/dist/src/utils/schemaPaths.js +0 -12
- package/dist/src/utils/schemaPaths.js.map +0 -1
- package/dist/src/utils/tls.d.ts +0 -7
- package/dist/src/utils/tls.d.ts.map +0 -1
- package/dist/src/utils/tls.js +0 -183
- package/dist/src/utils/tls.js.map +0 -1
package/wasm/wasm_wrapper.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* PROPRIETARY SOFTWARE LICENSE
|
|
3
|
-
*
|
|
3
|
+
*
|
|
4
4
|
* Copyright (c) 2026 Home Energy Foundry Limited
|
|
5
5
|
* Runtime origin marker: HEF-VULCAN-RUNTIME-2026
|
|
6
|
-
*
|
|
7
|
-
* This software and associated documentation files (the "Software") are the
|
|
8
|
-
* proprietary and confidential information of Home Energy Foundry Limited.
|
|
6
|
+
*
|
|
7
|
+
* This software and associated documentation files (the "Software") are the
|
|
8
|
+
* proprietary and confidential information of Home Energy Foundry Limited.
|
|
9
9
|
* The Software is licensed, not sold.
|
|
10
|
-
*
|
|
11
|
-
* All rights reserved. No part of this Software may be reproduced, distributed,
|
|
12
|
-
* or transmitted in any form or by any means, including photocopying, recording,
|
|
13
|
-
* or other electronic or mechanical methods, without the prior written permission
|
|
10
|
+
*
|
|
11
|
+
* All rights reserved. No part of this Software may be reproduced, distributed,
|
|
12
|
+
* or transmitted in any form or by any means, including photocopying, recording,
|
|
13
|
+
* or other electronic or mechanical methods, without the prior written permission
|
|
14
14
|
* of Home Energy Foundry Limited.
|
|
15
|
-
*
|
|
16
|
-
* This Software is provided "AS IS" without warranty of any kind, either express
|
|
17
|
-
* or implied, including but not limited to the implied warranties of
|
|
15
|
+
*
|
|
16
|
+
* This Software is provided "AS IS" without warranty of any kind, either express
|
|
17
|
+
* or implied, including but not limited to the implied warranties of
|
|
18
18
|
* merchantability and fitness for a particular purpose.
|
|
19
|
-
*
|
|
19
|
+
*
|
|
20
20
|
* For licensing inquiries, contact: info@usevulcan.app
|
|
21
21
|
*/
|
|
22
22
|
|
|
@@ -228,7 +228,12 @@ export function hem_pv_micro_timestep_kwh(peak_power_kw, ventilation_code, simul
|
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
|
-
* Initialize the
|
|
231
|
+
* Initialize the WASM module without starting Rayon implicitly.
|
|
232
|
+
*
|
|
233
|
+
* Browser contexts that run HEM workloads must explicitly await
|
|
234
|
+
* `initialize_rayon_thread_pool`. SAP XML calculation is single-threaded and
|
|
235
|
+
* deliberately does not start Rayon, which keeps its verified Blob worker
|
|
236
|
+
* clear of wasm-bindgen-rayon's dynamic main-module import.
|
|
232
237
|
*/
|
|
233
238
|
export function init() {
|
|
234
239
|
wasm.init();
|
|
@@ -243,6 +248,18 @@ export function initThreadPool(num_threads) {
|
|
|
243
248
|
return ret;
|
|
244
249
|
}
|
|
245
250
|
|
|
251
|
+
/**
|
|
252
|
+
* Explicitly initialize and await the Rayon worker pool for HEM workloads.
|
|
253
|
+
* This must be called from a same-origin module URL, never the verified SAP
|
|
254
|
+
* Blob child runtime.
|
|
255
|
+
* @param {number} num_threads
|
|
256
|
+
* @returns {Promise<any>}
|
|
257
|
+
*/
|
|
258
|
+
export function initialize_rayon_thread_pool(num_threads) {
|
|
259
|
+
const ret = wasm.initialize_rayon_thread_pool(num_threads);
|
|
260
|
+
return ret;
|
|
261
|
+
}
|
|
262
|
+
|
|
246
263
|
/**
|
|
247
264
|
* List files in a directory using the JavaScript fileService
|
|
248
265
|
* @param {string} _path
|
|
@@ -294,6 +311,31 @@ export function metadata_hem_core_version() {
|
|
|
294
311
|
}
|
|
295
312
|
}
|
|
296
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Prepare a single effective target scenario without starting a calculation.
|
|
316
|
+
* request_json is the explicit Community TransformRequest; snippets_json is an
|
|
317
|
+
* ordered array of [category, JSON] pairs using the existing batch merge policy.
|
|
318
|
+
* @param {string} request_json
|
|
319
|
+
* @param {string} snippets_json
|
|
320
|
+
* @returns {string}
|
|
321
|
+
*/
|
|
322
|
+
export function prepare_target_scenario(request_json, snippets_json) {
|
|
323
|
+
let deferred3_0;
|
|
324
|
+
let deferred3_1;
|
|
325
|
+
try {
|
|
326
|
+
const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
327
|
+
const len0 = WASM_VECTOR_LEN;
|
|
328
|
+
const ptr1 = passStringToWasm0(snippets_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
329
|
+
const len1 = WASM_VECTOR_LEN;
|
|
330
|
+
const ret = wasm.prepare_target_scenario(ptr0, len0, ptr1, len1);
|
|
331
|
+
deferred3_0 = ret[0];
|
|
332
|
+
deferred3_1 = ret[1];
|
|
333
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
334
|
+
} finally {
|
|
335
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
297
339
|
/**
|
|
298
340
|
* Process a batch configuration using the existing hem-batch-core logic
|
|
299
341
|
* This function uses the same run_batch_from_config function as the desktop version
|
|
@@ -434,6 +476,101 @@ export function run_batch_simulation(config_json, base_params_json, weather_cont
|
|
|
434
476
|
}
|
|
435
477
|
}
|
|
436
478
|
|
|
479
|
+
/**
|
|
480
|
+
* Run HEM for the h3 browser demo and return its output files.
|
|
481
|
+
*
|
|
482
|
+
* h3 consumes HEM's CSV *output files* rather than a metrics summary, so this
|
|
483
|
+
* returns them as JSON `{ "<filename>": "<contents>" }` for the caller to
|
|
484
|
+
* write into its own filesystem (Pyodide's, in the demo).
|
|
485
|
+
*
|
|
486
|
+
* Deliberately not argv-shaped: the CLI's argument layout is an
|
|
487
|
+
* implementation detail of the native binary and threading it through WASM
|
|
488
|
+
* buys nothing.
|
|
489
|
+
*
|
|
490
|
+
* `weather_epw` may be empty, in which case the model is expected to carry its
|
|
491
|
+
* own `ExternalConditions`.
|
|
492
|
+
*
|
|
493
|
+
* `fhs_assumptions` selects the Future Homes Standard wrapper rather than the
|
|
494
|
+
* core engine, matching `h3 run --fhs-assumptions`, which is the CLI default.
|
|
495
|
+
* This is not cosmetic: the wrapper imposes standardised occupancy, gains and
|
|
496
|
+
* heating patterns, so a core run and an FHS run of the same model give
|
|
497
|
+
* materially different HTC. It also selects the FHS input schema — models
|
|
498
|
+
* authored for FHS (`BuildingLength`, `General.storeys_in_dwelling` and the
|
|
499
|
+
* rest) will not validate against the core schema at all.
|
|
500
|
+
*
|
|
501
|
+
* `preprocess_only` stops after the wrapper has applied its preprocessing and
|
|
502
|
+
* returns the resulting model as `<calculation key>__preproc.json` instead of
|
|
503
|
+
* running the simulation. Only meaningful with `fhs_assumptions`; the core
|
|
504
|
+
* path has no preprocessing step to stop after.
|
|
505
|
+
*
|
|
506
|
+
* This exists for h3. `h3 run` disables the FHS heating schedule, which it
|
|
507
|
+
* does natively through `HEM_FHS_DISABLE_HEATING_SCHEDULE` — an environment
|
|
508
|
+
* variable, and therefore unavailable here. With the preprocessed model in
|
|
509
|
+
* hand h3 can flatten the heating controls itself and run the core engine on
|
|
510
|
+
* the result, reaching the same place without a patched wrapper.
|
|
511
|
+
*
|
|
512
|
+
* Note: h3's `HEM_ACH_CAL_FACTOR` and `HEM_FHS_DISABLE_HEATING_SCHEDULE` hooks
|
|
513
|
+
* read process environment variables, which are not settable in a
|
|
514
|
+
* wasm32-unknown-unknown build. They are therefore inert here, which is why
|
|
515
|
+
* h3's `calibrate` is not available in the browser. Plain `run` does not need
|
|
516
|
+
* them, because the patches are default-inert.
|
|
517
|
+
*
|
|
518
|
+
* On failure returns `{ "error": "<report>" }`.
|
|
519
|
+
* @param {string} model_json
|
|
520
|
+
* @param {string} weather_epw
|
|
521
|
+
* @param {boolean} heat_balance
|
|
522
|
+
* @param {boolean} fhs_assumptions
|
|
523
|
+
* @param {boolean} preprocess_only
|
|
524
|
+
* @returns {string}
|
|
525
|
+
*/
|
|
526
|
+
export function run_hem_for_h3(model_json, weather_epw, heat_balance, fhs_assumptions, preprocess_only) {
|
|
527
|
+
let deferred3_0;
|
|
528
|
+
let deferred3_1;
|
|
529
|
+
try {
|
|
530
|
+
const ptr0 = passStringToWasm0(model_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
531
|
+
const len0 = WASM_VECTOR_LEN;
|
|
532
|
+
const ptr1 = passStringToWasm0(weather_epw, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
533
|
+
const len1 = WASM_VECTOR_LEN;
|
|
534
|
+
const ret = wasm.run_hem_for_h3(ptr0, len0, ptr1, len1, heat_balance, fhs_assumptions, preprocess_only);
|
|
535
|
+
deferred3_0 = ret[0];
|
|
536
|
+
deferred3_1 = ret[1];
|
|
537
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
538
|
+
} finally {
|
|
539
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Execute an already prepared input through the pinned Rust FHS wrapper.
|
|
545
|
+
* Returned files are calculation output, not a persistence acknowledgement:
|
|
546
|
+
* the worker must wait for workspace writes before declaring completion.
|
|
547
|
+
* @param {string} model_json
|
|
548
|
+
* @param {string} output_dir
|
|
549
|
+
* @param {string} modes_json
|
|
550
|
+
* @param {string | null} [weather_epw]
|
|
551
|
+
* @returns {string}
|
|
552
|
+
*/
|
|
553
|
+
export function run_target_input(model_json, output_dir, modes_json, weather_epw) {
|
|
554
|
+
let deferred5_0;
|
|
555
|
+
let deferred5_1;
|
|
556
|
+
try {
|
|
557
|
+
const ptr0 = passStringToWasm0(model_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
558
|
+
const len0 = WASM_VECTOR_LEN;
|
|
559
|
+
const ptr1 = passStringToWasm0(output_dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
560
|
+
const len1 = WASM_VECTOR_LEN;
|
|
561
|
+
const ptr2 = passStringToWasm0(modes_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
562
|
+
const len2 = WASM_VECTOR_LEN;
|
|
563
|
+
var ptr3 = isLikeNone(weather_epw) ? 0 : passStringToWasm0(weather_epw, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
564
|
+
var len3 = WASM_VECTOR_LEN;
|
|
565
|
+
const ret = wasm.run_target_input(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
566
|
+
deferred5_0 = ret[0];
|
|
567
|
+
deferred5_1 = ret[1];
|
|
568
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
569
|
+
} finally {
|
|
570
|
+
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
437
574
|
/**
|
|
438
575
|
* Stable runtime provenance marker for copied browser/WASM artifacts.
|
|
439
576
|
* @returns {string}
|
|
@@ -459,29 +596,12 @@ export function setup_panic_hook() {
|
|
|
459
596
|
}
|
|
460
597
|
|
|
461
598
|
/**
|
|
462
|
-
*
|
|
463
|
-
* @
|
|
464
|
-
* @returns {string}
|
|
599
|
+
* Versioned capability: old JavaScript glue silently ignores extra arguments.
|
|
600
|
+
* @returns {number}
|
|
465
601
|
*/
|
|
466
|
-
export function
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
try {
|
|
470
|
-
const ptr0 = passStringToWasm0(problem_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
471
|
-
const len0 = WASM_VECTOR_LEN;
|
|
472
|
-
const ret = wasm.solve_thermal_bridge_problem(ptr0, len0);
|
|
473
|
-
var ptr2 = ret[0];
|
|
474
|
-
var len2 = ret[1];
|
|
475
|
-
if (ret[3]) {
|
|
476
|
-
ptr2 = 0; len2 = 0;
|
|
477
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
478
|
-
}
|
|
479
|
-
deferred3_0 = ptr2;
|
|
480
|
-
deferred3_1 = len2;
|
|
481
|
-
return getStringFromWasm0(ptr2, len2);
|
|
482
|
-
} finally {
|
|
483
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
484
|
-
}
|
|
602
|
+
export function target_weather_protocol_version() {
|
|
603
|
+
const ret = wasm.target_weather_protocol_version();
|
|
604
|
+
return ret >>> 0;
|
|
485
605
|
}
|
|
486
606
|
|
|
487
607
|
/**
|
|
@@ -787,10 +907,6 @@ function __wbg_get_imports(memory) {
|
|
|
787
907
|
__wbg_getRandomValues_b2176991427f6db8: function() { return handleError(function (arg0) {
|
|
788
908
|
globalThis.crypto.getRandomValues(arg0);
|
|
789
909
|
}, arguments); },
|
|
790
|
-
__wbg_getTime_7a770f8a2ec8d634: function(arg0) {
|
|
791
|
-
const ret = arg0.getTime();
|
|
792
|
-
return ret;
|
|
793
|
-
},
|
|
794
910
|
__wbg_get_197a3fe98f169e38: function(arg0, arg1) {
|
|
795
911
|
const ret = arg0[arg1 >>> 0];
|
|
796
912
|
return ret;
|
|
@@ -803,10 +919,6 @@ function __wbg_get_imports(memory) {
|
|
|
803
919
|
const ret = Reflect.get(arg0, arg1);
|
|
804
920
|
return ret;
|
|
805
921
|
}, arguments); },
|
|
806
|
-
__wbg_hardwareConcurrency_39543e75ca857dac: function(arg0) {
|
|
807
|
-
const ret = arg0.hardwareConcurrency;
|
|
808
|
-
return ret;
|
|
809
|
-
},
|
|
810
922
|
__wbg_has_4f060fe202ad7e87: function() { return handleError(function (arg0, arg1) {
|
|
811
923
|
const ret = Reflect.has(arg0, arg1);
|
|
812
924
|
return ret;
|
|
@@ -836,14 +948,6 @@ function __wbg_get_imports(memory) {
|
|
|
836
948
|
__wbg_log_6b5af08dd293697f: function(arg0) {
|
|
837
949
|
console.log(arg0);
|
|
838
950
|
},
|
|
839
|
-
__wbg_navigator_935098efd1dc7fe5: function(arg0) {
|
|
840
|
-
const ret = arg0.navigator;
|
|
841
|
-
return ret;
|
|
842
|
-
},
|
|
843
|
-
__wbg_new_0_1b32bedde98fef4b: function() {
|
|
844
|
-
const ret = new Date();
|
|
845
|
-
return ret;
|
|
846
|
-
},
|
|
847
951
|
__wbg_new_2e117a478906f062: function() {
|
|
848
952
|
const ret = new Object();
|
|
849
953
|
return ret;
|
|
@@ -926,7 +1030,7 @@ function __wbg_get_imports(memory) {
|
|
|
926
1030
|
table.set(offset + 2, true);
|
|
927
1031
|
table.set(offset + 3, false);
|
|
928
1032
|
},
|
|
929
|
-
memory: memory || new WebAssembly.Memory({initial:
|
|
1033
|
+
memory: memory || new WebAssembly.Memory({initial:141,maximum:16384,shared:true}),
|
|
930
1034
|
};
|
|
931
1035
|
return {
|
|
932
1036
|
__proto__: null,
|
|
@@ -1251,19 +1355,22 @@ async function __wbg_init(module_or_path, memory) {
|
|
|
1251
1355
|
export { initSync, __wbg_init as default };
|
|
1252
1356
|
|
|
1253
1357
|
// Build hash injected at build time
|
|
1254
|
-
export const BUILD_HASH = "
|
|
1255
|
-
export const BUILD_ID = "
|
|
1358
|
+
export const BUILD_HASH = "e8410c87edd326267d4ee972e32645733f9be9925ec017ead0fe3602f5018fd8";
|
|
1359
|
+
export const BUILD_ID = "20261008-212651";
|
|
1360
|
+
export const SOURCE_GIT_COMMIT = "954bc4582558afc1ddd1c46ce9b128e967f80399";
|
|
1361
|
+
export const SOURCE_TREE_SHA256 = "be58a1c99a4b205eaf30edb47a7e3800350341254a3c1411d9c3070eaa02c4f3";
|
|
1362
|
+
export const SOURCE_TREE_DIRTY = false;
|
|
1256
1363
|
export const WASM_FILENAME = "wasm_wrapper_bg.wasm";
|
|
1257
1364
|
export const JS_FILENAME = "wasm_wrapper.js";
|
|
1258
1365
|
|
|
1259
1366
|
// Function to get the current build hash
|
|
1260
1367
|
export function getBuildHash() {
|
|
1261
|
-
return "
|
|
1368
|
+
return "e8410c87edd326267d4ee972e32645733f9be9925ec017ead0fe3602f5018fd8";
|
|
1262
1369
|
}
|
|
1263
1370
|
|
|
1264
1371
|
// Function to get the current build ID
|
|
1265
1372
|
export function getBuildId() {
|
|
1266
|
-
return "
|
|
1373
|
+
return "20261008-212651";
|
|
1267
1374
|
}
|
|
1268
1375
|
|
|
1269
1376
|
// Function to get the WASM filename
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vulcan-mcp-helper.d.ts","sourceRoot":"","sources":["../../bin/vulcan-mcp-helper.ts"],"names":[],"mappings":";AAEA;;;;;GAKG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vulcan-mcp-helper.js","sourceRoot":"","sources":["../../bin/vulcan-mcp-helper.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,SAAS,SAAS;IAChB,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACnC,MAAM,MAAM,GAA2C,EAAE,CAAC;IAE1D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,UAAU,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAClD,MAAM,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAChC,CAAC,EAAE,CAAC,CAAC,gBAAgB;QACvB,CAAC;aAAM,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YACvD,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;YAC5B,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,OAAO,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;gBAC1C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;YACD,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACnC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,GAAG,KAAK,EAAE,CAAC;gBAC5C,OAAO,CAAC,KAAK,CAAC,iBAAiB,OAAO,EAAE,CAAC,CAAC;gBAC1C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;YACD,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;YACnB,CAAC,EAAE,CAAC,CAAC,gBAAgB;QACvB,CAAC;aAAM,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;YACpD,OAAO,CAAC,GAAG,CAAC;;;;;;;;;;;;;CAajB,CAAC,CAAC;YACG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,IAAI,CAAC;QACH,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,SAAS,EAAE,CAAC;QACzC,MAAM,WAAW,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,GAAG,GAAG,KAAc,CAAC;QAC3B,OAAO,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QACvC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* File system access helpers for workspace operations
|
|
3
|
-
* These are thin wrappers around Node.js fs operations
|
|
4
|
-
* that work with FSA (real filesystem) workspaces only
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Check if a path exists
|
|
8
|
-
*/
|
|
9
|
-
export declare function pathExists(filePath: string): Promise<boolean>;
|
|
10
|
-
/**
|
|
11
|
-
* Read a file as text
|
|
12
|
-
*/
|
|
13
|
-
export declare function readFileText(filePath: string): Promise<string>;
|
|
14
|
-
/**
|
|
15
|
-
* Write a file (creates parent directories if needed)
|
|
16
|
-
*/
|
|
17
|
-
export declare function writeFileText(filePath: string, content: string): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* List directory contents
|
|
20
|
-
*/
|
|
21
|
-
export declare function listDirectory(dirPath: string): Promise<string[]>;
|
|
22
|
-
/**
|
|
23
|
-
* Check if a path is a directory
|
|
24
|
-
*/
|
|
25
|
-
export declare function isDirectory(dirPath: string): Promise<boolean>;
|
|
26
|
-
/**
|
|
27
|
-
* Resolve a path relative to a workspace root
|
|
28
|
-
*/
|
|
29
|
-
export declare function resolveWorkspacePath(workspaceRoot: string, relativePath: string): string;
|
|
30
|
-
//# sourceMappingURL=filesystem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../../src/engine/filesystem.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AAEH;;GAEG;AACH,wBAAsB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAOnE;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEpE;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIpF;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAEtE;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAOnE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAKxF"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import fs from 'fs/promises';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
/**
|
|
4
|
-
* File system access helpers for workspace operations
|
|
5
|
-
* These are thin wrappers around Node.js fs operations
|
|
6
|
-
* that work with FSA (real filesystem) workspaces only
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Check if a path exists
|
|
10
|
-
*/
|
|
11
|
-
export async function pathExists(filePath) {
|
|
12
|
-
try {
|
|
13
|
-
await fs.access(filePath);
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
catch {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Read a file as text
|
|
22
|
-
*/
|
|
23
|
-
export async function readFileText(filePath) {
|
|
24
|
-
return await fs.readFile(filePath, 'utf-8');
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Write a file (creates parent directories if needed)
|
|
28
|
-
*/
|
|
29
|
-
export async function writeFileText(filePath, content) {
|
|
30
|
-
const dir = path.dirname(filePath);
|
|
31
|
-
await fs.mkdir(dir, { recursive: true });
|
|
32
|
-
await fs.writeFile(filePath, content, 'utf-8');
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* List directory contents
|
|
36
|
-
*/
|
|
37
|
-
export async function listDirectory(dirPath) {
|
|
38
|
-
return await fs.readdir(dirPath);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Check if a path is a directory
|
|
42
|
-
*/
|
|
43
|
-
export async function isDirectory(dirPath) {
|
|
44
|
-
try {
|
|
45
|
-
const stat = await fs.stat(dirPath);
|
|
46
|
-
return stat.isDirectory();
|
|
47
|
-
}
|
|
48
|
-
catch {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Resolve a path relative to a workspace root
|
|
54
|
-
*/
|
|
55
|
-
export function resolveWorkspacePath(workspaceRoot, relativePath) {
|
|
56
|
-
if (path.isAbsolute(relativePath)) {
|
|
57
|
-
return relativePath;
|
|
58
|
-
}
|
|
59
|
-
return path.resolve(workspaceRoot, relativePath);
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=filesystem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filesystem.js","sourceRoot":"","sources":["../../../src/engine/filesystem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB;;;;GAIG;AAEH;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,QAAgB;IAC/C,IAAI,CAAC;QACH,MAAM,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,QAAgB;IACjD,OAAO,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAC9C,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,QAAgB,EAAE,OAAe;IACnE,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACnC,MAAM,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACzC,MAAM,EAAE,CAAC,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AACjD,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,OAAe;IACjD,OAAO,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AACnC,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,OAAe;IAC/C,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC5B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,aAAqB,EAAE,YAAoB;IAC9E,IAAI,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QAClC,OAAO,YAAY,CAAC;IACtB,CAAC;IACD,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"licenseKeys.d.ts","sourceRoot":"","sources":["../../../src/engine/licenseKeys.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,EAAE,MAAM,EAInC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Public keys used by the MCP helper to verify license_token signatures.
|
|
2
|
-
// These correspond to the private keys used by vulcan-website to issue MCP tokens.
|
|
3
|
-
// v1: single Ed25519 key, but we support an array to allow future rotation.
|
|
4
|
-
export const MCP_PUBLIC_KEYS = [
|
|
5
|
-
`-----BEGIN PUBLIC KEY-----
|
|
6
|
-
MCowBQYDK2VwAyEAOmr0DweQnQ2L747vGML7l/ieYywCQzrnd39idAZ2YK4=
|
|
7
|
-
-----END PUBLIC KEY-----`,
|
|
8
|
-
];
|
|
9
|
-
//# sourceMappingURL=licenseKeys.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"licenseKeys.js","sourceRoot":"","sources":["../../../src/engine/licenseKeys.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,mFAAmF;AACnF,4EAA4E;AAE5E,MAAM,CAAC,MAAM,eAAe,GAAa;IACvC;;yBAEuB;CACxB,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WASM module type (from wasm-pack generated bindings)
|
|
3
|
-
* We use a loose type here since the exact shape depends on the generated bindings
|
|
4
|
-
*/
|
|
5
|
-
interface WasmModule {
|
|
6
|
-
initSync?: (options: {
|
|
7
|
-
module: Buffer | Uint8Array;
|
|
8
|
-
}) => void;
|
|
9
|
-
setup_panic_hook?: () => void;
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}
|
|
12
|
-
export declare function initWasm(): Promise<WasmModule>;
|
|
13
|
-
/**
|
|
14
|
-
* Get initialized WASM module (throws if not initialized)
|
|
15
|
-
*/
|
|
16
|
-
export declare function getWasmModule(): WasmModule;
|
|
17
|
-
/**
|
|
18
|
-
* Set the current workspace for file system bridge functions
|
|
19
|
-
* This should be called before each WASM operation that uses file I/O
|
|
20
|
-
*/
|
|
21
|
-
export declare function setWorkspace(workspace: string): void;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=wasm.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wasm.d.ts","sourceRoot":"","sources":["../../../src/engine/wasm.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,UAAU,UAAU;IAClB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9D,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AA+KD,wBAAsB,QAAQ,IAAI,OAAO,CAAC,UAAU,CAAC,CAqLpD;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAK1C;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAEpD"}
|