@camstack/system 1.2.38 → 1.2.40
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/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/core-blocks/block-package.d.ts +59 -0
- package/dist/builtins/core-blocks/block-supervisor.d.ts +86 -0
- package/dist/builtins/core-blocks/core-blocks.addon.d.ts +18 -0
- package/dist/builtins/core-blocks/core-blocks.addon.js +533 -68
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +528 -69
- package/dist/builtins/core-blocks/index.d.ts +5 -3
- package/dist/builtins/core-blocks/index.js +6 -0
- package/dist/builtins/core-blocks/index.mjs +2 -2
- package/dist/builtins/device-manager/device-manager.addon.js +14 -6
- package/dist/builtins/device-manager/device-manager.addon.mjs +14 -6
- 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/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 +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/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/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 +281 -16
- package/dist/builtins/snapshot/index.mjs +282 -17
- package/dist/builtins/snapshot/snapshot-cache.d.ts +45 -0
- package/dist/builtins/snapshot/snapshot-media-handler.d.ts +32 -2
- package/dist/builtins/snapshot/snapshot-resize.d.ts +50 -0
- package/dist/builtins/snapshot/snapshot.addon.d.ts +13 -0
- 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/integration-registry.d.ts +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-DO76YVO2.mjs → dist-BXS0DP92.mjs} +24 -2
- package/dist/{dist-CFinlH7b.js → dist-Cj0LAuXi.js} +24 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Cj0LAuXi.js");
|
|
7
7
|
//#region src/builtins/system-config/system-config.addon.ts
|
|
8
8
|
/**
|
|
9
9
|
* Built-in `system-config` addon — Phase 4 of the settings redesign.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Tt as hydrateSchema, ct as BaseAddon, st as errMsg } from "../../dist-
|
|
1
|
+
import { Tt as hydrateSchema, ct as BaseAddon, st as errMsg } from "../../dist-BXS0DP92.mjs";
|
|
2
2
|
//#region src/builtins/system-config/system-config.addon.ts
|
|
3
3
|
/**
|
|
4
4
|
* Built-in `system-config` addon — Phase 4 of the settings redesign.
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Cj0LAuXi.js");
|
|
7
7
|
const require_formatter = require("../../formatter-DqAKDlvN.js");
|
|
8
8
|
let node_path = require("node:path");
|
|
9
9
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as logDestinationCapability, ct as BaseAddon } from "../../dist-
|
|
1
|
+
import { H as logDestinationCapability, ct as BaseAddon } from "../../dist-BXS0DP92.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
3
3
|
import * as path$1 from "node:path";
|
|
4
4
|
import path from "node:path";
|
|
@@ -16024,8 +16024,30 @@ var deviceManagerCapability = {
|
|
|
16024
16024
|
}),
|
|
16025
16025
|
/** List persisted devices for an addon (DB, for restore). */
|
|
16026
16026
|
listPersistedByAddon: method(z.object({ addonId: z.string() }), z.array(SavedDeviceRowSchema)),
|
|
16027
|
-
/**
|
|
16028
|
-
|
|
16027
|
+
/**
|
|
16028
|
+
* List all devices (live registry), optionally filtered by addonId.
|
|
16029
|
+
*
|
|
16030
|
+
* **Ask for `projection: 'slim'` unless you need `config`.** A full listing
|
|
16031
|
+
* of 293 devices measured 271 KB, of which `config` was 113 KB and
|
|
16032
|
+
* `metadata` 22 KB — half the payload — and the viewer's camera list, the
|
|
16033
|
+
* largest consumer, reads 1.8 KB of it. Worse, the persisted branch reads
|
|
16034
|
+
* each device's settings row one at a time, so `config` costs a
|
|
16035
|
+
* per-device round-trip as well as its bytes.
|
|
16036
|
+
*/
|
|
16037
|
+
listAll: method(z.object({
|
|
16038
|
+
addonId: z.string().optional(),
|
|
16039
|
+
/**
|
|
16040
|
+
* `slim` omits `config` (returned `{}`), `metadata` (null) and the
|
|
16041
|
+
* `sourceInfo` derived from config — and skips the per-device settings
|
|
16042
|
+
* read that produces them. Everything identifying a device (id, name,
|
|
16043
|
+
* type, online, features, isCamera, parent/link ids) is unchanged.
|
|
16044
|
+
* Do not use it for dispatch routing, which needs `sourceInfo`.
|
|
16045
|
+
*/
|
|
16046
|
+
projection: z.enum(["full", "slim"]).optional(),
|
|
16047
|
+
/** Return only camera devices. Filtering server-side instead of
|
|
16048
|
+
* shipping 293 rows to find 12. */
|
|
16049
|
+
isCamera: z.boolean().optional()
|
|
16050
|
+
}), z.array(DeviceInfoSchema)),
|
|
16029
16051
|
/** Get a single device by numeric deviceId. */
|
|
16030
16052
|
getDevice: method(z.object({ deviceId: z.number() }), DeviceInfoSchema.nullable()),
|
|
16031
16053
|
/** List children of a parent device (by parent numeric id). */
|
|
@@ -16024,8 +16024,30 @@ var deviceManagerCapability = {
|
|
|
16024
16024
|
}),
|
|
16025
16025
|
/** List persisted devices for an addon (DB, for restore). */
|
|
16026
16026
|
listPersistedByAddon: method(zod.z.object({ addonId: zod.z.string() }), zod.z.array(SavedDeviceRowSchema)),
|
|
16027
|
-
/**
|
|
16028
|
-
|
|
16027
|
+
/**
|
|
16028
|
+
* List all devices (live registry), optionally filtered by addonId.
|
|
16029
|
+
*
|
|
16030
|
+
* **Ask for `projection: 'slim'` unless you need `config`.** A full listing
|
|
16031
|
+
* of 293 devices measured 271 KB, of which `config` was 113 KB and
|
|
16032
|
+
* `metadata` 22 KB — half the payload — and the viewer's camera list, the
|
|
16033
|
+
* largest consumer, reads 1.8 KB of it. Worse, the persisted branch reads
|
|
16034
|
+
* each device's settings row one at a time, so `config` costs a
|
|
16035
|
+
* per-device round-trip as well as its bytes.
|
|
16036
|
+
*/
|
|
16037
|
+
listAll: method(zod.z.object({
|
|
16038
|
+
addonId: zod.z.string().optional(),
|
|
16039
|
+
/**
|
|
16040
|
+
* `slim` omits `config` (returned `{}`), `metadata` (null) and the
|
|
16041
|
+
* `sourceInfo` derived from config — and skips the per-device settings
|
|
16042
|
+
* read that produces them. Everything identifying a device (id, name,
|
|
16043
|
+
* type, online, features, isCamera, parent/link ids) is unchanged.
|
|
16044
|
+
* Do not use it for dispatch routing, which needs `sourceInfo`.
|
|
16045
|
+
*/
|
|
16046
|
+
projection: zod.z.enum(["full", "slim"]).optional(),
|
|
16047
|
+
/** Return only camera devices. Filtering server-side instead of
|
|
16048
|
+
* shipping 293 rows to find 12. */
|
|
16049
|
+
isCamera: zod.z.boolean().optional()
|
|
16050
|
+
}), zod.z.array(DeviceInfoSchema)),
|
|
16029
16051
|
/** Get a single device by numeric deviceId. */
|
|
16030
16052
|
getDevice: method(zod.z.object({ deviceId: zod.z.number() }), DeviceInfoSchema.nullable()),
|
|
16031
16053
|
/** List children of a parent device (by parent numeric id). */
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-Cj0LAuXi.js");
|
|
4
4
|
const require_model_download_service = require("./model-download-service-hf0ookyy.js");
|
|
5
5
|
const require_manifest_python_deps = require("./manifest-python-deps-BqE5j0-O.js");
|
|
6
6
|
const require_resource_monitor = require("./resource-monitor-DNNomR-i.js");
|
|
@@ -2419,7 +2419,7 @@ var IntegrationRegistry = class IntegrationRegistry {
|
|
|
2419
2419
|
* mutation one API call away.
|
|
2420
2420
|
*/
|
|
2421
2421
|
static isFixed(integration) {
|
|
2422
|
-
return integration.info["fixed"] === true;
|
|
2422
|
+
return integration.info?.["fixed"] === true;
|
|
2423
2423
|
}
|
|
2424
2424
|
async deleteIntegration(id) {
|
|
2425
2425
|
const integration = await this.getIntegration(id);
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM$1, r as __exportAll, t as __commonJSMin$1 } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { At as readinessKey, B as lifecycleJobSchema, F as isArrayOutputSchema, I as isCollectionArrayMethod, L as isObjectInput, M as extractNestedAddonId, Mt as scopeKey, Ot as parseJsonObject, Pt as EventCategory$1, R as isVoidInput, St as emitDownForOwnedCaps, U as logLevelAtMost, W as looseSchema, X as procedureAuthKey, bt as asString$1, c as METHOD_ACCESS_MAP, dt as DEVICE_STATUS_METHOD, gt as ReadinessTimeoutError, h as addonSettingsCapability, ht as ReadinessRegistry, jt as resolveCapMount, kt as parseJsonUnknown$1, l as RUNTIME_DEFAULTS, lt as DATAPLANE_SECRET_HEADER$1, q as objectInputDeclaresAddonId, st as errMsg$1, t as ALL_CAPABILITY_DEFINITIONS, ut as DEVICE_SETTINGS_CONTRIBUTION_METHODS, vt as asJsonObject$1, wt as expandCapMethods, xt as createEvent, yt as asNumber, z as kebabToCamel } from "./dist-
|
|
2
|
+
import { At as readinessKey, B as lifecycleJobSchema, F as isArrayOutputSchema, I as isCollectionArrayMethod, L as isObjectInput, M as extractNestedAddonId, Mt as scopeKey, Ot as parseJsonObject, Pt as EventCategory$1, R as isVoidInput, St as emitDownForOwnedCaps, U as logLevelAtMost, W as looseSchema, X as procedureAuthKey, bt as asString$1, c as METHOD_ACCESS_MAP, dt as DEVICE_STATUS_METHOD, gt as ReadinessTimeoutError, h as addonSettingsCapability, ht as ReadinessRegistry, jt as resolveCapMount, kt as parseJsonUnknown$1, l as RUNTIME_DEFAULTS, lt as DATAPLANE_SECRET_HEADER$1, q as objectInputDeclaresAddonId, st as errMsg$1, t as ALL_CAPABILITY_DEFINITIONS, ut as DEVICE_SETTINGS_CONTRIBUTION_METHODS, vt as asJsonObject$1, wt as expandCapMethods, xt as createEvent, yt as asNumber, z as kebabToCamel } from "./dist-BXS0DP92.mjs";
|
|
3
3
|
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";
|
|
4
4
|
import { $ as buildNativeCapProxy, A as createHubCapForwardService, B as AGENT_CAP_FWD_ACTION, C as brokerTransportLink, Ct as resolveAddonClass, D as localProviderLink, E as ipcParentLink, F as createUdsLogger, G as callWithServiceDiscovery, H as CapRouteResolver, I as createUdsLoggerWithControl, J as UdsLocalTransportServer, K as createLocalTransport, L as LocalChildClient, M as createUdsEventBridge, N as createUdsEventBus, O as HUB_CAP_FWD_ACTION, P as udsChildLogToWorkerEntry, Q as encodeFrame, R as LocalChildRegistry, S as brokerCallForCap, St as runNpm, T as ipcChildLink, U as CapRouteError, V as AGENT_CAP_FWD_SERVICE, W as classifyCapRoute, X as localEndpointPath, Y as SocketChannel, Z as FrameDecoder, _ as createKernelHwAccel, _t as CapabilityHandle, a as getWorkerDeviceRegistry, b as __resetCapUsageRegistryForTests, bt as installManifestNativeDeps, c as setHubConnected, ct as NATIVE_PROVIDER_SERVICE_INFIX, d as getBrokerEventBus, dt as capBareAction, et as buildUdsNativeCapProxy, f as getMoleculerEventStats, ft as capServiceName, g as AddonDepsManager, gt as DeviceRegistry, h as subscribePassthrough, ht as serializeTypedArrays, i as createUdsAddonContext, it as mountNativeCapService, j as createParentUnownedCallHandler, k as HUB_CAP_FWD_SERVICE, l as EVENT_TOPIC_PREFIX, lt as capActionName, m as setNodeEventInterest, mt as deserializeTypedArrays, n as adaptBrokerToCluster, o as getOrInitReadinessRegistry, ot as createAddonService, p as registerEventBusService, pt as parseCapAction, q as UdsLocalTransportClient, r as createAddonContext, s as getOrInitReadinessRegistryForClient, st as validateProviderRegistrations, t as installManifestPythonDeps, tt as createBrokerDeviceManagerApi, u as clusterEventTopic, ut as capActionSuffix, v as resolveHwAccel, vt as CapabilityUnavailableError, w as buildLinkChain, wt as createAddonDataPlaneFacility, x as getCapUsageRegistry, xt as resolveNpmInvocation, y as CapUsageRegistry, yt as copyBundledNativeModules, z as UDS_NO_ROUTE_PREFIX } from "./manifest-python-deps-Ck4-9K9m.mjs";
|
|
5
5
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-BkP504Vq.mjs";
|
|
@@ -2411,7 +2411,7 @@ var IntegrationRegistry = class IntegrationRegistry {
|
|
|
2411
2411
|
* mutation one API call away.
|
|
2412
2412
|
*/
|
|
2413
2413
|
static isFixed(integration) {
|
|
2414
|
-
return integration.info["fixed"] === true;
|
|
2414
|
+
return integration.info?.["fixed"] === true;
|
|
2415
2415
|
}
|
|
2416
2416
|
async deleteIntegration(id) {
|
|
2417
2417
|
const integration = await this.getIntegration(id);
|