@camstack/system 1.2.457 → 1.2.459
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/addon-runner.js +163 -27
- package/dist/addon-runner.mjs +193 -57
- package/dist/{agent-https-CoyOZ3pC.js → agent-https-Dnr_nIVx.js} +3 -723
- package/dist/{agent-https-CK9Z4sSR.mjs → agent-https-Iw3RSQup.mjs} +4 -616
- 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 +5 -7
- package/dist/builtins/alerts/alerts.addon.mjs +5 -7
- package/dist/builtins/alerts/record-kinds.d.ts +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 +242 -4
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +240 -2
- package/dist/builtins/calendars/calendars.addon.js +2 -10
- package/dist/builtins/calendars/calendars.addon.mjs +2 -3
- package/dist/builtins/calendars/record-kinds.d.ts +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 +4 -6
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +4 -6
- package/dist/builtins/device-history/device-history.addon.d.ts +13 -0
- package/dist/builtins/device-history/device-history.addon.js +296 -233
- package/dist/builtins/device-history/device-history.addon.mjs +296 -233
- package/dist/builtins/device-history/ingest/producer-ingest.d.ts +11 -1
- package/dist/builtins/device-manager/device-manager.addon.js +2 -4
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -4
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +41 -43
- package/dist/builtins/keychain/index.mjs +41 -43
- 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 +24 -40
- package/dist/builtins/local-auth/local-auth.addon.mjs +24 -40
- 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/native-metrics/node-metrics-history-recorder.d.ts +1 -2
- package/dist/builtins/platform-probe/coral-accelerators.d.ts +26 -9
- package/dist/builtins/platform-probe/index.js +11 -68
- package/dist/builtins/platform-probe/index.mjs +11 -68
- 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/file-host-protocol.d.ts +0 -15
- 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/owned-sqlite-file.d.ts +0 -44
- package/dist/builtins/sqlite-storage/records/records-catalog.d.ts +0 -2
- package/dist/builtins/sqlite-storage/records/records-engine-types.d.ts +0 -21
- package/dist/builtins/sqlite-storage/records/records-engine.d.ts +3 -20
- package/dist/builtins/sqlite-storage/records/records-provider.d.ts +4 -18
- package/dist/builtins/sqlite-storage/records/records-sql.d.ts +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +0 -17
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +21 -196
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +21 -196
- package/dist/builtins/sqlite-storage/storage-admin-provider.d.ts +6 -14
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +2 -2
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +7 -9
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +7 -9
- package/dist/builtins/system-config/system-config.addon.js +667 -40
- package/dist/builtins/system-config/system-config.addon.mjs +625 -15
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-B_jeZDRJ.mjs → composition-sources-DNRZWR1j.mjs} +1 -1
- package/dist/{composition-sources-qKyvMAvc.js → composition-sources-b0e_2I-D.js} +1 -1
- package/dist/{constants-B_X9cWEK.js → constants-6OeJiZgi.js} +1 -1
- package/dist/{constants-cxKcZRMi.mjs → constants-BnkOdj9Q.mjs} +1 -1
- package/dist/coral-accelerators-Bi_c3Rft.js +175 -0
- package/dist/coral-accelerators-DcnZvctM.mjs +162 -0
- package/dist/{device-ca-BB6nHAL5.mjs → device-ca-Bnkw8GyU.mjs} +1 -1
- package/dist/{device-ca-CVK3YcR_.js → device-ca-CPTDs--d.js} +1 -1
- package/dist/{dist-C89nqNnn.js → dist-Bn-RNanh.js} +84 -140
- package/dist/{dist-Dhux90yB.mjs → dist-Wy8cTxg6.mjs} +85 -123
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/{hub-mdns-ciao-B8olZqqd.mjs → hub-mdns-ciao-CJu0nhla.mjs} +2 -2
- package/dist/{hub-mdns-ciao-DB1Y9agt.js → hub-mdns-ciao-CTBTlia4.js} +2 -2
- package/dist/index.js +32 -58
- package/dist/index.mjs +16 -42
- package/dist/kernel/hwaccel/hwaccel-resolver.d.ts +7 -3
- package/dist/{restore-archive-DyOaPeAr.mjs → restore-archive-CmP-iiG9.mjs} +84 -331
- package/dist/{restore-archive-4DOUR5Gu.js → restore-archive-DM1OBYq4.js} +89 -342
- package/dist/{wal-maintenance-DVN-DiVP.js → wal-maintenance-DUHEp_09.js} +0 -0
- package/dist/{wal-maintenance-BMiX6UIa.mjs → wal-maintenance-NKbwWovZ.mjs} +0 -0
- package/package.json +1 -1
- package/dist/builtins/records/legacy-table-row-count.d.ts +0 -5
- package/dist/builtins/records/phase6-declare-gate.d.ts +0 -28
- package/dist/builtins/sqlite-storage/records/count-settings-array-legacy.d.ts +0 -5
- package/dist/builtins/sqlite-storage/records/count-settings-brokers-legacy.d.ts +0 -6
- package/dist/phase6-declare-gate-BO-_jLh_.js +0 -98
- package/dist/phase6-declare-gate-x9ZCbQJP.mjs +0 -93
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
3
|
+
const require_dist = require("./dist-Bn-RNanh.js");
|
|
4
4
|
const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
|
|
5
|
-
const require_device_ca = require("./device-ca-
|
|
5
|
+
const require_device_ca = require("./device-ca-CPTDs--d.js");
|
|
6
6
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
7
7
|
require("./builtins/alerts/index.js");
|
|
8
8
|
const require_builtins_calendars_calendars_addon = require("./builtins/calendars/calendars.addon.js");
|
|
@@ -28,21 +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-
|
|
31
|
+
const require_wal_maintenance = require("./wal-maintenance-DUHEp_09.js");
|
|
32
32
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
|
33
33
|
const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
|
|
34
34
|
const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
|
|
35
35
|
require("./builtins/storage-orchestrator/index.js");
|
|
36
|
-
const
|
|
37
|
-
const
|
|
36
|
+
const require_agent_https = require("./agent-https-Dnr_nIVx.js");
|
|
37
|
+
const require_constants = require("./constants-6OeJiZgi.js");
|
|
38
38
|
const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
|
|
39
39
|
require("./builtins/system-config/index.js");
|
|
40
40
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
41
41
|
const require_custom_action_registry = require("./custom-action-registry-COyb49zm.js");
|
|
42
|
-
const require_hub_mdns_ciao = require("./hub-mdns-ciao-
|
|
42
|
+
const require_hub_mdns_ciao = require("./hub-mdns-ciao-CTBTlia4.js");
|
|
43
43
|
const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
|
|
44
44
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
45
|
-
const require_restore_archive = require("./restore-archive-
|
|
45
|
+
const require_restore_archive = require("./restore-archive-DM1OBYq4.js");
|
|
46
|
+
const require_coral_accelerators = require("./coral-accelerators-Bi_c3Rft.js");
|
|
46
47
|
let zod = require("zod");
|
|
47
48
|
let node_crypto = require("node:crypto");
|
|
48
49
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
@@ -5618,8 +5619,7 @@ var _integrationRegistryRecordKinds = require_dist.defineRecordKinds({
|
|
|
5618
5619
|
name: "addon_id",
|
|
5619
5620
|
fields: ["addonId"]
|
|
5620
5621
|
}],
|
|
5621
|
-
retention: { none: "deleteIntegration only" }
|
|
5622
|
-
adoptsFrom: INTEGRATIONS_LEGACY
|
|
5622
|
+
retention: { none: "deleteIntegration only" }
|
|
5623
5623
|
},
|
|
5624
5624
|
"integration-settings": {
|
|
5625
5625
|
schema: IntegrationSettingBodySchema,
|
|
@@ -5631,8 +5631,7 @@ var _integrationRegistryRecordKinds = require_dist.defineRecordKinds({
|
|
|
5631
5631
|
name: "integration_id",
|
|
5632
5632
|
fields: ["integrationId"]
|
|
5633
5633
|
}],
|
|
5634
|
-
retention: { none: "cascade on deleteIntegration" }
|
|
5635
|
-
adoptsFrom: INTEGRATION_SETTINGS_LEGACY
|
|
5634
|
+
retention: { none: "cascade on deleteIntegration" }
|
|
5636
5635
|
}
|
|
5637
5636
|
});
|
|
5638
5637
|
var integrationRegistryRecordKinds = _integrationRegistryRecordKinds;
|
|
@@ -6120,8 +6119,7 @@ var _clusterAgentRecordKinds = require_dist.defineRecordKinds({ "node-history":
|
|
|
6120
6119
|
name: "last_active",
|
|
6121
6120
|
fields: ["at"]
|
|
6122
6121
|
}],
|
|
6123
|
-
retention: { none: "rows removed only by operator forget(nodeId)" }
|
|
6124
|
-
adoptsFrom: CLUSTER_NODE_HISTORY_COLLECTION
|
|
6122
|
+
retention: { none: "rows removed only by operator forget(nodeId)" }
|
|
6125
6123
|
} });
|
|
6126
6124
|
var clusterAgentRecordKinds = _clusterAgentRecordKinds;
|
|
6127
6125
|
/** Narrow kind for `records.kind()` — `IsolatedRecordKinds` string index is `| undefined`. */
|
|
@@ -22313,30 +22311,6 @@ function safeExistsSync(path) {
|
|
|
22313
22311
|
return false;
|
|
22314
22312
|
}
|
|
22315
22313
|
}
|
|
22316
|
-
/**
|
|
22317
|
-
* Detect a Coral USB Edge TPU: a matching USB device (`1a6e:089a` pre-init or
|
|
22318
|
-
* `18d1:9302` post-init) OR the installed libedgetpu delegate (the hub
|
|
22319
|
-
* provisions it out-of-band; its presence is a reliable "Coral is wired"
|
|
22320
|
-
* signal even where the container's `/sys` USB view is limited).
|
|
22321
|
-
*/
|
|
22322
|
-
function detectCoralUsb() {
|
|
22323
|
-
const CORAL_IDS = [{
|
|
22324
|
-
vendor: "1a6e",
|
|
22325
|
-
product: "089a"
|
|
22326
|
-
}, {
|
|
22327
|
-
vendor: "18d1",
|
|
22328
|
-
product: "9302"
|
|
22329
|
-
}];
|
|
22330
|
-
try {
|
|
22331
|
-
for (const device of node_fs.readdirSync("/sys/bus/usb/devices")) try {
|
|
22332
|
-
const base = `/sys/bus/usb/devices/${device}`;
|
|
22333
|
-
const vendor = node_fs.readFileSync(`${base}/idVendor`, "utf8").trim().toLowerCase();
|
|
22334
|
-
const product = node_fs.readFileSync(`${base}/idProduct`, "utf8").trim().toLowerCase();
|
|
22335
|
-
if (CORAL_IDS.some((id) => id.vendor === vendor && id.product === product)) return true;
|
|
22336
|
-
} catch {}
|
|
22337
|
-
} catch {}
|
|
22338
|
-
return safeExistsSync(process.env["CAMSTACK_EDGETPU_LIB"] ?? "/data/deps/edgetpu/lib/libedgetpu.so.1");
|
|
22339
|
-
}
|
|
22340
22314
|
/** Probe Linux GPU vendors by parsing /proc/bus/pci/devices or /sys/class/drm. */
|
|
22341
22315
|
function probeLinuxGpus() {
|
|
22342
22316
|
const signals = {
|
|
@@ -22345,7 +22319,7 @@ function probeLinuxGpus() {
|
|
|
22345
22319
|
hasIntelGpu: false,
|
|
22346
22320
|
hasRenderNode: false,
|
|
22347
22321
|
hasIntelNpu: safeExistsSync("/dev/accel/accel0"),
|
|
22348
|
-
|
|
22322
|
+
coral: require_coral_accelerators.classifyCoralAccelerator(require_coral_accelerators.nodeCoralFs)
|
|
22349
22323
|
};
|
|
22350
22324
|
signals.hasRenderNode = safeExistsSync("/dev/dri/renderD128");
|
|
22351
22325
|
if (safeExistsSync("/dev/nvidia0") || safeExistsSync("/proc/driver/nvidia/version")) signals.hasNvidiaGpu = true;
|
|
@@ -22379,7 +22353,7 @@ function probePlatform() {
|
|
|
22379
22353
|
hasIntelGpu: false,
|
|
22380
22354
|
hasRenderNode: false,
|
|
22381
22355
|
hasIntelNpu: false,
|
|
22382
|
-
|
|
22356
|
+
coral: require_coral_accelerators.classifyCoralAccelerator(require_coral_accelerators.nodeCoralFs)
|
|
22383
22357
|
};
|
|
22384
22358
|
}
|
|
22385
22359
|
function pickBackendsForPlatform(signals) {
|
|
@@ -22470,7 +22444,7 @@ function mapSignalsToInferenceHardware(signals) {
|
|
|
22470
22444
|
return {
|
|
22471
22445
|
gpu: signals.hasNvidiaGpu ? { type: "nvidia" } : signals.hasAmdGpu ? { type: "amd" } : signals.hasIntelGpu ? { type: "intel" } : signals.hasRenderNode ? { type: "intel" } : null,
|
|
22472
22446
|
npu: signals.platform === "darwin" && signals.arch === "arm64" ? { type: "apple-ane" } : signals.hasIntelNpu ? { type: "intel-npu" } : null,
|
|
22473
|
-
coral: signals.
|
|
22447
|
+
coral: signals.coral
|
|
22474
22448
|
};
|
|
22475
22449
|
}
|
|
22476
22450
|
/**
|
|
@@ -24817,7 +24791,7 @@ function localHardwareInfo() {
|
|
|
24817
24791
|
name: gpuType
|
|
24818
24792
|
} : null,
|
|
24819
24793
|
npu: npuType !== null ? { type: npuType } : null,
|
|
24820
|
-
coral: inference.coral
|
|
24794
|
+
coral: inference.coral ?? null
|
|
24821
24795
|
};
|
|
24822
24796
|
}
|
|
24823
24797
|
/** Runtime ids offered on this host (`onnx`, `openvino`, `coreml`, `edgetpu`). */
|
|
@@ -27823,14 +27797,14 @@ exports.MESH_ACTION_FORBIDDEN_TYPE = MESH_ACTION_FORBIDDEN_TYPE;
|
|
|
27823
27797
|
exports.MESH_CA_FIELD = require_constants.MESH_CA_FIELD;
|
|
27824
27798
|
exports.MESH_CA_KEY_REF = require_constants.MESH_CA_KEY_REF;
|
|
27825
27799
|
exports.MESH_CA_SETTINGS_KEY = require_constants.MESH_CA_SETTINGS_KEY;
|
|
27826
|
-
exports.MESH_NODE_CERTIFICATES_COLLECTION =
|
|
27827
|
-
exports.MESH_NODE_CERTIFICATES_COLUMNS =
|
|
27800
|
+
exports.MESH_NODE_CERTIFICATES_COLLECTION = require_builtins_system_config_system_config_addon.MESH_NODE_CERTIFICATES_COLLECTION;
|
|
27801
|
+
exports.MESH_NODE_CERTIFICATES_COLUMNS = require_builtins_system_config_system_config_addon.MESH_NODE_CERTIFICATES_COLUMNS;
|
|
27828
27802
|
exports.MESH_NODE_UNAUTHENTICATED_TYPE = MESH_NODE_UNAUTHENTICATED_TYPE;
|
|
27829
27803
|
exports.MESH_QUEUE_TOP_N = MESH_QUEUE_TOP_N;
|
|
27830
27804
|
exports.MESH_TLS_PORT_HELLO_FIELD = require_builtins_system_config_system_config_addon.MESH_TLS_PORT_HELLO_FIELD;
|
|
27831
27805
|
exports.METHOD_ACCESS_MAP = require_dist.METHOD_ACCESS_MAP;
|
|
27832
27806
|
exports.MeshCaKeeper = require_builtins_system_config_system_config_addon.MeshCaKeeper;
|
|
27833
|
-
exports.MeshCertificateRegistry =
|
|
27807
|
+
exports.MeshCertificateRegistry = require_builtins_system_config_system_config_addon.MeshCertificateRegistry;
|
|
27834
27808
|
exports.MeshCrl = require_builtins_system_config_system_config_addon.MeshCrl;
|
|
27835
27809
|
exports.MeshIdentityGate = MeshIdentityGate;
|
|
27836
27810
|
exports.ModelDownloadService = require_custom_action_registry.ModelDownloadService;
|
|
@@ -27867,7 +27841,7 @@ exports.PipelineValidator = PipelineValidator;
|
|
|
27867
27841
|
exports.PythonEnvManager = PythonEnvManager;
|
|
27868
27842
|
exports.QUARANTINE_DIRNAME = QUARANTINE_DIRNAME;
|
|
27869
27843
|
exports.REFRESH_TOKEN_PREFIX = require_builtins_local_auth_local_auth_addon.REFRESH_TOKEN_PREFIX;
|
|
27870
|
-
exports.RENEWAL_ABANDONED =
|
|
27844
|
+
exports.RENEWAL_ABANDONED = require_builtins_system_config_system_config_addon.RENEWAL_ABANDONED;
|
|
27871
27845
|
exports.RESTART_MARKER_FILE = RESTART_MARKER_FILE;
|
|
27872
27846
|
exports.RSS_BUDGET_REANNOUNCE_MIN_MS = RSS_BUDGET_REANNOUNCE_MIN_MS;
|
|
27873
27847
|
exports.RSS_BUDGET_RELEASE_RATIO = RSS_BUDGET_RELEASE_RATIO;
|
|
@@ -27957,8 +27931,8 @@ exports.buildNpmChildEnv = buildNpmChildEnv;
|
|
|
27957
27931
|
exports.buildStorageLocationRegistry = require_builtins_storage_orchestrator_storage_orchestrator_addon.buildStorageLocationRegistry;
|
|
27958
27932
|
exports.buildTransporter = buildTransporter;
|
|
27959
27933
|
exports.builderMountedCapNames = builderMountedCapNames;
|
|
27960
|
-
exports.caFingerprint =
|
|
27961
|
-
exports.caFingerprintCompact =
|
|
27934
|
+
exports.caFingerprint = require_builtins_system_config_system_config_addon.caFingerprint;
|
|
27935
|
+
exports.caFingerprintCompact = require_builtins_system_config_system_config_addon.caFingerprintCompact;
|
|
27962
27936
|
exports.caReplacementMarkerFile = require_hub_mdns_ciao.caReplacementMarkerFile;
|
|
27963
27937
|
exports.callRegisterNodeWithRetry = callRegisterNodeWithRetry;
|
|
27964
27938
|
exports.callWithServiceDiscovery = callWithServiceDiscovery;
|
|
@@ -28020,7 +27994,7 @@ exports.createKernelInferenceEngine = createKernelInferenceEngine;
|
|
|
28020
27994
|
exports.createLocalTransport = createLocalTransport;
|
|
28021
27995
|
exports.createLoopDelayMeter = createLoopDelayMeter;
|
|
28022
27996
|
exports.createMeshAccessMiddleware = createMeshAccessMiddleware;
|
|
28023
|
-
exports.createMeshCsrPem =
|
|
27997
|
+
exports.createMeshCsrPem = require_builtins_system_config_system_config_addon.createMeshCsrPem;
|
|
28024
27998
|
exports.createMeshQueueReader = createMeshQueueReader;
|
|
28025
27999
|
exports.createOutboundQueueGate = createOutboundQueueGate;
|
|
28026
28000
|
exports.createParentUnownedCallHandler = createParentUnownedCallHandler;
|
|
@@ -28043,7 +28017,7 @@ exports.deleteModelFromDisk = require_custom_action_registry.deleteModelFromDisk
|
|
|
28043
28017
|
exports.deriveAgentListenPort = deriveAgentListenPort;
|
|
28044
28018
|
exports.describeCsr = require_builtins_system_config_system_config_addon.describeCsr;
|
|
28045
28019
|
exports.describeHttpsLeaf = require_agent_https.describeHttpsLeaf;
|
|
28046
|
-
exports.describeMeshLeaf =
|
|
28020
|
+
exports.describeMeshLeaf = require_builtins_system_config_system_config_addon.describeMeshLeaf;
|
|
28047
28021
|
exports.describeProviderKindDrift = describeProviderKindDrift;
|
|
28048
28022
|
exports.describeRss = describeRss;
|
|
28049
28023
|
exports.detectWorkspacePackagesDir = detectWorkspacePackagesDir;
|
|
@@ -28092,7 +28066,7 @@ Object.defineProperty(exports, "ensurePython", {
|
|
|
28092
28066
|
exports.ensureTlsCert = require_hub_mdns_ciao.ensureTlsCert;
|
|
28093
28067
|
exports.evaluateExistingCert = require_agent_https.evaluateExistingCert;
|
|
28094
28068
|
exports.expandCapMethods = require_dist.expandCapMethods;
|
|
28095
|
-
exports.exportMeshPrivateKeyPem =
|
|
28069
|
+
exports.exportMeshPrivateKeyPem = require_builtins_system_config_system_config_addon.exportMeshPrivateKeyPem;
|
|
28096
28070
|
exports.fetchJson = require_custom_action_registry.fetchJson;
|
|
28097
28071
|
exports.filterIsEmpty = require_log_read_filter.filterIsEmpty;
|
|
28098
28072
|
exports.findAddonRefusal = findAddonRefusal;
|
|
@@ -28111,8 +28085,8 @@ exports.formatOutboundQueueVerdict = formatOutboundQueueVerdict;
|
|
|
28111
28085
|
exports.formatSocketPlane = formatSocketPlane;
|
|
28112
28086
|
exports.generateBackupKeyPair = require_restore_archive.generateBackupKeyPair;
|
|
28113
28087
|
exports.generateDeviceCa = require_device_ca.generateDeviceCa;
|
|
28114
|
-
exports.generateMeshCa =
|
|
28115
|
-
exports.generateMeshKeyPair =
|
|
28088
|
+
exports.generateMeshCa = require_builtins_system_config_system_config_addon.generateMeshCa;
|
|
28089
|
+
exports.generateMeshKeyPair = require_builtins_system_config_system_config_addon.generateMeshKeyPair;
|
|
28116
28090
|
exports.getBrokerEventBus = getBrokerEventBus;
|
|
28117
28091
|
exports.getBrokerTlsTransporter = getBrokerTlsTransporter;
|
|
28118
28092
|
exports.getCapUsageRegistry = getCapUsageRegistry;
|
|
@@ -28139,7 +28113,7 @@ exports.getPlatformKeychainKey = require_platform_key_source.getPlatformKeychain
|
|
|
28139
28113
|
exports.getProcessAgentHttpsNames = require_agent_https.getProcessAgentHttpsNames;
|
|
28140
28114
|
exports.getProcessJwtSigningKeyState = require_device_ca.getProcessJwtSigningKeyState;
|
|
28141
28115
|
exports.getProcessMeshCaState = require_builtins_system_config_system_config_addon.getProcessMeshCaState;
|
|
28142
|
-
exports.getProcessMeshCertificateRegistry =
|
|
28116
|
+
exports.getProcessMeshCertificateRegistry = require_builtins_system_config_system_config_addon.getProcessMeshCertificateRegistry;
|
|
28143
28117
|
exports.getProcessMeshTlsListenerState = require_builtins_system_config_system_config_addon.getProcessMeshTlsListenerState;
|
|
28144
28118
|
exports.getProcessNodeMeshTransport = require_builtins_system_config_system_config_addon.getProcessNodeMeshTransport;
|
|
28145
28119
|
exports.getProcessPeerLeaf = require_builtins_system_config_system_config_addon.getProcessPeerLeaf;
|
|
@@ -28197,12 +28171,12 @@ exports.isRemoteForbiddenAction = isRemoteForbiddenAction;
|
|
|
28197
28171
|
exports.isRemoteForbiddenOnAgent = isRemoteForbiddenOnAgent;
|
|
28198
28172
|
exports.isSettingsReadUnavailable = require_builtins_local_auth_local_auth_addon.isSettingsReadUnavailable;
|
|
28199
28173
|
exports.isSourceNewer = isSourceNewer;
|
|
28200
|
-
exports.isValidAgentNodeId =
|
|
28174
|
+
exports.isValidAgentNodeId = require_builtins_system_config_system_config_addon.isValidAgentNodeId;
|
|
28201
28175
|
exports.isolatedBuiltinPhase = isolatedBuiltinPhase;
|
|
28202
28176
|
exports.issueAgentHttpsLeaf = require_agent_https.issueAgentHttpsLeaf;
|
|
28203
28177
|
exports.issueDeviceLeaf = require_device_ca.issueDeviceLeaf;
|
|
28204
|
-
exports.issueMeshLeafForNode =
|
|
28205
|
-
exports.issueMeshLeafFromCsr =
|
|
28178
|
+
exports.issueMeshLeafForNode = require_builtins_system_config_system_config_addon.issueMeshLeafForNode;
|
|
28179
|
+
exports.issueMeshLeafFromCsr = require_builtins_system_config_system_config_addon.issueMeshLeafFromCsr;
|
|
28206
28180
|
exports.keyFingerprintShort = require_builtins_system_config_system_config_addon.keyFingerprintShort;
|
|
28207
28181
|
exports.leafFingerprintOf = require_hub_mdns_ciao.leafFingerprintOf;
|
|
28208
28182
|
exports.levelRank = require_log_read_filter.levelRank;
|
|
@@ -28210,7 +28184,7 @@ exports.lineContainsText = require_log_read_filter.lineContainsText;
|
|
|
28210
28184
|
exports.lineMatches = require_log_read_filter.lineMatches;
|
|
28211
28185
|
exports.loadAgentHttps = require_agent_https.loadAgentHttps;
|
|
28212
28186
|
exports.loadDeviceCa = require_device_ca.loadDeviceCa;
|
|
28213
|
-
exports.loadMeshCa =
|
|
28187
|
+
exports.loadMeshCa = require_builtins_system_config_system_config_addon.loadMeshCa;
|
|
28214
28188
|
exports.loadTlsCert = require_hub_mdns_ciao.loadTlsCert;
|
|
28215
28189
|
exports.localCaCommonName = require_agent_https.localCaCommonName;
|
|
28216
28190
|
exports.localEndpointPath = localEndpointPath;
|
|
@@ -28302,7 +28276,7 @@ exports.setHubConnected = setHubConnected;
|
|
|
28302
28276
|
exports.setNodeEventInterest = setNodeEventInterest;
|
|
28303
28277
|
exports.setPlatformKeychainKey = require_platform_key_source.setPlatformKeychainKey;
|
|
28304
28278
|
exports.setProcessAgentHttpsNames = require_agent_https.setProcessAgentHttpsNames;
|
|
28305
|
-
exports.setProcessMeshCertificateRegistry =
|
|
28279
|
+
exports.setProcessMeshCertificateRegistry = require_builtins_system_config_system_config_addon.setProcessMeshCertificateRegistry;
|
|
28306
28280
|
exports.setProcessMeshPeerTransportLookup = require_builtins_system_config_system_config_addon.setProcessMeshPeerTransportLookup;
|
|
28307
28281
|
exports.setProcessMeshTlsEnabler = require_builtins_system_config_system_config_addon.setProcessMeshTlsEnabler;
|
|
28308
28282
|
exports.setProcessMeshTlsListenerState = require_builtins_system_config_system_config_addon.setProcessMeshTlsListenerState;
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { An as isVoidInput, Bn as logLevelAtMost,
|
|
2
|
+
import { An as isVoidInput, Bn as logLevelAtMost, Ca as userError, Ci as ReadinessTimeoutError, Fi as asString$1, Gi as defineRecordKinds, Hi as createEvent$1, In as lifecycleJobSchema, J as METHOD_ACCESS_MAP, Ji as expandCapMethods, K as LOG_LEVEL_RANK, Ki as emitDownForOwnedCaps, Mr as supportedRuntimes, Ni as asJsonObject$1, Pi as asNumber, Si as ReadinessRegistry, Ta as EventCategory$1, Tn as isCollectionArrayMethod, Vn as looseSchema, Xn as objectInputDeclaresAddonId, Zn as objectInputDeclaresRequiredDeviceId, _r as scopesAllowAddon, ai as DATAPLANE_SECRET_HEADER$1, bn as interpolate, bt as addonSettingsCapability, d as CATALOG_LANGS, fa as readinessKey, ga as scopeKey, ii as CALLER_STAMPED_CAPABILITIES$1, jn as kebabToCamel$1, kn as isObjectInput, la as parseJsonObject, ma as resolveCapMount, mn as extractNestedAddonId, mr as resolveMethodAuth, n as AGENT_MDNS_TXT_KEYS, nr as procedureAuthKey, oi as DEVICE_SETTINGS_CONTRIBUTION_METHODS, r as ALL_CAPABILITY_DEFINITIONS, si as DEVICE_STATUS_METHOD, t as AGENT_MDNS_SERVICE_TYPE, ti as errMsg$1, ua as parseJsonUnknown, v as CatalogFileSchema, vr as scopesAllowDeviceCap, wa as withoutCallerStamp, wn as isArrayOutputSchema, wr as splitTranslationRef, xi as RUNTIME_DEFAULTS } from "./dist-Wy8cTxg6.mjs";
|
|
3
3
|
import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
|
|
4
|
-
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-
|
|
4
|
+
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-Bnkw8GyU.mjs";
|
|
5
5
|
import { AlertCenterAddon } from "./builtins/alerts/alerts.addon.mjs";
|
|
6
6
|
import "./builtins/alerts/index.mjs";
|
|
7
7
|
import { CalendarsAddon } from "./builtins/calendars/calendars.addon.mjs";
|
|
@@ -27,21 +27,22 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
|
|
|
27
27
|
import NativeMetricsAddon, { a as NativeMetricsProvider, 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 { l as SqliteSettingsBackend } from "./wal-maintenance-
|
|
30
|
+
import { l as SqliteSettingsBackend } from "./wal-maintenance-NKbwWovZ.mjs";
|
|
31
31
|
import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
|
|
32
32
|
import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
|
|
33
33
|
import { StorageOrchestratorAddon, a as stripForwardedCaller, i as createHubCapForwardService, l as STORAGE_DRAIN_STATE_LEGACY, n as HUB_CAP_FWD_ACTION, o as buildStorageLocationRegistry, r as HUB_CAP_FWD_SERVICE, t as StorageOrchestratorService, u as storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
|
|
34
34
|
import "./builtins/storage-orchestrator/index.mjs";
|
|
35
|
-
import { a as
|
|
36
|
-
import {
|
|
37
|
-
import { $ as
|
|
35
|
+
import { A as buildNameConstraintSet, B as setProcessAgentHttpsNames, C as LEAF_RENEWAL_WINDOW_DAYS, E as evaluateExistingCert, F as readNameConstraints, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, N as permitsIdentity, O as PERMITTED_DNS_SUFFIXES, P as permitsName, R as AgentHttpsNames, S as CA_VALIDITY_DAYS, T as SERVER_AUTH_OID, a as collectAgentNames, b as collectCertIdentity, c as installAgentHttps, d as issueAgentHttpsLeaf, f as loadAgentHttps, h as CA_COMMON_NAME, i as certificateNames, j as isConstrainedCa, k as PERMITTED_IP_RANGES, l as isContainerBridgeAddress, m as pinnedHttpsCaFingerprint, n as acceptAgentSans, o as createAgentHttpsRequest, p as pemDigest, r as agentHttpsPaths, s as describeHttpsLeaf, t as AgentHttpsInstallError, u as isPrivateAddress, w as MAX_LEAF_VALIDITY_DAYS, x as systemHostFacts, y as localCaCommonName, z as getProcessAgentHttpsNames } from "./agent-https-Iw3RSQup.mjs";
|
|
36
|
+
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-BnkOdj9Q.mjs";
|
|
37
|
+
import { $ as generateMeshKeyPair, A as setProcessMeshPeerTransportLookup, B as describeMeshLeaf, C as setProcessMeshTlsEnabler, D as getProcessPeerLeaf, E as getProcessNodeMeshTransport, F as setProcessMeshTlsListenerState, G as MeshCaKeeper, H as setProcessMeshCertificateRegistry, I as MESH_NODE_CERTIFICATES_COLLECTION, J as caFingerprint, K as getProcessMeshCaState, L as MESH_NODE_CERTIFICATES_COLUMNS, M as revokeMeshCertificate, N as getProcessMeshTlsListenerState, O as isProcessVerifiedMeshPeer, P as openMeshTlsWhenRevocationsLoaded, Q as generateMeshCa, R as MeshCertificateRegistry, S as ServiceBroker, SystemConfigAddon, T as emitProcessNodeRegistered, U as MeshCrl, V as getProcessMeshCertificateRegistry, W as processMeshCrl, X as createMeshCsrPem, Y as caFingerprintCompact, Z as exportMeshPrivateKeyPem, _ as signPairingProof, _t as readCidrSetting, a as hubHostFromMeshAddress, at as AGENT_UI_UNLOCK_TTL_MS, b as TlsTcpTransporter, c as PAIRING_MAX_SESSIONS, ct as AGENT_UI_UNLOCK_VERSION, d as PAIRING_PROTOCOL, dt as mintAgentUiUnlockTicket, et as isValidAgentNodeId, f as PAIRING_TTL_MS, ft as parseAgentDashboardOrigins, g as keyFingerprintShort, gt as parseCidrList, h as describeCsr, ht as normalizeIp, i as AgentPairing, it as AGENT_DASHBOARD_ORIGINS_FIELD, j as renewMeshCertificate, k as onProcessNodeRegistered, l as PAIRING_PATHS, lt as UnlockTicketJtiStore, m as computePairingSas, mt as createCidrMatcher, n as HubPairing, nt as issueMeshLeafFromCsr, o as PAIRING_CODE_DIGITS, ot as AGENT_UI_UNLOCK_TYP, p as computePairingCommitment, pt as verifyAgentUiUnlockTicket, q as requireProcessMeshCa, r as PairingHttpError, rt as loadMeshCa, s as PAIRING_MAX_CODE_ATTEMPTS, st as AGENT_UI_UNLOCK_USE, tt as issueMeshLeafForNode, u as PAIRING_PIN_DIGITS, ut as isAllowedAgentDashboardReturnTo, v as verifyPairingProof, w as dropProcessPeer, x as Errors, y as MESH_TLS_PORT_HELLO_FIELD, z as RENEWAL_ABANDONED } from "./builtins/system-config/system-config.addon.mjs";
|
|
38
38
|
import "./builtins/system-config/index.mjs";
|
|
39
39
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
40
40
|
import { C as isModelDownloaded, 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-stpC3Zy-.mjs";
|
|
41
|
-
import { A as allFamiliesListenHost, C as caReplacementMarkerFile, D as replaceUnconstrainedLocalCa, E as reissueTlsLeaf, F as registerLanHttpHandler, M as bindPendingLanHttp, N as closeLanHttp, O as retirePreviousLocalCa, P as readLanHttpState, S as validateUploadedTls, T as loadTlsCert, _ as splitPemCertificates, a as storeUploadedCertificate, b as chainsToPublicRoot, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsMode, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as applyLanHttp, k as DEFAULT_LAN_HTTP_PORT, 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 writeExtraSans, w as ensureTlsCert, x as checkUploadedCa, y as writeTlsMode } from "./hub-mdns-ciao-
|
|
41
|
+
import { A as allFamiliesListenHost, C as caReplacementMarkerFile, D as replaceUnconstrainedLocalCa, E as reissueTlsLeaf, F as registerLanHttpHandler, M as bindPendingLanHttp, N as closeLanHttp, O as retirePreviousLocalCa, P as readLanHttpState, S as validateUploadedTls, T as loadTlsCert, _ as splitPemCertificates, a as storeUploadedCertificate, b as chainsToPublicRoot, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsMode, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as applyLanHttp, k as DEFAULT_LAN_HTTP_PORT, 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 writeExtraSans, w as ensureTlsCert, x as checkUploadedCa, y as writeTlsMode } from "./hub-mdns-ciao-CJu0nhla.mjs";
|
|
42
42
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
43
43
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
|
|
44
|
-
import {
|
|
44
|
+
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-CmP-iiG9.mjs";
|
|
45
|
+
import { n as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DcnZvctM.mjs";
|
|
45
46
|
import { z } from "zod";
|
|
46
47
|
import * as crypto$1 from "node:crypto";
|
|
47
48
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
@@ -5615,8 +5616,7 @@ var _integrationRegistryRecordKinds = defineRecordKinds({
|
|
|
5615
5616
|
name: "addon_id",
|
|
5616
5617
|
fields: ["addonId"]
|
|
5617
5618
|
}],
|
|
5618
|
-
retention: { none: "deleteIntegration only" }
|
|
5619
|
-
adoptsFrom: INTEGRATIONS_LEGACY
|
|
5619
|
+
retention: { none: "deleteIntegration only" }
|
|
5620
5620
|
},
|
|
5621
5621
|
"integration-settings": {
|
|
5622
5622
|
schema: IntegrationSettingBodySchema,
|
|
@@ -5628,8 +5628,7 @@ var _integrationRegistryRecordKinds = defineRecordKinds({
|
|
|
5628
5628
|
name: "integration_id",
|
|
5629
5629
|
fields: ["integrationId"]
|
|
5630
5630
|
}],
|
|
5631
|
-
retention: { none: "cascade on deleteIntegration" }
|
|
5632
|
-
adoptsFrom: INTEGRATION_SETTINGS_LEGACY
|
|
5631
|
+
retention: { none: "cascade on deleteIntegration" }
|
|
5633
5632
|
}
|
|
5634
5633
|
});
|
|
5635
5634
|
var integrationRegistryRecordKinds = _integrationRegistryRecordKinds;
|
|
@@ -6117,8 +6116,7 @@ var _clusterAgentRecordKinds = defineRecordKinds({ "node-history": {
|
|
|
6117
6116
|
name: "last_active",
|
|
6118
6117
|
fields: ["at"]
|
|
6119
6118
|
}],
|
|
6120
|
-
retention: { none: "rows removed only by operator forget(nodeId)" }
|
|
6121
|
-
adoptsFrom: CLUSTER_NODE_HISTORY_COLLECTION
|
|
6119
|
+
retention: { none: "rows removed only by operator forget(nodeId)" }
|
|
6122
6120
|
} });
|
|
6123
6121
|
var clusterAgentRecordKinds = _clusterAgentRecordKinds;
|
|
6124
6122
|
/** Narrow kind for `records.kind()` — `IsolatedRecordKinds` string index is `| undefined`. */
|
|
@@ -22310,30 +22308,6 @@ function safeExistsSync(path) {
|
|
|
22310
22308
|
return false;
|
|
22311
22309
|
}
|
|
22312
22310
|
}
|
|
22313
|
-
/**
|
|
22314
|
-
* Detect a Coral USB Edge TPU: a matching USB device (`1a6e:089a` pre-init or
|
|
22315
|
-
* `18d1:9302` post-init) OR the installed libedgetpu delegate (the hub
|
|
22316
|
-
* provisions it out-of-band; its presence is a reliable "Coral is wired"
|
|
22317
|
-
* signal even where the container's `/sys` USB view is limited).
|
|
22318
|
-
*/
|
|
22319
|
-
function detectCoralUsb() {
|
|
22320
|
-
const CORAL_IDS = [{
|
|
22321
|
-
vendor: "1a6e",
|
|
22322
|
-
product: "089a"
|
|
22323
|
-
}, {
|
|
22324
|
-
vendor: "18d1",
|
|
22325
|
-
product: "9302"
|
|
22326
|
-
}];
|
|
22327
|
-
try {
|
|
22328
|
-
for (const device of fs.readdirSync("/sys/bus/usb/devices")) try {
|
|
22329
|
-
const base = `/sys/bus/usb/devices/${device}`;
|
|
22330
|
-
const vendor = fs.readFileSync(`${base}/idVendor`, "utf8").trim().toLowerCase();
|
|
22331
|
-
const product = fs.readFileSync(`${base}/idProduct`, "utf8").trim().toLowerCase();
|
|
22332
|
-
if (CORAL_IDS.some((id) => id.vendor === vendor && id.product === product)) return true;
|
|
22333
|
-
} catch {}
|
|
22334
|
-
} catch {}
|
|
22335
|
-
return safeExistsSync(process.env["CAMSTACK_EDGETPU_LIB"] ?? "/data/deps/edgetpu/lib/libedgetpu.so.1");
|
|
22336
|
-
}
|
|
22337
22311
|
/** Probe Linux GPU vendors by parsing /proc/bus/pci/devices or /sys/class/drm. */
|
|
22338
22312
|
function probeLinuxGpus() {
|
|
22339
22313
|
const signals = {
|
|
@@ -22342,7 +22316,7 @@ function probeLinuxGpus() {
|
|
|
22342
22316
|
hasIntelGpu: false,
|
|
22343
22317
|
hasRenderNode: false,
|
|
22344
22318
|
hasIntelNpu: safeExistsSync("/dev/accel/accel0"),
|
|
22345
|
-
|
|
22319
|
+
coral: classifyCoralAccelerator(nodeCoralFs)
|
|
22346
22320
|
};
|
|
22347
22321
|
signals.hasRenderNode = safeExistsSync("/dev/dri/renderD128");
|
|
22348
22322
|
if (safeExistsSync("/dev/nvidia0") || safeExistsSync("/proc/driver/nvidia/version")) signals.hasNvidiaGpu = true;
|
|
@@ -22376,7 +22350,7 @@ function probePlatform() {
|
|
|
22376
22350
|
hasIntelGpu: false,
|
|
22377
22351
|
hasRenderNode: false,
|
|
22378
22352
|
hasIntelNpu: false,
|
|
22379
|
-
|
|
22353
|
+
coral: classifyCoralAccelerator(nodeCoralFs)
|
|
22380
22354
|
};
|
|
22381
22355
|
}
|
|
22382
22356
|
function pickBackendsForPlatform(signals) {
|
|
@@ -22467,7 +22441,7 @@ function mapSignalsToInferenceHardware(signals) {
|
|
|
22467
22441
|
return {
|
|
22468
22442
|
gpu: signals.hasNvidiaGpu ? { type: "nvidia" } : signals.hasAmdGpu ? { type: "amd" } : signals.hasIntelGpu ? { type: "intel" } : signals.hasRenderNode ? { type: "intel" } : null,
|
|
22469
22443
|
npu: signals.platform === "darwin" && signals.arch === "arm64" ? { type: "apple-ane" } : signals.hasIntelNpu ? { type: "intel-npu" } : null,
|
|
22470
|
-
coral: signals.
|
|
22444
|
+
coral: signals.coral
|
|
22471
22445
|
};
|
|
22472
22446
|
}
|
|
22473
22447
|
/**
|
|
@@ -24814,7 +24788,7 @@ function localHardwareInfo() {
|
|
|
24814
24788
|
name: gpuType
|
|
24815
24789
|
} : null,
|
|
24816
24790
|
npu: npuType !== null ? { type: npuType } : null,
|
|
24817
|
-
coral: inference.coral
|
|
24791
|
+
coral: inference.coral ?? null
|
|
24818
24792
|
};
|
|
24819
24793
|
}
|
|
24820
24794
|
/** Runtime ids offered on this host (`onnx`, `openvino`, `coreml`, `edgetpu`). */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HwAccelBackend, HwAccelResolution } from "@camstack/types";
|
|
1
|
+
import type { CoralInfo, HwAccelBackend, HwAccelResolution } from "@camstack/types";
|
|
2
2
|
export interface PlatformSignals {
|
|
3
3
|
readonly platform: NodeJS.Platform;
|
|
4
4
|
readonly arch: string;
|
|
@@ -8,8 +8,12 @@ export interface PlatformSignals {
|
|
|
8
8
|
readonly hasRenderNode: boolean;
|
|
9
9
|
/** Intel NPU (Meteor Lake / Core Ultra "AI Boost") — exposed as /dev/accel/accel0. */
|
|
10
10
|
readonly hasIntelNpu: boolean;
|
|
11
|
-
/**
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Coral Edge TPU hardware (USB and/or PCIe), whole — usable units and the
|
|
13
|
+
* present-but-unusable ones with their reason. `null` ⇒ no Coral found. The
|
|
14
|
+
* SAME classifier as the platform-probe builtin, so the two never disagree.
|
|
15
|
+
*/
|
|
16
|
+
readonly coral: CoralInfo | null;
|
|
13
17
|
}
|
|
14
18
|
export declare function probePlatform(): PlatformSignals;
|
|
15
19
|
/**
|