@camstack/system 1.2.472 → 1.2.473
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/{agent-https-bnyFRK7Y.js → agent-https-B9Q3-IKd.js} +2 -5
- package/dist/{agent-https-JhvY1axF.mjs → agent-https-DOwn4pqL.mjs} +3 -6
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/dist/builtins/calendars/calendars.addon.js +1 -1
- package/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/composer/composer.addon.js +2 -2
- package/dist/builtins/composer/composer.addon.mjs +2 -2
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/dist/builtins/device-history/device-history.addon.js +1 -1
- package/dist/builtins/device-history/device-history.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +3 -3
- package/dist/builtins/keychain/index.mjs +3 -3
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +16 -2
- package/dist/builtins/local-auth/local-auth.addon.mjs +16 -2
- package/dist/builtins/local-auth/person-scopes.d.ts +7 -0
- package/dist/builtins/local-network/local-network.addon.js +2 -2
- package/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/accelerator-facts-probe.d.ts +24 -0
- package/dist/builtins/platform-probe/index.js +110 -10
- package/dist/builtins/platform-probe/index.mjs +109 -10
- package/dist/builtins/platform-probe/platform-scorer.d.ts +10 -2
- package/dist/builtins/record-entries/index.js +1 -1
- package/dist/builtins/record-entries/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/index.js +1 -1
- package/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +3 -3
- package/dist/builtins/system-config/system-config.addon.mjs +3 -3
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-D3h-tNoJ.js → composition-sources-Dj_nInUQ.js} +1 -1
- package/dist/{composition-sources-BY6rFuAE.mjs → composition-sources-cwD35HB0.mjs} +1 -1
- package/dist/{constants-CqbO6e9i.js → constants-XkWSVvgY.js} +1 -1
- package/dist/{constants-zBiEodEM.mjs → constants-p5mPM1iL.mjs} +1 -1
- package/dist/{device-ca-CfiIg3a9.js → device-ca-BXzQ1pYj.js} +1 -1
- package/dist/{device-ca-BWTWWBcc.mjs → device-ca-DyUtcpf4.mjs} +1 -1
- package/dist/{dist-DX5Fu3mV.js → dist-Bmah6waF.js} +109 -12
- package/dist/{dist-CdFkkmXW.mjs → dist-C9lbdBL5.mjs} +104 -13
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/{hub-mdns-ciao-CYp1Gipm.mjs → hub-mdns-ciao-BemeCNGe.mjs} +2 -2
- package/dist/{hub-mdns-ciao-C174UDzO.js → hub-mdns-ciao-CUr6ewsX.js} +2 -2
- package/dist/index.js +9 -7
- package/dist/index.mjs +9 -7
- package/dist/{restore-archive-BX0gaKtG.mjs → restore-archive-C0aohmAK.mjs} +1 -1
- package/dist/{restore-archive-B2jIFfu_.js → restore-archive-DbPmyjiM.js} +1 -1
- package/dist/{retired-settings-keys-C_Kjp-Bj.mjs → retired-settings-keys-CWp7ZSeA.mjs} +8 -0
- package/dist/{retired-settings-keys-CGUqX-Oz.js → retired-settings-keys-DorakcxV.js} +8 -0
- package/dist/{wal-maintenance-Dxqd5igw.js → wal-maintenance-BT8Ns0W3.js} +0 -0
- package/dist/{wal-maintenance-KHzJXlF2.mjs → wal-maintenance-BuB731DK.mjs} +0 -0
- package/package.json +6 -6
|
@@ -3,8 +3,10 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bmah6waF.js");
|
|
7
7
|
const require_coral_accelerators = require("../../coral-accelerators-BSVsBVzt.js");
|
|
8
|
+
let node_path = require("node:path");
|
|
9
|
+
node_path = require_chunk.__toESM(node_path);
|
|
8
10
|
let node_util = require("node:util");
|
|
9
11
|
let node_os = require("node:os");
|
|
10
12
|
node_os = require_chunk.__toESM(node_os);
|
|
@@ -313,7 +315,7 @@ var WINDOWS_PROBE_TIMEOUT_MS = 15e3;
|
|
|
313
315
|
* entire Node process (WS handshakes, tRPC subscriptions, metrics — all
|
|
314
316
|
* stalled). Keeping it async turns the probe into a true background task.
|
|
315
317
|
*/
|
|
316
|
-
var execFileAsync = (0, node_util.promisify)(node_child_process.execFile);
|
|
318
|
+
var execFileAsync$1 = (0, node_util.promisify)(node_child_process.execFile);
|
|
317
319
|
/** Minimal no-op logger for default parameter */
|
|
318
320
|
var noopLogger = {
|
|
319
321
|
debug() {},
|
|
@@ -341,7 +343,7 @@ async function getAvailableRAM_MB() {
|
|
|
341
343
|
const platform = node_os.platform();
|
|
342
344
|
try {
|
|
343
345
|
if (platform === "darwin") {
|
|
344
|
-
const { stdout: output } = await execFileAsync("vm_stat", [], {
|
|
346
|
+
const { stdout: output } = await execFileAsync$1("vm_stat", [], {
|
|
345
347
|
encoding: "utf8",
|
|
346
348
|
timeout: 3e3
|
|
347
349
|
});
|
|
@@ -375,10 +377,17 @@ var PlatformScorer = class {
|
|
|
375
377
|
embeddedPythonPath;
|
|
376
378
|
/** Where the Coral scan reads `/sys` and `/dev` (the host's, unless a spec fakes one). */
|
|
377
379
|
coralFs;
|
|
378
|
-
|
|
380
|
+
/**
|
|
381
|
+
* Asks OpenVINO / WebGPU for compute (D930). Null in tests and when this
|
|
382
|
+
* process has no embedded interpreter — the pool's published file is the
|
|
383
|
+
* other way the same facts arrive.
|
|
384
|
+
*/
|
|
385
|
+
readAcceleratorFacts;
|
|
386
|
+
constructor(logger = noopLogger, embeddedPythonPath = null, coralFs = require_coral_accelerators.nodeCoralFs, readAcceleratorFacts = null) {
|
|
379
387
|
this.logger = logger;
|
|
380
388
|
this.embeddedPythonPath = embeddedPythonPath;
|
|
381
389
|
this.coralFs = coralFs;
|
|
390
|
+
this.readAcceleratorFacts = readAcceleratorFacts;
|
|
382
391
|
}
|
|
383
392
|
/**
|
|
384
393
|
* Probe hardware + derive scores from pure rules and score all backend combos.
|
|
@@ -569,7 +578,7 @@ var PlatformScorer = class {
|
|
|
569
578
|
} });
|
|
570
579
|
}
|
|
571
580
|
}
|
|
572
|
-
|
|
581
|
+
const hardware = {
|
|
573
582
|
platform,
|
|
574
583
|
arch,
|
|
575
584
|
cpuModel,
|
|
@@ -580,6 +589,25 @@ var PlatformScorer = class {
|
|
|
580
589
|
npu,
|
|
581
590
|
coral
|
|
582
591
|
};
|
|
592
|
+
const accelerators = await this.readAcceleratorCompute();
|
|
593
|
+
return accelerators === null ? hardware : {
|
|
594
|
+
...hardware,
|
|
595
|
+
accelerators
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
/** Compute facts, or null when the probe did not run or could not ask. */
|
|
599
|
+
async readAcceleratorCompute() {
|
|
600
|
+
const read = this.readAcceleratorFacts;
|
|
601
|
+
if (read === null) return null;
|
|
602
|
+
try {
|
|
603
|
+
const facts = await read();
|
|
604
|
+
if (facts === null) return null;
|
|
605
|
+
this.logger.info("accelerator compute probed", { meta: { devices: facts.map((row) => row.deviceKey) } });
|
|
606
|
+
return facts;
|
|
607
|
+
} catch (err) {
|
|
608
|
+
this.logger.warn("accelerator compute probe failed", { meta: { error: require_dist.errMsg(err) } });
|
|
609
|
+
return null;
|
|
610
|
+
}
|
|
583
611
|
}
|
|
584
612
|
/**
|
|
585
613
|
* The Coral part of the probe, with the evidence that decided it logged —
|
|
@@ -645,7 +673,7 @@ var PlatformScorer = class {
|
|
|
645
673
|
/** NVIDIA's own tool: exact model and VRAM. Null when absent or failing. */
|
|
646
674
|
async probeNvidiaSmi() {
|
|
647
675
|
try {
|
|
648
|
-
const { stdout } = await execFileAsync("nvidia-smi", ["--query-gpu=name,memory.total", "--format=csv,noheader"], {
|
|
676
|
+
const { stdout } = await execFileAsync$1("nvidia-smi", ["--query-gpu=name,memory.total", "--format=csv,noheader"], {
|
|
649
677
|
encoding: "utf8",
|
|
650
678
|
timeout: 5e3,
|
|
651
679
|
windowsHide: true
|
|
@@ -666,7 +694,7 @@ var PlatformScorer = class {
|
|
|
666
694
|
/** Windows WMI probe; bounded, and a failure is a log line, never a boot failure. */
|
|
667
695
|
async probeWindowsHardwareSafely() {
|
|
668
696
|
const run = async (file, args) => {
|
|
669
|
-
const { stdout } = await execFileAsync(file, [...args], {
|
|
697
|
+
const { stdout } = await execFileAsync$1(file, [...args], {
|
|
670
698
|
encoding: "utf8",
|
|
671
699
|
timeout: WINDOWS_PROBE_TIMEOUT_MS,
|
|
672
700
|
windowsHide: true,
|
|
@@ -703,7 +731,7 @@ var PlatformScorer = class {
|
|
|
703
731
|
"python"
|
|
704
732
|
];
|
|
705
733
|
for (const cmd of candidates) try {
|
|
706
|
-
await execFileAsync(cmd, ["--version"], { timeout: 5e3 });
|
|
734
|
+
await execFileAsync$1(cmd, ["--version"], { timeout: 5e3 });
|
|
707
735
|
return cmd;
|
|
708
736
|
} catch (err) {
|
|
709
737
|
this.logger.debug(`Python command "${cmd}" not found`, { meta: { error: require_dist.errMsg(err) } });
|
|
@@ -801,6 +829,68 @@ var InferenceConfigResolver = class {
|
|
|
801
829
|
}
|
|
802
830
|
};
|
|
803
831
|
//#endregion
|
|
832
|
+
//#region src/builtins/platform-probe/accelerator-facts-probe.ts
|
|
833
|
+
/**
|
|
834
|
+
* Read the accelerator compute the inference worker published (D930), or ask
|
|
835
|
+
* the same script once when this process has the embedded interpreter.
|
|
836
|
+
*
|
|
837
|
+
* A missing file and a failed probe are `null` — not an empty list, and not
|
|
838
|
+
* zeros. `getHardware` overlays a published file onto the cached probe so a
|
|
839
|
+
* pool that starts later still reaches Auto tune.
|
|
840
|
+
*/
|
|
841
|
+
/** Same name `accelerator_facts.FACTS_FILENAME` writes under the system temp dir. */
|
|
842
|
+
var ACCELERATOR_FACTS_FILENAME = "camstack-accelerator-facts.json";
|
|
843
|
+
var execFileAsync = (0, node_util.promisify)(node_child_process.execFile);
|
|
844
|
+
function publishedAcceleratorFactsPath() {
|
|
845
|
+
return node_path.join(node_os.tmpdir(), ACCELERATOR_FACTS_FILENAME);
|
|
846
|
+
}
|
|
847
|
+
function jsonValue(text) {
|
|
848
|
+
return JSON.parse(text);
|
|
849
|
+
}
|
|
850
|
+
/** `null` when the file is absent, unreadable, or not a facts payload. */
|
|
851
|
+
function readPublishedAcceleratorFacts(filePath) {
|
|
852
|
+
let text;
|
|
853
|
+
try {
|
|
854
|
+
text = node_fs.readFileSync(filePath, "utf8");
|
|
855
|
+
} catch {
|
|
856
|
+
return null;
|
|
857
|
+
}
|
|
858
|
+
try {
|
|
859
|
+
return require_dist.parseAcceleratorFactsJson(jsonValue(text));
|
|
860
|
+
} catch {
|
|
861
|
+
return null;
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
/** Where `accelerator_facts.py` lives, or null when this process cannot see the addon. */
|
|
865
|
+
function findAcceleratorFactsScript(dataDir, cwd = process.cwd()) {
|
|
866
|
+
const candidates = [];
|
|
867
|
+
if (typeof dataDir === "string" && dataDir !== "") candidates.push(node_path.join(dataDir, "addons", "@camstack", "addon-pipeline", "python", "accelerator_facts.py"));
|
|
868
|
+
candidates.push(node_path.join(cwd, "packages", "addon-pipeline", "python", "accelerator_facts.py"));
|
|
869
|
+
for (const candidate of candidates) if (node_fs.existsSync(candidate)) return candidate;
|
|
870
|
+
return null;
|
|
871
|
+
}
|
|
872
|
+
async function defaultExec(command, args, timeoutMs) {
|
|
873
|
+
const { stdout } = await execFileAsync(command, [...args], {
|
|
874
|
+
encoding: "utf8",
|
|
875
|
+
timeout: timeoutMs,
|
|
876
|
+
windowsHide: true
|
|
877
|
+
});
|
|
878
|
+
return stdout;
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* Run the facts script. `null` when there is no interpreter, no script, or
|
|
882
|
+
* the script could not ask the device (it prints `{"accelerators": null}`).
|
|
883
|
+
*/
|
|
884
|
+
async function runAcceleratorFactsProbe(input) {
|
|
885
|
+
if (input.pythonPath === null || input.scriptPath === null) return null;
|
|
886
|
+
const exec = input.exec ?? defaultExec;
|
|
887
|
+
try {
|
|
888
|
+
return require_dist.parseAcceleratorFactsJson(jsonValue(await exec(input.pythonPath, [input.scriptPath], input.timeoutMs ?? 8e3)));
|
|
889
|
+
} catch {
|
|
890
|
+
return null;
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
//#endregion
|
|
804
894
|
//#region src/builtins/platform-probe/index.ts
|
|
805
895
|
/**
|
|
806
896
|
* The decode-hwaccel backends `ctx.kernel.hwaccel.resolve` accepts. The cap
|
|
@@ -889,7 +979,11 @@ var PlatformProbeNativeAddon = class extends require_dist.BaseAddon {
|
|
|
889
979
|
this.ctx.logger.debug("ensurePython unavailable for platform probe", { meta: { error: require_dist.errMsg(err) } });
|
|
890
980
|
return null;
|
|
891
981
|
});
|
|
892
|
-
|
|
982
|
+
const factsScript = findAcceleratorFactsScript(this.ctx.dataDir);
|
|
983
|
+
this.scorer = new PlatformScorer(this.ctx.logger.withTags({ nodeId: this.bareLocalNodeId() }), embeddedPython, require_coral_accelerators.nodeCoralFs, embeddedPython === null || factsScript === null ? null : () => runAcceleratorFactsProbe({
|
|
984
|
+
pythonPath: embeddedPython,
|
|
985
|
+
scriptPath: factsScript
|
|
986
|
+
}));
|
|
893
987
|
const emitPhase = (phase, payload) => {
|
|
894
988
|
this.ctx.eventBus?.emit({
|
|
895
989
|
id: `platform-probe-${phase}-${Date.now()}`,
|
|
@@ -935,7 +1029,13 @@ var PlatformProbeNativeAddon = class extends require_dist.BaseAddon {
|
|
|
935
1029
|
return getCaps();
|
|
936
1030
|
},
|
|
937
1031
|
getHardware: async () => {
|
|
938
|
-
|
|
1032
|
+
const caps = await getCaps();
|
|
1033
|
+
const published = readPublishedAcceleratorFacts(publishedAcceleratorFactsPath());
|
|
1034
|
+
if (published === null) return caps.hardware;
|
|
1035
|
+
return {
|
|
1036
|
+
...caps.hardware,
|
|
1037
|
+
accelerators: published
|
|
1038
|
+
};
|
|
939
1039
|
},
|
|
940
1040
|
resolveInferenceConfig: async (input) => {
|
|
941
1041
|
const caps = await getCaps();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Oa as EventCategory, Xn as parseAcceleratorFactsJson, Yi as emitReadiness, an as enumerateInferenceDevices, ei as errMsg, er as platformProbeCapability, ti as BaseAddon, vr as scoreRuntimes } from "../../dist-C9lbdBL5.mjs";
|
|
3
3
|
import { n as detectCoralAccelerator, r as nodeCoralFs } from "../../coral-accelerators-DBlgWB8k.mjs";
|
|
4
|
+
import * as path$1 from "node:path";
|
|
4
5
|
import { promisify } from "node:util";
|
|
5
6
|
import * as os$1 from "node:os";
|
|
6
7
|
import * as fs$1 from "node:fs";
|
|
@@ -307,7 +308,7 @@ var WINDOWS_PROBE_TIMEOUT_MS = 15e3;
|
|
|
307
308
|
* entire Node process (WS handshakes, tRPC subscriptions, metrics — all
|
|
308
309
|
* stalled). Keeping it async turns the probe into a true background task.
|
|
309
310
|
*/
|
|
310
|
-
var execFileAsync = promisify(execFile);
|
|
311
|
+
var execFileAsync$1 = promisify(execFile);
|
|
311
312
|
/** Minimal no-op logger for default parameter */
|
|
312
313
|
var noopLogger = {
|
|
313
314
|
debug() {},
|
|
@@ -335,7 +336,7 @@ async function getAvailableRAM_MB() {
|
|
|
335
336
|
const platform = os$1.platform();
|
|
336
337
|
try {
|
|
337
338
|
if (platform === "darwin") {
|
|
338
|
-
const { stdout: output } = await execFileAsync("vm_stat", [], {
|
|
339
|
+
const { stdout: output } = await execFileAsync$1("vm_stat", [], {
|
|
339
340
|
encoding: "utf8",
|
|
340
341
|
timeout: 3e3
|
|
341
342
|
});
|
|
@@ -369,10 +370,17 @@ var PlatformScorer = class {
|
|
|
369
370
|
embeddedPythonPath;
|
|
370
371
|
/** Where the Coral scan reads `/sys` and `/dev` (the host's, unless a spec fakes one). */
|
|
371
372
|
coralFs;
|
|
372
|
-
|
|
373
|
+
/**
|
|
374
|
+
* Asks OpenVINO / WebGPU for compute (D930). Null in tests and when this
|
|
375
|
+
* process has no embedded interpreter — the pool's published file is the
|
|
376
|
+
* other way the same facts arrive.
|
|
377
|
+
*/
|
|
378
|
+
readAcceleratorFacts;
|
|
379
|
+
constructor(logger = noopLogger, embeddedPythonPath = null, coralFs = nodeCoralFs, readAcceleratorFacts = null) {
|
|
373
380
|
this.logger = logger;
|
|
374
381
|
this.embeddedPythonPath = embeddedPythonPath;
|
|
375
382
|
this.coralFs = coralFs;
|
|
383
|
+
this.readAcceleratorFacts = readAcceleratorFacts;
|
|
376
384
|
}
|
|
377
385
|
/**
|
|
378
386
|
* Probe hardware + derive scores from pure rules and score all backend combos.
|
|
@@ -563,7 +571,7 @@ var PlatformScorer = class {
|
|
|
563
571
|
} });
|
|
564
572
|
}
|
|
565
573
|
}
|
|
566
|
-
|
|
574
|
+
const hardware = {
|
|
567
575
|
platform,
|
|
568
576
|
arch,
|
|
569
577
|
cpuModel,
|
|
@@ -574,6 +582,25 @@ var PlatformScorer = class {
|
|
|
574
582
|
npu,
|
|
575
583
|
coral
|
|
576
584
|
};
|
|
585
|
+
const accelerators = await this.readAcceleratorCompute();
|
|
586
|
+
return accelerators === null ? hardware : {
|
|
587
|
+
...hardware,
|
|
588
|
+
accelerators
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
/** Compute facts, or null when the probe did not run or could not ask. */
|
|
592
|
+
async readAcceleratorCompute() {
|
|
593
|
+
const read = this.readAcceleratorFacts;
|
|
594
|
+
if (read === null) return null;
|
|
595
|
+
try {
|
|
596
|
+
const facts = await read();
|
|
597
|
+
if (facts === null) return null;
|
|
598
|
+
this.logger.info("accelerator compute probed", { meta: { devices: facts.map((row) => row.deviceKey) } });
|
|
599
|
+
return facts;
|
|
600
|
+
} catch (err) {
|
|
601
|
+
this.logger.warn("accelerator compute probe failed", { meta: { error: errMsg(err) } });
|
|
602
|
+
return null;
|
|
603
|
+
}
|
|
577
604
|
}
|
|
578
605
|
/**
|
|
579
606
|
* The Coral part of the probe, with the evidence that decided it logged —
|
|
@@ -639,7 +666,7 @@ var PlatformScorer = class {
|
|
|
639
666
|
/** NVIDIA's own tool: exact model and VRAM. Null when absent or failing. */
|
|
640
667
|
async probeNvidiaSmi() {
|
|
641
668
|
try {
|
|
642
|
-
const { stdout } = await execFileAsync("nvidia-smi", ["--query-gpu=name,memory.total", "--format=csv,noheader"], {
|
|
669
|
+
const { stdout } = await execFileAsync$1("nvidia-smi", ["--query-gpu=name,memory.total", "--format=csv,noheader"], {
|
|
643
670
|
encoding: "utf8",
|
|
644
671
|
timeout: 5e3,
|
|
645
672
|
windowsHide: true
|
|
@@ -660,7 +687,7 @@ var PlatformScorer = class {
|
|
|
660
687
|
/** Windows WMI probe; bounded, and a failure is a log line, never a boot failure. */
|
|
661
688
|
async probeWindowsHardwareSafely() {
|
|
662
689
|
const run = async (file, args) => {
|
|
663
|
-
const { stdout } = await execFileAsync(file, [...args], {
|
|
690
|
+
const { stdout } = await execFileAsync$1(file, [...args], {
|
|
664
691
|
encoding: "utf8",
|
|
665
692
|
timeout: WINDOWS_PROBE_TIMEOUT_MS,
|
|
666
693
|
windowsHide: true,
|
|
@@ -697,7 +724,7 @@ var PlatformScorer = class {
|
|
|
697
724
|
"python"
|
|
698
725
|
];
|
|
699
726
|
for (const cmd of candidates) try {
|
|
700
|
-
await execFileAsync(cmd, ["--version"], { timeout: 5e3 });
|
|
727
|
+
await execFileAsync$1(cmd, ["--version"], { timeout: 5e3 });
|
|
701
728
|
return cmd;
|
|
702
729
|
} catch (err) {
|
|
703
730
|
this.logger.debug(`Python command "${cmd}" not found`, { meta: { error: errMsg(err) } });
|
|
@@ -795,6 +822,68 @@ var InferenceConfigResolver = class {
|
|
|
795
822
|
}
|
|
796
823
|
};
|
|
797
824
|
//#endregion
|
|
825
|
+
//#region src/builtins/platform-probe/accelerator-facts-probe.ts
|
|
826
|
+
/**
|
|
827
|
+
* Read the accelerator compute the inference worker published (D930), or ask
|
|
828
|
+
* the same script once when this process has the embedded interpreter.
|
|
829
|
+
*
|
|
830
|
+
* A missing file and a failed probe are `null` — not an empty list, and not
|
|
831
|
+
* zeros. `getHardware` overlays a published file onto the cached probe so a
|
|
832
|
+
* pool that starts later still reaches Auto tune.
|
|
833
|
+
*/
|
|
834
|
+
/** Same name `accelerator_facts.FACTS_FILENAME` writes under the system temp dir. */
|
|
835
|
+
var ACCELERATOR_FACTS_FILENAME = "camstack-accelerator-facts.json";
|
|
836
|
+
var execFileAsync = promisify(execFile);
|
|
837
|
+
function publishedAcceleratorFactsPath() {
|
|
838
|
+
return path$1.join(os$1.tmpdir(), ACCELERATOR_FACTS_FILENAME);
|
|
839
|
+
}
|
|
840
|
+
function jsonValue(text) {
|
|
841
|
+
return JSON.parse(text);
|
|
842
|
+
}
|
|
843
|
+
/** `null` when the file is absent, unreadable, or not a facts payload. */
|
|
844
|
+
function readPublishedAcceleratorFacts(filePath) {
|
|
845
|
+
let text;
|
|
846
|
+
try {
|
|
847
|
+
text = fs$1.readFileSync(filePath, "utf8");
|
|
848
|
+
} catch {
|
|
849
|
+
return null;
|
|
850
|
+
}
|
|
851
|
+
try {
|
|
852
|
+
return parseAcceleratorFactsJson(jsonValue(text));
|
|
853
|
+
} catch {
|
|
854
|
+
return null;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
/** Where `accelerator_facts.py` lives, or null when this process cannot see the addon. */
|
|
858
|
+
function findAcceleratorFactsScript(dataDir, cwd = process.cwd()) {
|
|
859
|
+
const candidates = [];
|
|
860
|
+
if (typeof dataDir === "string" && dataDir !== "") candidates.push(path$1.join(dataDir, "addons", "@camstack", "addon-pipeline", "python", "accelerator_facts.py"));
|
|
861
|
+
candidates.push(path$1.join(cwd, "packages", "addon-pipeline", "python", "accelerator_facts.py"));
|
|
862
|
+
for (const candidate of candidates) if (fs$1.existsSync(candidate)) return candidate;
|
|
863
|
+
return null;
|
|
864
|
+
}
|
|
865
|
+
async function defaultExec(command, args, timeoutMs) {
|
|
866
|
+
const { stdout } = await execFileAsync(command, [...args], {
|
|
867
|
+
encoding: "utf8",
|
|
868
|
+
timeout: timeoutMs,
|
|
869
|
+
windowsHide: true
|
|
870
|
+
});
|
|
871
|
+
return stdout;
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* Run the facts script. `null` when there is no interpreter, no script, or
|
|
875
|
+
* the script could not ask the device (it prints `{"accelerators": null}`).
|
|
876
|
+
*/
|
|
877
|
+
async function runAcceleratorFactsProbe(input) {
|
|
878
|
+
if (input.pythonPath === null || input.scriptPath === null) return null;
|
|
879
|
+
const exec = input.exec ?? defaultExec;
|
|
880
|
+
try {
|
|
881
|
+
return parseAcceleratorFactsJson(jsonValue(await exec(input.pythonPath, [input.scriptPath], input.timeoutMs ?? 8e3)));
|
|
882
|
+
} catch {
|
|
883
|
+
return null;
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
//#endregion
|
|
798
887
|
//#region src/builtins/platform-probe/index.ts
|
|
799
888
|
/**
|
|
800
889
|
* The decode-hwaccel backends `ctx.kernel.hwaccel.resolve` accepts. The cap
|
|
@@ -883,7 +972,11 @@ var PlatformProbeNativeAddon = class extends BaseAddon {
|
|
|
883
972
|
this.ctx.logger.debug("ensurePython unavailable for platform probe", { meta: { error: errMsg(err) } });
|
|
884
973
|
return null;
|
|
885
974
|
});
|
|
886
|
-
|
|
975
|
+
const factsScript = findAcceleratorFactsScript(this.ctx.dataDir);
|
|
976
|
+
this.scorer = new PlatformScorer(this.ctx.logger.withTags({ nodeId: this.bareLocalNodeId() }), embeddedPython, nodeCoralFs, embeddedPython === null || factsScript === null ? null : () => runAcceleratorFactsProbe({
|
|
977
|
+
pythonPath: embeddedPython,
|
|
978
|
+
scriptPath: factsScript
|
|
979
|
+
}));
|
|
887
980
|
const emitPhase = (phase, payload) => {
|
|
888
981
|
this.ctx.eventBus?.emit({
|
|
889
982
|
id: `platform-probe-${phase}-${Date.now()}`,
|
|
@@ -929,7 +1022,13 @@ var PlatformProbeNativeAddon = class extends BaseAddon {
|
|
|
929
1022
|
return getCaps();
|
|
930
1023
|
},
|
|
931
1024
|
getHardware: async () => {
|
|
932
|
-
|
|
1025
|
+
const caps = await getCaps();
|
|
1026
|
+
const published = readPublishedAcceleratorFacts(publishedAcceleratorFactsPath());
|
|
1027
|
+
if (published === null) return caps.hardware;
|
|
1028
|
+
return {
|
|
1029
|
+
...caps.hardware,
|
|
1030
|
+
accelerators: published
|
|
1031
|
+
};
|
|
933
1032
|
},
|
|
934
1033
|
resolveInferenceConfig: async (input) => {
|
|
935
1034
|
const caps = await getCaps();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HardwareInfo, PlatformCapabilities, IScopedLogger } from "@camstack/types";
|
|
1
|
+
import type { HardwareInfo, PlatformCapabilities, IScopedLogger, AcceleratorCompute } from "@camstack/types";
|
|
2
2
|
import { type CoralFs } from "./coral-accelerators.js";
|
|
3
3
|
import { type AcceleratorReprobe } from "./accelerator-reprobe.js";
|
|
4
4
|
export declare class PlatformScorer {
|
|
@@ -15,7 +15,13 @@ export declare class PlatformScorer {
|
|
|
15
15
|
private readonly embeddedPythonPath;
|
|
16
16
|
/** Where the Coral scan reads `/sys` and `/dev` (the host's, unless a spec fakes one). */
|
|
17
17
|
private readonly coralFs;
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Asks OpenVINO / WebGPU for compute (D930). Null in tests and when this
|
|
20
|
+
* process has no embedded interpreter — the pool's published file is the
|
|
21
|
+
* other way the same facts arrive.
|
|
22
|
+
*/
|
|
23
|
+
private readonly readAcceleratorFacts;
|
|
24
|
+
constructor(logger?: IScopedLogger, embeddedPythonPath?: string | null, coralFs?: CoralFs, readAcceleratorFacts?: (() => Promise<readonly AcceleratorCompute[] | null>) | null);
|
|
19
25
|
/**
|
|
20
26
|
* Probe hardware + derive scores from pure rules and score all backend combos.
|
|
21
27
|
*
|
|
@@ -30,6 +36,8 @@ export declare class PlatformScorer {
|
|
|
30
36
|
*/
|
|
31
37
|
probe(onPhase?: (phase: string, payload?: Record<string, unknown>) => void): Promise<PlatformCapabilities>;
|
|
32
38
|
probeHardware(): Promise<HardwareInfo>;
|
|
39
|
+
/** Compute facts, or null when the probe did not run or could not ask. */
|
|
40
|
+
private readAcceleratorCompute;
|
|
33
41
|
/**
|
|
34
42
|
* The Coral part of the probe, with the evidence that decided it logged —
|
|
35
43
|
* a node that reports a Coral, or stops reporting one, says WHY (D919).
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bmah6waF.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Mi as UnknownRecordKindError, ca as mapSecretLeaves, di as InvalidRecordError, ga as recordSecretRef, rr as recordEntriesCapability, ti as BaseAddon } from "../../dist-C9lbdBL5.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bmah6waF.js");
|
|
7
7
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
8
8
|
/**
|
|
9
9
|
* Reconcile the durable `enabledProviders` set against authoritative
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Oa as EventCategory, ti as BaseAddon } from "../../dist-C9lbdBL5.mjs";
|
|
2
2
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
3
3
|
/**
|
|
4
4
|
* Reconcile the durable `enabledProviders` set against authoritative
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bmah6waF.js");
|
|
7
7
|
const require_snapshot_courtesy = require("../../snapshot-courtesy-D_C5-nC0.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $r as
|
|
1
|
+
import { $r as DeviceType, Ar as streamQualityLabel, Dt as batteryCapability, Et as bareAddonId, Hn as memoizePinnedFfmpeg, Oa as EventCategory, Sr as snapshotCapability, Xt as deriveBatteryPresence, Zr as DeviceFeature, ei as errMsg, la as nodePin, o as BatteryStatusSchema, ti as BaseAddon } from "../../dist-C9lbdBL5.mjs";
|
|
2
2
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg } from "../../snapshot-courtesy-CyFs1M3I.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bmah6waF.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let node_fs_promises = require("node:fs/promises");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Or as storageProviderCapability, pn as filesystemBrowseCapability, ti as BaseAddon } from "../../dist-C9lbdBL5.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { mkdir, readdir, realpath, statfs } from "node:fs/promises";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
|
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./filesystem-storage.addon.js");
|
|
7
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
7
|
+
const require_wal_maintenance = require("../../wal-maintenance-BT8Ns0W3.js");
|
|
8
8
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./sqlite-settings.addon.js");
|
|
9
9
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
10
10
|
var ConfigStore = class {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./filesystem-storage.addon.mjs";
|
|
2
|
-
import { A as SQLITE_MMAP_CEILING_BYTES, B as SQLITE_SLOW_CALL_MS, F as sqlitePageCacheKibFor, H as sqliteEngineStorm, I as SQLITE_ENGINE_STORM_WALL_SHARE, L as SQLITE_PROFILE_REPORT_FLOOR_MS, M as SQLITE_PAGE_CACHE_CEILING_KIB, N as SQLITE_PAGE_CACHE_FLOOR_KIB, P as sqliteMmapSizeFor, R as SQLITE_PROFILE_REPORT_INTERVAL_MS, V as SqliteOpProfiler, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, j as SQLITE_MMAP_FLOOR_BYTES, k as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as SQLITE_PROFILE_TOP_N } from "../../wal-maintenance-
|
|
2
|
+
import { A as SQLITE_MMAP_CEILING_BYTES, B as SQLITE_SLOW_CALL_MS, F as sqlitePageCacheKibFor, H as sqliteEngineStorm, I as SQLITE_ENGINE_STORM_WALL_SHARE, L as SQLITE_PROFILE_REPORT_FLOOR_MS, M as SQLITE_PAGE_CACHE_CEILING_KIB, N as SQLITE_PAGE_CACHE_FLOOR_KIB, P as sqliteMmapSizeFor, R as SQLITE_PROFILE_REPORT_INTERVAL_MS, V as SqliteOpProfiler, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, j as SQLITE_MMAP_FLOOR_BYTES, k as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as SQLITE_PROFILE_TOP_N } from "../../wal-maintenance-BuB731DK.mjs";
|
|
3
3
|
import { SqliteSettingsAddon } from "./sqlite-settings.addon.mjs";
|
|
4
4
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
5
5
|
var ConfigStore = class {
|
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_retired_settings_keys = require("../../retired-settings-keys-
|
|
8
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
6
|
+
const require_dist = require("../../dist-Bmah6waF.js");
|
|
7
|
+
const require_retired_settings_keys = require("../../retired-settings-keys-DorakcxV.js");
|
|
8
|
+
const require_wal_maintenance = require("../../wal-maintenance-BT8Ns0W3.js");
|
|
9
9
|
const require_sqlite_snapshot_protocol = require("../../sqlite-snapshot-protocol-B9OndqZv.js");
|
|
10
10
|
const require_wal_checkpoint_policy = require("../../wal-checkpoint-policy-d2z2qPqx.js");
|
|
11
11
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as retiredKeyStoreOf, t as purgeRetiredSettingsKeys } from "../../retired-settings-keys-
|
|
3
|
-
import { C as RecordsEngine, D as callVector, E as callRecords, O as controlTargetOf, S as trustResult, T as callData, _ as collectTransferables, a as WalMaintenance, c as vectorProviderOfOwnedFile, d as CrossDatabaseTransactError, f as DatabaseBusyError, l as SqliteSettingsBackend, m as rehydrateError, o as createVectorIndex, p as DuplicatePlacementError, s as vectorProviderOf, u as CollectionPlacementError, v as isFileHostMessage, w as callControl } from "../../wal-maintenance-
|
|
1
|
+
import { Ai as TransactRefusedError, C as DATA_STORE_DATABASES, Ci as RecordKindDeclarationSchema, Et as bareAddonId, Gt as dataStoreProviderCapability, Kt as databaseSnapshotCapability, Lr as vectorStoreCapability, Mi as UnknownRecordKindError, S as DATABASE_SNAPSHOT_TIMEOUT_MS, _i as RECORD_SWEEP_INTERVAL_MS, b as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, bi as RUNTIME_DEFAULTS, da as normalizeSecretOwner, di as InvalidRecordError, ei as errMsg, fi as NoCallerError, ir as recordsCapability, si as DeclarationRefusedError, ti as BaseAddon, wr as storageAdminCapability, x as DATABASE_SNAPSHOT_SUFFIX } from "../../dist-C9lbdBL5.mjs";
|
|
2
|
+
import { r as retiredKeyStoreOf, t as purgeRetiredSettingsKeys } from "../../retired-settings-keys-CWp7ZSeA.mjs";
|
|
3
|
+
import { C as RecordsEngine, D as callVector, E as callRecords, O as controlTargetOf, S as trustResult, T as callData, _ as collectTransferables, a as WalMaintenance, c as vectorProviderOfOwnedFile, d as CrossDatabaseTransactError, f as DatabaseBusyError, l as SqliteSettingsBackend, m as rehydrateError, o as createVectorIndex, p as DuplicatePlacementError, s as vectorProviderOf, u as CollectionPlacementError, v as isFileHostMessage, w as callControl } from "../../wal-maintenance-BuB731DK.mjs";
|
|
4
4
|
import { r as isSnapshotWorkerMessage } from "../../sqlite-snapshot-protocol-2QaTouWV.mjs";
|
|
5
5
|
import { a as isWorkerMessage, t as WAL_CHECKPOINT_LARGE_PASS_FRAMES } from "../../wal-checkpoint-policy-BahrTtyD.mjs";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bmah6waF.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bi as collectSecretConfigKeys, Bn as mayReadLocation, En as isLocationEnabled, Er as storageMigrationCapability, Nn as legacyModeOf, Oa as EventCategory, Rr as withLocationMode, Ta as transformSecretWrite, Tr as storageCapability, Vn as mayWriteToLocation, Wn as modeMayWrite, _n as gbToBytes, ba as secretTreeFromPaths, dt as StorageLocationModeSchema, fa as parseJsonObject, fr as resolveLocationMode, ft as StorageLocationTypeSchema, ia as isSecretMarker, ln as evictionPolicyOfLocation, pt as StorageMigrationJobSchema, q as LegacyStorageLocationDefaultSchema, qi as defineRecordKinds, ti as BaseAddon, ua as normalizeNodeId, ut as StorageCleanupJobSchema, va as resolveSecretMarkers, vi as REDACTED_SECRET, yr as settingsStoreCapability } from "../../dist-C9lbdBL5.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -3,11 +3,11 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bmah6waF.js");
|
|
7
7
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
8
8
|
const require_x509_es = require("../../x509.es-C4cOo48M.js");
|
|
9
|
-
const require_agent_https = require("../../agent-https-
|
|
10
|
-
const require_constants$8 = require("../../constants-
|
|
9
|
+
const require_agent_https = require("../../agent-https-B9Q3-IKd.js");
|
|
10
|
+
const require_constants$8 = require("../../constants-XkWSVvgY.js");
|
|
11
11
|
const require_src$1 = require("../../src-CnAqG6EF.js");
|
|
12
12
|
let zod = require("zod");
|
|
13
13
|
let node_crypto = require("node:crypto");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { $
|
|
2
|
+
import { $i as hydrateSchema, Gi as customAction, Ki as defineCustomActions, br as shortHostname, ct as ServerNameSchema, ei as errMsg, ti as BaseAddon } from "../../dist-C9lbdBL5.mjs";
|
|
3
3
|
import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
|
|
4
4
|
import { S as backdatedNotBefore, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension } from "../../x509.es-DK__ETIe.mjs";
|
|
5
|
-
import { B as setProcessAgentHttpsNames, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, R as AgentHttpsNames, V as systemConfigRecordKinds, u as isPrivateAddress, z as getProcessAgentHttpsNames } from "../../agent-https-
|
|
6
|
-
import { a as MESH_CA_KEY_REF, c as SERVER_AUTH_OID, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID } from "../../constants-
|
|
5
|
+
import { B as setProcessAgentHttpsNames, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, R as AgentHttpsNames, V as systemConfigRecordKinds, u as isPrivateAddress, z as getProcessAgentHttpsNames } from "../../agent-https-DOwn4pqL.mjs";
|
|
6
|
+
import { a as MESH_CA_KEY_REF, c as SERVER_AUTH_OID, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID } from "../../constants-p5mPM1iL.mjs";
|
|
7
7
|
import { t as require_src } from "../../src-hG4grMU4.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, randomInt, sign, timingSafeEqual, verify, webcrypto } from "node:crypto";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bmah6waF.js");
|
|
7
7
|
const require_formatter = require("../../formatter-DqAKDlvN.js");
|
|
8
8
|
const require_log_file_read_protocol = require("../../log-file-read-protocol-D0WcLbIV.js");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ln as logDestinationCapability,
|
|
1
|
+
import { Ln as logDestinationCapability, ti as BaseAddon } from "../../dist-C9lbdBL5.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
3
3
|
import { a as LogFileIndexStore, i as serveRead, n as isFromReader, t as CancelBook } from "../../log-file-read-protocol-B7M3X3bT.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ei as errMsg, qr as compositionSourceKey } from "./dist-C9lbdBL5.mjs";
|
|
2
2
|
//#region src/builtins/core-blocks/composition-sources.ts
|
|
3
3
|
/**
|
|
4
4
|
* Describe what a composition reads and writes for SAVE-time validation
|