@camstack/server 1.2.900 → 1.2.902
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/CHANGELOG.md +12 -0
- package/package.json +16 -12
- package/system/dist/addon-runner.js +9 -4
- package/system/dist/addon-runner.mjs +10 -5
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/command-holds.d.ts +2 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +18 -4
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +18 -4
- package/system/dist/builtins/device-manager/device-state-mirror.d.ts +2 -0
- package/system/dist/builtins/device-manager/state-refresh-scheduler.d.ts +5 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +46 -19
- package/system/dist/builtins/platform-probe/index.mjs +46 -19
- package/system/dist/builtins/platform-probe/platform-scorer.d.ts +7 -0
- package/system/dist/builtins/platform-probe/windows-hardware.d.ts +11 -6
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-B3csK2sW.js → capture-engine-BsGVKjld.js} +1 -1
- package/system/dist/{capture-engine-CCAzcezv.mjs → capture-engine-D0FpnENM.mjs} +1 -1
- package/system/dist/{composition-sources-Bkbk5Oh5.js → composition-sources-75AgWPIR.js} +1 -1
- package/system/dist/{composition-sources-BX7u-Hdf.mjs → composition-sources-B3anVC1t.mjs} +1 -1
- package/system/dist/{constants-BqxCksdV.js → constants-BhN1jHcJ.js} +1 -1
- package/system/dist/{constants-_bOm_ae5.mjs → constants-CjGZCAun.mjs} +1 -1
- package/system/dist/{device-ca-KNx_DazP.js → device-ca-D0-IU1v8.js} +1 -1
- package/system/dist/{device-ca-DRqN1P5Y.mjs → device-ca-rg3jkL9j.mjs} +1 -1
- package/system/dist/{dist-BNrIzdrJ.js → dist-Cadmv3rL.js} +372 -276
- package/system/dist/{dist-S-zGcCEr.mjs → dist-DFRmPXTo.mjs} +361 -271
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-pN0LtUhx.js → hub-identity-CYU8a0Hk.js} +1 -1
- package/system/dist/{hub-identity-DSdbZxeR.mjs → hub-identity-D5hgkkLm.mjs} +1 -1
- package/system/dist/{hub-mdns-ciao-wAcv5VBY.mjs → hub-mdns-ciao-BkD9s5Bz.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-GafEbDm8.js → hub-mdns-ciao-CDCn7uUo.js} +2 -2
- package/system/dist/index.js +20 -14
- package/system/dist/index.mjs +21 -15
- package/system/dist/kernel/inference/inference-resolver.d.ts +4 -2
- package/system/dist/{legacy-integration-rows-door-B1swGb0r.js → legacy-integration-rows-door-C_l9jAFJ.js} +1 -1
- package/system/dist/{legacy-integration-rows-door--186Wij_.mjs → legacy-integration-rows-door-mF8pNWEV.mjs} +1 -1
- package/system/dist/{rename-composition-block-Cf5syiM4.mjs → rename-composition-block-CyULF94b.mjs} +1 -1
- package/system/dist/{rename-composition-block-gJ_4GdHr.js → rename-composition-block-lHaoyeuW.js} +1 -1
- package/system/dist/{restore-archive-D7UwwT1L.mjs → restore-archive-BZhn64U7.mjs} +82 -82
- package/system/dist/{restore-archive-DXi9iBay.js → restore-archive-IDxQg4bp.js} +1 -1
- package/system/dist/{wal-maintenance-s3KdED98.mjs → wal-maintenance-BFe0hYbV.mjs} +0 -0
- package/system/dist/{wal-maintenance-BA9XNPvt.js → wal-maintenance-Cj1dmAUb.js} +0 -0
- package/system/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
2
|
+
const require_wal_maintenance = require("./wal-maintenance-Cj1dmAUb.js");
|
|
3
3
|
let node_worker_threads = require("node:worker_threads");
|
|
4
4
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-
|
|
1
|
+
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-BFe0hYbV.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-Cadmv3rL.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { wl as defineRecordKinds } from "./dist-DFRmPXTo.mjs";
|
|
2
2
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-BRiJgOvu.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { vu as userError } from "./dist-DFRmPXTo.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
|
|
4
|
-
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-
|
|
4
|
+
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-D5hgkkLm.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
6
6
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
7
7
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-Cadmv3rL.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
|
-
const require_hub_identity = require("./hub-identity-
|
|
4
|
+
const require_hub_identity = require("./hub-identity-CYU8a0Hk.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let _camstack_types_node = require("@camstack/types/node");
|
|
7
7
|
let node_fs = require("node:fs");
|
package/system/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
4
|
-
const require_device_ca = require("./device-ca-
|
|
3
|
+
const require_dist = require("./dist-Cadmv3rL.js");
|
|
4
|
+
const require_device_ca = require("./device-ca-D0-IU1v8.js");
|
|
5
5
|
const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
|
|
6
6
|
const require_log_redactor = require("./log-redactor-BhIEMaG9.js");
|
|
7
7
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
@@ -28,22 +28,22 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
|
|
|
28
28
|
const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
|
|
29
29
|
const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
|
|
30
30
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
|
|
31
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
32
|
-
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-
|
|
31
|
+
const require_wal_maintenance = require("./wal-maintenance-Cj1dmAUb.js");
|
|
32
|
+
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-C_l9jAFJ.js");
|
|
33
33
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
|
34
34
|
const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
|
|
35
35
|
const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
|
|
36
36
|
require("./builtins/storage-orchestrator/index.js");
|
|
37
|
-
const require_hub_identity = require("./hub-identity-
|
|
38
|
-
const require_constants = require("./constants-
|
|
37
|
+
const require_hub_identity = require("./hub-identity-CYU8a0Hk.js");
|
|
38
|
+
const require_constants = require("./constants-BhN1jHcJ.js");
|
|
39
39
|
const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
|
|
40
40
|
require("./builtins/system-config/index.js");
|
|
41
41
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
42
42
|
const require_custom_action_registry = require("./custom-action-registry-CmWpSeMS.js");
|
|
43
|
-
const require_hub_mdns_ciao = require("./hub-mdns-ciao-
|
|
43
|
+
const require_hub_mdns_ciao = require("./hub-mdns-ciao-CDCn7uUo.js");
|
|
44
44
|
const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
|
|
45
45
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
46
|
-
const require_restore_archive = require("./restore-archive-
|
|
46
|
+
const require_restore_archive = require("./restore-archive-IDxQg4bp.js");
|
|
47
47
|
const require_coral_accelerators = require("./coral-accelerators-BSVsBVzt.js");
|
|
48
48
|
let zod = require("zod");
|
|
49
49
|
let node_crypto = require("node:crypto");
|
|
@@ -20817,7 +20817,9 @@ function createKernelHwAccel(options = {}) {
|
|
|
20817
20817
|
//#region src/kernel/inference/inference-resolver.ts
|
|
20818
20818
|
/**
|
|
20819
20819
|
* Map the shared platform GPU-vendor probe into the inference `gpu`/`npu` types
|
|
20820
|
-
* the runtime scorer understands. NVIDIA
|
|
20820
|
+
* the runtime scorer understands. NVIDIA gets its OWN slot (like the Coral),
|
|
20821
|
+
* never `gpu`: it is `cuda` only when usable (the CUDA EP is listed), and an
|
|
20822
|
+
* idle NVIDIA card can never hide the iGPU OpenVINO runs on. AMD iGPU → WebGPU/OV-CPU;
|
|
20821
20823
|
* Intel iGPU (or a bare unknown-vendor render node) → openvino; Apple Silicon
|
|
20822
20824
|
* → CoreML/ANE; Intel NPU ("AI Boost") → intel-npu. The NPU only bumps the
|
|
20823
20825
|
* score, never changes the openvino winner, but surfacing it lets the TS
|
|
@@ -20828,11 +20830,14 @@ function createKernelHwAccel(options = {}) {
|
|
|
20828
20830
|
* node AND `hasAmdGpu`, and classifying it as Intel would offer
|
|
20829
20831
|
* `openvino:gpu`/`npu` that do not exist on the host.
|
|
20830
20832
|
*/
|
|
20831
|
-
function mapSignalsToInferenceHardware(signals) {
|
|
20833
|
+
function mapSignalsToInferenceHardware(signals, onnxExecutionProviders = null) {
|
|
20834
|
+
const gpu = signals.hasAmdGpu ? { type: "amd" } : signals.hasIntelGpu ? { type: "intel" } : signals.hasRenderNode ? { type: "intel" } : null;
|
|
20835
|
+
const nvidia = signals.hasNvidiaGpu ? (0, _camstack_types_addon.describeNvidia)({ name: "NVIDIA GPU" }, onnxExecutionProviders) : null;
|
|
20832
20836
|
return {
|
|
20833
|
-
gpu
|
|
20837
|
+
gpu,
|
|
20834
20838
|
npu: signals.platform === "darwin" && signals.arch === "arm64" ? { type: "apple-ane" } : signals.hasIntelNpu ? { type: "intel-npu" } : null,
|
|
20835
|
-
coral: signals.coral
|
|
20839
|
+
coral: signals.coral,
|
|
20840
|
+
...nvidia === null ? {} : { nvidia }
|
|
20836
20841
|
};
|
|
20837
20842
|
}
|
|
20838
20843
|
/**
|
|
@@ -23025,7 +23030,7 @@ function createStreamProbeBrokerService(deps) {
|
|
|
23025
23030
|
* topology `engines`, but nothing ever filled it — every node rendered "—".
|
|
23026
23031
|
*/
|
|
23027
23032
|
function asGpuType(type) {
|
|
23028
|
-
if (type === "
|
|
23033
|
+
if (type === "amd" || type === "intel" || type === "apple") return type;
|
|
23029
23034
|
return null;
|
|
23030
23035
|
}
|
|
23031
23036
|
function asNpuType(type) {
|
|
@@ -23052,7 +23057,8 @@ function localHardwareInfo() {
|
|
|
23052
23057
|
name: gpuType
|
|
23053
23058
|
} : null,
|
|
23054
23059
|
npu: npuType !== null ? { type: npuType } : null,
|
|
23055
|
-
coral: inference.coral ?? null
|
|
23060
|
+
coral: inference.coral ?? null,
|
|
23061
|
+
nvidia: inference.nvidia ?? null
|
|
23056
23062
|
};
|
|
23057
23063
|
}
|
|
23058
23064
|
/** Runtime ids offered on this host (`onnx`, `openvino`, `coreml`, `edgetpu`). */
|
package/system/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { $
|
|
3
|
-
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-
|
|
2
|
+
import { $a as procedureAuthKey, Al as expandCapMethods, Dc as DEVICE_STATUS_METHOD, Ec as DEVICE_SETTINGS_CONTRIBUTION_METHODS, El as emitDownForOwnedCaps, Eu as errMsg$1, Fa as objectInputDeclaresAddonId, Ft as LOG_LEVEL_RANK, Gc as ReadinessTimeoutError, Ho as scopesAllowDeviceCap, Ia as objectInputDeclaresRequiredDeviceId, Ii as interpolate, Li as isAddonInstanceId, Ll as isDebugChannelName, Lt as METHOD_ACCESS_MAP, Ml as getDebugInterest, Oo as resolveMethodAuth, Ou as EventCategory$1, Qi as isVoidInput, S as CATALOG_LANGS, Ss as unmetRequirements, Tc as DATAPLANE_SECRET_HEADER$1, Uc as RUNTIME_DEFAULTS, Ui as isCollectionArrayMethod, Ur as describeUnmet, Vi as isArrayOutputSchema, Vo as scopesAllowAddon, Wc as ReadinessRegistry, Xi as isObjectInput, Yn as bareAddonId, Zt as PackageRequiresSchema, a as AGENT_MDNS_SERVICE_TYPE, au as resolveCapMount, cl as asString$1, cu as scopeKey, ea as kebabToCamel$1, eu as parseJsonObject, hl as collectSecretMarkerRefs, k as CatalogFileSchema, ma as looseSchema, mu as supportedRuntimes, o as AGENT_MDNS_TXT_KEYS, oa as lifecycleJobSchema, ol as asJsonObject$1, pa as logLevelAtMost, ru as readinessKey, s as ALL_CAPABILITY_DEFINITIONS, sl as asNumber, ts as splitTranslationRef, tu as parseJsonUnknown, ui as extractNestedAddonId, vr as compareVersions, vu as userError, wc as CALLER_STAMPED_CAPABILITIES$1, wl as defineRecordKinds, xu as withoutCallerStamp, yl as createEvent$1, zn as addonSettingsCapability } from "./dist-DFRmPXTo.mjs";
|
|
3
|
+
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-rg3jkL9j.mjs";
|
|
4
4
|
import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
|
|
5
5
|
import { a as redactLogText, i as redactLogMeta, r as redactLogEntry, t as isCredentialKeyName } from "./log-redactor-XLDrPzOi.mjs";
|
|
6
6
|
import { AlertCenterAddon, n as lastCauseAfterChunk, r as readRunnerDisplayName, t as CRASH_BREAKER_ERROR_PREFIX } from "./builtins/alerts/alerts.addon.mjs";
|
|
@@ -27,22 +27,22 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
|
|
|
27
27
|
import NativeMetricsAddon, { a as NativeMetricsProvider, i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
|
|
28
28
|
import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
|
|
29
29
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
|
|
30
|
-
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-
|
|
31
|
-
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door
|
|
30
|
+
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-BFe0hYbV.mjs";
|
|
31
|
+
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-mF8pNWEV.mjs";
|
|
32
32
|
import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
|
|
33
33
|
import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
|
|
34
34
|
import { StorageOrchestratorAddon, a as createHubCapForwardService, i as HUB_CAP_FWD_SERVICE, o as stripForwardedCaller, r as HUB_CAP_FWD_ACTION, s as buildStorageLocationRegistry, t as StorageOrchestratorService, u as storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
|
|
35
35
|
import "./builtins/storage-orchestrator/index.mjs";
|
|
36
|
-
import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-
|
|
37
|
-
import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-
|
|
36
|
+
import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-D5hgkkLm.mjs";
|
|
37
|
+
import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-CjGZCAun.mjs";
|
|
38
38
|
import { $ as getProcessMeshCaState, A as emitProcessNodeRegistered, At as readCidrSetting, B as getProcessMeshTlsListenerState, C as verifyMembershipAnswer, Ct as isInsecureOrigin, D as ServiceBroker, Dt as createCidrMatcher, E as Errors, Et as readOriginSetting, F as onProcessNodeRegistered, G as MeshCertificateRegistry, H as setProcessMeshTlsListenerState, I as setProcessMeshHandshakeReporter, J as getProcessMeshCertificateRegistry, K as RENEWAL_ABANDONED, L as setProcessMeshPeerTransportLookup, M as getProcessNodeMeshTransport, N as getProcessPeerLeaf, O as setProcessMeshTlsEnabler, Ot as normalizeIp, P as isProcessVerifiedMeshPeer, Q as MeshCaKeeper, R as renewMeshCertificate, S as signMembershipProof, St as OPAQUE_ORIGIN, SystemConfigAddon, T as TlsTcpTransporter, Tt as parseOriginList, U as MESH_NODE_CERTIFICATES_COLLECTION, V as openMeshTlsWhenRevocationsLoaded, W as MESH_NODE_CERTIFICATES_COLUMNS, X as MeshCrl, Y as setProcessMeshCertificateRegistry, Z as processMeshCrl, _ as keyFingerprintShort, _t as isAllowedAgentDashboardReturnTo, a as dialableHubHost, at as generateMeshCa, b as MEMBERSHIP_PATHS, bt as verifyAgentUiUnlockTicket, c as PAIRING_MAX_CODE_ATTEMPTS, ct as issueMeshLeafForNode, d as PAIRING_PIN_DIGITS, dt as AGENT_DASHBOARD_ORIGINS_FIELD, et as requireProcessMeshCa, f as PAIRING_PROTOCOL, ft as AGENT_UI_UNLOCK_TTL_MS, g as describeCsr, gt as UnlockTicketJtiStore, h as computePairingSas, ht as AGENT_UI_UNLOCK_VERSION, i as AgentPairing, it as exportMeshPrivateKeyPem, j as getProcessMeshHandshakeReporter, k as dropProcessPeer, kt as parseCidrList, l as PAIRING_MAX_SESSIONS, lt as issueMeshLeafFromCsr, m as computePairingCommitment, mt as AGENT_UI_UNLOCK_USE, n as HubPairing, nt as caFingerprintCompact, o as hubHostFromMeshAddress, ot as generateMeshKeyPair, p as PAIRING_TTL_MS, pt as AGENT_UI_UNLOCK_TYP, q as describeMeshLeaf, r as PairingHttpError, rt as createMeshCsrPem, s as PAIRING_CODE_DIGITS, st as isValidAgentNodeId, tt as caFingerprint, u as PAIRING_PATHS, ut as loadMeshCa, v as signPairingProof, vt as mintAgentUiUnlockTicket, w as MESH_TLS_PORT_HELLO_FIELD, wt as normalizeOrigin, x as MembershipResponder, xt as InvalidCorsOriginError, y as verifyPairingProof, yt as parseAgentDashboardOrigins, z as revokeMeshCertificate } from "./builtins/system-config/system-config.addon.mjs";
|
|
39
39
|
import "./builtins/system-config/index.mjs";
|
|
40
40
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
41
41
|
import { C as isModelDownloaded, E as setHuggingFaceReachabilityObserver, T as revisionWeightUrl, _ as downloadFile, a as startEventLoopStallMonitor, b as fetchJson, c as createAuthenticatedFileServer, d as resolveFilePath, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, u as parseTokenizedUrl, v as downloadModel, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-B9zFBNVa.mjs";
|
|
42
|
-
import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-
|
|
42
|
+
import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-BkD9s5Bz.mjs";
|
|
43
43
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
44
44
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
|
|
45
|
-
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-
|
|
45
|
+
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-BZhn64U7.mjs";
|
|
46
46
|
import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
|
|
47
47
|
import { z } from "zod";
|
|
48
48
|
import * as crypto$1 from "node:crypto";
|
|
@@ -53,7 +53,7 @@ import * as fs$1 from "node:fs";
|
|
|
53
53
|
import { accessSync, constants, createReadStream, createWriteStream, existsSync, readFileSync, readdirSync } from "node:fs";
|
|
54
54
|
import * as path$1 from "node:path";
|
|
55
55
|
import { basename, dirname, isAbsolute, join, resolve } from "node:path";
|
|
56
|
-
import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, CAP_METHOD_NOT_IMPLEMENTED, CAP_METHOD_TIMEOUTS_MS, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, CommandOriginClaimSchema, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry as ReadinessRegistry$1, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, commandOrigin, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods as expandCapMethods$1, isCommand, readCommandOrigin, readErrorI18n, readNodePin, resolveDeviceSettings, scopeKey as scopeKey$1, sleep, switchRefusesSetState, withCapInputDefaults } from "@camstack/types/addon";
|
|
56
|
+
import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, CAP_METHOD_NOT_IMPLEMENTED, CAP_METHOD_TIMEOUTS_MS, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, CommandOriginClaimSchema, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry as ReadinessRegistry$1, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, commandOrigin, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, describeNvidia, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods as expandCapMethods$1, isCommand, readCommandOrigin, readErrorI18n, readNodePin, resolveDeviceSettings, scopeKey as scopeKey$1, sleep, switchRefusesSetState, withCapInputDefaults } from "@camstack/types/addon";
|
|
57
57
|
import { mkdir, rm, stat, unlink } from "node:fs/promises";
|
|
58
58
|
import * as util from "node:util";
|
|
59
59
|
import { promisify } from "node:util";
|
|
@@ -20813,7 +20813,9 @@ function createKernelHwAccel(options = {}) {
|
|
|
20813
20813
|
//#region src/kernel/inference/inference-resolver.ts
|
|
20814
20814
|
/**
|
|
20815
20815
|
* Map the shared platform GPU-vendor probe into the inference `gpu`/`npu` types
|
|
20816
|
-
* the runtime scorer understands. NVIDIA
|
|
20816
|
+
* the runtime scorer understands. NVIDIA gets its OWN slot (like the Coral),
|
|
20817
|
+
* never `gpu`: it is `cuda` only when usable (the CUDA EP is listed), and an
|
|
20818
|
+
* idle NVIDIA card can never hide the iGPU OpenVINO runs on. AMD iGPU → WebGPU/OV-CPU;
|
|
20817
20819
|
* Intel iGPU (or a bare unknown-vendor render node) → openvino; Apple Silicon
|
|
20818
20820
|
* → CoreML/ANE; Intel NPU ("AI Boost") → intel-npu. The NPU only bumps the
|
|
20819
20821
|
* score, never changes the openvino winner, but surfacing it lets the TS
|
|
@@ -20824,11 +20826,14 @@ function createKernelHwAccel(options = {}) {
|
|
|
20824
20826
|
* node AND `hasAmdGpu`, and classifying it as Intel would offer
|
|
20825
20827
|
* `openvino:gpu`/`npu` that do not exist on the host.
|
|
20826
20828
|
*/
|
|
20827
|
-
function mapSignalsToInferenceHardware(signals) {
|
|
20829
|
+
function mapSignalsToInferenceHardware(signals, onnxExecutionProviders = null) {
|
|
20830
|
+
const gpu = signals.hasAmdGpu ? { type: "amd" } : signals.hasIntelGpu ? { type: "intel" } : signals.hasRenderNode ? { type: "intel" } : null;
|
|
20831
|
+
const nvidia = signals.hasNvidiaGpu ? describeNvidia({ name: "NVIDIA GPU" }, onnxExecutionProviders) : null;
|
|
20828
20832
|
return {
|
|
20829
|
-
gpu
|
|
20833
|
+
gpu,
|
|
20830
20834
|
npu: signals.platform === "darwin" && signals.arch === "arm64" ? { type: "apple-ane" } : signals.hasIntelNpu ? { type: "intel-npu" } : null,
|
|
20831
|
-
coral: signals.coral
|
|
20835
|
+
coral: signals.coral,
|
|
20836
|
+
...nvidia === null ? {} : { nvidia }
|
|
20832
20837
|
};
|
|
20833
20838
|
}
|
|
20834
20839
|
/**
|
|
@@ -23021,7 +23026,7 @@ function createStreamProbeBrokerService(deps) {
|
|
|
23021
23026
|
* topology `engines`, but nothing ever filled it — every node rendered "—".
|
|
23022
23027
|
*/
|
|
23023
23028
|
function asGpuType(type) {
|
|
23024
|
-
if (type === "
|
|
23029
|
+
if (type === "amd" || type === "intel" || type === "apple") return type;
|
|
23025
23030
|
return null;
|
|
23026
23031
|
}
|
|
23027
23032
|
function asNpuType(type) {
|
|
@@ -23048,7 +23053,8 @@ function localHardwareInfo() {
|
|
|
23048
23053
|
name: gpuType
|
|
23049
23054
|
} : null,
|
|
23050
23055
|
npu: npuType !== null ? { type: npuType } : null,
|
|
23051
|
-
coral: inference.coral ?? null
|
|
23056
|
+
coral: inference.coral ?? null,
|
|
23057
|
+
nvidia: inference.nvidia ?? null
|
|
23052
23058
|
};
|
|
23053
23059
|
}
|
|
23054
23060
|
/** Runtime ids offered on this host (`onnx`, `openvino`, `coreml`, `edgetpu`). */
|
|
@@ -2,7 +2,9 @@ import type { IKernelInferenceEngine, KernelInferenceHardware } from "@camstack/
|
|
|
2
2
|
import { type PlatformSignals } from "../hwaccel/hwaccel-resolver.js";
|
|
3
3
|
/**
|
|
4
4
|
* Map the shared platform GPU-vendor probe into the inference `gpu`/`npu` types
|
|
5
|
-
* the runtime scorer understands. NVIDIA
|
|
5
|
+
* the runtime scorer understands. NVIDIA gets its OWN slot (like the Coral),
|
|
6
|
+
* never `gpu`: it is `cuda` only when usable (the CUDA EP is listed), and an
|
|
7
|
+
* idle NVIDIA card can never hide the iGPU OpenVINO runs on. AMD iGPU → WebGPU/OV-CPU;
|
|
6
8
|
* Intel iGPU (or a bare unknown-vendor render node) → openvino; Apple Silicon
|
|
7
9
|
* → CoreML/ANE; Intel NPU ("AI Boost") → intel-npu. The NPU only bumps the
|
|
8
10
|
* score, never changes the openvino winner, but surfacing it lets the TS
|
|
@@ -13,7 +15,7 @@ import { type PlatformSignals } from "../hwaccel/hwaccel-resolver.js";
|
|
|
13
15
|
* node AND `hasAmdGpu`, and classifying it as Intel would offer
|
|
14
16
|
* `openvino:gpu`/`npu` that do not exist on the host.
|
|
15
17
|
*/
|
|
16
|
-
export declare function mapSignalsToInferenceHardware(signals: PlatformSignals): KernelInferenceHardware;
|
|
18
|
+
export declare function mapSignalsToInferenceHardware(signals: PlatformSignals, onnxExecutionProviders?: readonly string[] | null): KernelInferenceHardware;
|
|
17
19
|
/**
|
|
18
20
|
* Build the local in-process inference-hardware resolver used to populate
|
|
19
21
|
* `ctx.kernel.inferenceEngine`. The exact model as `createKernelHwAccel`:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { hl as collectSecretMarkerRefs } from "./dist-DFRmPXTo.mjs";
|
|
2
2
|
//#region src/builtins/sqlite-storage/migrations/legacy-integration-rows-door.ts
|
|
3
3
|
/**
|
|
4
4
|
* Migration-only door for the leftover integration rows (planning#416).
|
package/system/dist/{rename-composition-block-Cf5syiM4.mjs → rename-composition-block-CyULF94b.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Eu as errMsg, Su as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./dist-DFRmPXTo.mjs";
|
|
2
2
|
//#region src/builtins/core-blocks/rename-composition-block.ts
|
|
3
3
|
/**
|
|
4
4
|
* An operator rename of a composed device writes the composition block's
|