@camstack/system 1.1.62 → 1.1.64
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 +2 -2
- package/dist/addon-runner.mjs +2 -2
- 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/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.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/index.js +26 -7
- package/dist/builtins/platform-probe/index.mjs +26 -7
- package/dist/builtins/platform-probe/intel-accelerators.d.ts +6 -3
- package/dist/builtins/platform-probe/intel-npu.d.ts +38 -0
- 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/sqlite-settings.addon.js +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +1 -1
- 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 +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-Z2gkbfp8.js → dist-C0Pf5ShP.js} +161 -46
- package/dist/{dist-BqC8e44T.mjs → dist-Dycu89sF.mjs} +161 -46
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{intel-accelerators-Gg0P5mnl.js → intel-accelerators-BvBjZn4j.js} +1 -5
- package/dist/{intel-accelerators-hGgpZ0pX.mjs → intel-accelerators-idEumqk1.mjs} +1 -5
- package/dist/intel-npu-C8HKvRQF.mjs +27 -0
- package/dist/intel-npu-DYF5hO5K.js +28 -0
- package/dist/{manifest-python-deps-Houw5lw4.js → manifest-python-deps-BRFns0U-.js} +1 -1
- package/dist/{manifest-python-deps-DQVZZVNo.mjs → manifest-python-deps-BiM1uDhe.mjs} +1 -1
- package/package.json +1 -1
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-C0Pf5ShP.js");
|
|
4
4
|
const require_model_download_service = require("./model-download-service-hf0ookyy.js");
|
|
5
|
-
const require_manifest_python_deps = require("./manifest-python-deps-
|
|
5
|
+
const require_manifest_python_deps = require("./manifest-python-deps-BRFns0U-.js");
|
|
6
6
|
const require_resource_monitor = require("./resource-monitor-DNNomR-i.js");
|
|
7
7
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
|
|
8
8
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { At as EventCategory$1, Dt as resolveCapMount, Et as readinessKey, F as kebabToCamel, I as lifecycleJobSchema, K as procedureAuthKey, M as isCollectionArrayMethod, N as isObjectInput, O as extractNestedAddonId, Ot as scopeKey, P as isVoidInput, Tt as parseJsonUnknown$1, U as objectInputDeclaresAddonId, _t as asString$1, ct as DEVICE_STATUS_METHOD, ft as ReadinessRegistry, gt as asNumber, ht as asJsonObject$1, it as errMsg$1, j as isArrayOutputSchema, o as METHOD_ACCESS_MAP, ot as DATAPLANE_SECRET_HEADER$1, p as addonSettingsCapability, pt as ReadinessTimeoutError, s as RUNTIME_DEFAULTS, st as DEVICE_SETTINGS_CONTRIBUTION_METHODS, t as ALL_CAPABILITY_DEFINITIONS, vt as createEvent, wt as parseJsonObject, xt as expandCapMethods, yt as emitDownForOwnedCaps, z as looseSchema } from "./dist-
|
|
1
|
+
import { At as EventCategory$1, Dt as resolveCapMount, Et as readinessKey, F as kebabToCamel, I as lifecycleJobSchema, K as procedureAuthKey, M as isCollectionArrayMethod, N as isObjectInput, O as extractNestedAddonId, Ot as scopeKey, P as isVoidInput, Tt as parseJsonUnknown$1, U as objectInputDeclaresAddonId, _t as asString$1, ct as DEVICE_STATUS_METHOD, ft as ReadinessRegistry, gt as asNumber, ht as asJsonObject$1, it as errMsg$1, j as isArrayOutputSchema, o as METHOD_ACCESS_MAP, ot as DATAPLANE_SECRET_HEADER$1, p as addonSettingsCapability, pt as ReadinessTimeoutError, s as RUNTIME_DEFAULTS, st as DEVICE_SETTINGS_CONTRIBUTION_METHODS, t as ALL_CAPABILITY_DEFINITIONS, vt as createEvent, wt as parseJsonObject, xt as expandCapMethods, yt as emitDownForOwnedCaps, z as looseSchema } from "./dist-Dycu89sF.mjs";
|
|
2
2
|
import { a as downloadModel, c as getModelFilePath, d as contentTypeFor, f as createAuthenticatedFileServer, h as resolveFilePath, i as downloadFile, l as isModelDownloaded, m as parseTokenizedUrl, n as collectModelFiles, o as ensureModel, p as parseRangeHeader, r as deleteModelFromDisk, s as fetchJson, t as ModelDownloadService, u as createFileDataPlaneHandler } from "./model-download-service-Cp9f4dk6.mjs";
|
|
3
|
-
import { $ as buildUdsNativeCapProxy, A as createParentUnownedCallHandler, B as AGENT_CAP_FWD_SERVICE, C as buildLinkChain, D as HUB_CAP_FWD_ACTION, E as localProviderLink, F as createUdsLoggerWithControl, G as createLocalTransport, H as CapRouteError, I as LocalChildClient, J as SocketChannel, K as UdsLocalTransportClient, L as LocalChildRegistry, M as createUdsEventBus, N as udsChildLogToWorkerEntry, O as HUB_CAP_FWD_SERVICE, P as createUdsLogger, Q as buildNativeCapProxy, R as UDS_NO_ROUTE_PREFIX, S as brokerTransportLink, T as ipcParentLink, U as classifyCapRoute, V as CapRouteResolver, W as callWithServiceDiscovery, X as FrameDecoder, Y as localEndpointPath, Z as encodeFrame, _ as resolveHwAccel, _t as CapabilityUnavailableError, a as getWorkerDeviceRegistry, at as createAddonService, b as getCapUsageRegistry, bt as resolveAddonClass, c as setHubConnected, ct as capActionName, d as getMoleculerEventStats, dt as capServiceName, et as createBrokerDeviceManagerApi, f as registerEventBusService, ft as parseCapAction, g as createKernelHwAccel, gt as CapabilityHandle, h as AddonDepsManager, ht as DeviceRegistry, i as createUdsAddonContext, j as createUdsEventBridge, k as createHubCapForwardService, l as EVENT_TOPIC_PREFIX, lt as capActionSuffix, m as subscribePassthrough, mt as serializeTypedArrays, n as adaptBrokerToCluster, o as getOrInitReadinessRegistry, ot as validateProviderRegistrations, p as setNodeEventInterest, pt as deserializeTypedArrays, q as UdsLocalTransportServer, r as createAddonContext, rt as mountNativeCapService, s as getOrInitReadinessRegistryForClient, st as NATIVE_PROVIDER_SERVICE_INFIX, t as installManifestPythonDeps, u as getBrokerEventBus, ut as capBareAction, v as CapUsageRegistry, vt as installManifestNativeDeps, w as ipcChildLink, x as brokerCallForCap, xt as createAddonDataPlaneFacility, y as __resetCapUsageRegistryForTests, yt as runNpm, z as AGENT_CAP_FWD_ACTION } from "./manifest-python-deps-
|
|
3
|
+
import { $ as buildUdsNativeCapProxy, A as createParentUnownedCallHandler, B as AGENT_CAP_FWD_SERVICE, C as buildLinkChain, D as HUB_CAP_FWD_ACTION, E as localProviderLink, F as createUdsLoggerWithControl, G as createLocalTransport, H as CapRouteError, I as LocalChildClient, J as SocketChannel, K as UdsLocalTransportClient, L as LocalChildRegistry, M as createUdsEventBus, N as udsChildLogToWorkerEntry, O as HUB_CAP_FWD_SERVICE, P as createUdsLogger, Q as buildNativeCapProxy, R as UDS_NO_ROUTE_PREFIX, S as brokerTransportLink, T as ipcParentLink, U as classifyCapRoute, V as CapRouteResolver, W as callWithServiceDiscovery, X as FrameDecoder, Y as localEndpointPath, Z as encodeFrame, _ as resolveHwAccel, _t as CapabilityUnavailableError, a as getWorkerDeviceRegistry, at as createAddonService, b as getCapUsageRegistry, bt as resolveAddonClass, c as setHubConnected, ct as capActionName, d as getMoleculerEventStats, dt as capServiceName, et as createBrokerDeviceManagerApi, f as registerEventBusService, ft as parseCapAction, g as createKernelHwAccel, gt as CapabilityHandle, h as AddonDepsManager, ht as DeviceRegistry, i as createUdsAddonContext, j as createUdsEventBridge, k as createHubCapForwardService, l as EVENT_TOPIC_PREFIX, lt as capActionSuffix, m as subscribePassthrough, mt as serializeTypedArrays, n as adaptBrokerToCluster, o as getOrInitReadinessRegistry, ot as validateProviderRegistrations, p as setNodeEventInterest, pt as deserializeTypedArrays, q as UdsLocalTransportServer, r as createAddonContext, rt as mountNativeCapService, s as getOrInitReadinessRegistryForClient, st as NATIVE_PROVIDER_SERVICE_INFIX, t as installManifestPythonDeps, u as getBrokerEventBus, ut as capBareAction, v as CapUsageRegistry, vt as installManifestNativeDeps, w as ipcChildLink, x as brokerCallForCap, xt as createAddonDataPlaneFacility, y as __resetCapUsageRegistryForTests, yt as runNpm, z as AGENT_CAP_FWD_ACTION } from "./manifest-python-deps-BiM1uDhe.mjs";
|
|
4
4
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Le3l0qS2.mjs";
|
|
5
5
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
|
|
6
6
|
import { SqliteSettingsAddon, t as SqliteSettingsBackend } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
|
|
@@ -10,11 +10,7 @@ function classifyIntelAccelerators(fsx) {
|
|
|
10
10
|
};
|
|
11
11
|
break;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
return {
|
|
15
|
-
gpu,
|
|
16
|
-
npu
|
|
17
|
-
};
|
|
13
|
+
return { gpu };
|
|
18
14
|
}
|
|
19
15
|
//#endregion
|
|
20
16
|
exports.classifyIntelAccelerators = classifyIntelAccelerators;
|
|
@@ -9,11 +9,7 @@ function classifyIntelAccelerators(fsx) {
|
|
|
9
9
|
};
|
|
10
10
|
break;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
return {
|
|
14
|
-
gpu,
|
|
15
|
-
npu
|
|
16
|
-
};
|
|
12
|
+
return { gpu };
|
|
17
13
|
}
|
|
18
14
|
//#endregion
|
|
19
15
|
export { classifyIntelAccelerators };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region src/builtins/platform-probe/intel-npu.ts
|
|
2
|
+
var ACCEL_DIR = "/dev/accel";
|
|
3
|
+
/** DRM accel char devices are named `accel0`, `accel1`, … */
|
|
4
|
+
function hasAccelNode(fsx) {
|
|
5
|
+
if (fsx.listDir(ACCEL_DIR).some((n) => n.startsWith("accel"))) return true;
|
|
6
|
+
return fsx.exists(`${ACCEL_DIR}/accel0`);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Detect the Intel NPU ("AI Boost", the `intel_vpu` kernel driver).
|
|
10
|
+
*
|
|
11
|
+
* On Linux the NPU surfaces as a DRM accel char device `/dev/accel/accel*`.
|
|
12
|
+
* Detection is gated on linux + x64 + an Intel CPU/iGPU being present — the NPU
|
|
13
|
+
* only ships on x86_64 Intel Core Ultra (Meteor/Arrow Lake+) parts, so those
|
|
14
|
+
* three conditions together make a matching accel node an Intel NPU.
|
|
15
|
+
*
|
|
16
|
+
* Returns `null` when any gate fails or no accel node is found. The caller must
|
|
17
|
+
* NOT clobber an already-resolved NPU (e.g. `apple-ane` on macOS).
|
|
18
|
+
*/
|
|
19
|
+
function classifyIntelNpu(ctx, fsx) {
|
|
20
|
+
if (ctx.platform !== "linux" || ctx.arch !== "x64" || !ctx.intelPresent) return null;
|
|
21
|
+
return hasAccelNode(fsx) ? {
|
|
22
|
+
type: "intel-npu",
|
|
23
|
+
name: "Intel AI Boost NPU"
|
|
24
|
+
} : null;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { classifyIntelNpu };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require("./chunk-Cek0wNdY.js");
|
|
2
|
+
//#region src/builtins/platform-probe/intel-npu.ts
|
|
3
|
+
var ACCEL_DIR = "/dev/accel";
|
|
4
|
+
/** DRM accel char devices are named `accel0`, `accel1`, … */
|
|
5
|
+
function hasAccelNode(fsx) {
|
|
6
|
+
if (fsx.listDir(ACCEL_DIR).some((n) => n.startsWith("accel"))) return true;
|
|
7
|
+
return fsx.exists(`${ACCEL_DIR}/accel0`);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Detect the Intel NPU ("AI Boost", the `intel_vpu` kernel driver).
|
|
11
|
+
*
|
|
12
|
+
* On Linux the NPU surfaces as a DRM accel char device `/dev/accel/accel*`.
|
|
13
|
+
* Detection is gated on linux + x64 + an Intel CPU/iGPU being present — the NPU
|
|
14
|
+
* only ships on x86_64 Intel Core Ultra (Meteor/Arrow Lake+) parts, so those
|
|
15
|
+
* three conditions together make a matching accel node an Intel NPU.
|
|
16
|
+
*
|
|
17
|
+
* Returns `null` when any gate fails or no accel node is found. The caller must
|
|
18
|
+
* NOT clobber an already-resolved NPU (e.g. `apple-ane` on macOS).
|
|
19
|
+
*/
|
|
20
|
+
function classifyIntelNpu(ctx, fsx) {
|
|
21
|
+
if (ctx.platform !== "linux" || ctx.arch !== "x64" || !ctx.intelPresent) return null;
|
|
22
|
+
return hasAccelNode(fsx) ? {
|
|
23
|
+
type: "intel-npu",
|
|
24
|
+
name: "Intel AI Boost NPU"
|
|
25
|
+
} : null;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.classifyIntelNpu = classifyIntelNpu;
|
|
@@ -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-C0Pf5ShP.js");
|
|
3
3
|
let _camstack_types_node = require("@camstack/types/node");
|
|
4
4
|
let node_http = require("node:http");
|
|
5
5
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as readNodePin } from "./dist-
|
|
1
|
+
import { q as readNodePin } from "./dist-Dycu89sF.mjs";
|
|
2
2
|
import { ensureBinary, ensureFfmpeg, ensurePython, installPythonPackages, installPythonRequirements } from "@camstack/types/node";
|
|
3
3
|
import { createServer } from "node:http";
|
|
4
4
|
import * as fs from "node:fs";
|