@camstack/system 1.1.8 → 1.1.10
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 +1 -1
- package/dist/addon-runner.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +6 -0
- package/dist/builtins/device-manager/device-manager.addon.mjs +6 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{manifest-python-deps-B3CACH8P.js → manifest-python-deps-Ba_eOEPT.js} +4 -4
- package/dist/{manifest-python-deps-tH6H06_K.mjs → manifest-python-deps-BqId8WrC.mjs} +4 -4
- package/package.json +1 -1
package/dist/addon-runner.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_manifest_python_deps = require("./manifest-python-deps-
|
|
2
|
+
const require_manifest_python_deps = require("./manifest-python-deps-Ba_eOEPT.js");
|
|
3
3
|
const require_custom_action_registry = require("./custom-action-registry-vLYEFTtv.js");
|
|
4
4
|
let node_fs = require("node:fs");
|
|
5
5
|
node_fs = require_chunk.__toESM(node_fs);
|
package/dist/addon-runner.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as setWorkerNativeCapsChangeListener, A as createUdsLoggerWithControl, X as getWorkerNativeCapProvider, Z as getWorkerNativeCapSnapshot, i as createUdsAddonContext, j as LocalChildClient, mt as resolveAddonClass, pt as installManifestNativeDeps, t as installManifestPythonDeps, tt as validateProviderRegistrations } from "./manifest-python-deps-
|
|
1
|
+
import { $ as setWorkerNativeCapsChangeListener, A as createUdsLoggerWithControl, X as getWorkerNativeCapProvider, Z as getWorkerNativeCapSnapshot, i as createUdsAddonContext, j as LocalChildClient, mt as resolveAddonClass, pt as installManifestNativeDeps, t as installManifestPythonDeps, tt as validateProviderRegistrations } from "./manifest-python-deps-BqId8WrC.mjs";
|
|
2
2
|
import { t as CustomActionRegistry } from "./custom-action-registry-BEXwC-oo.mjs";
|
|
3
3
|
import { register } from "node:module";
|
|
4
4
|
import * as fs from "node:fs";
|
|
@@ -2910,6 +2910,12 @@ var DeviceManagerAddon = class DeviceManagerAddon extends _camstack_types.BaseAd
|
|
|
2910
2910
|
adoptionRelease: async ({ addonId, ...rest }) => {
|
|
2911
2911
|
return (await this.requireDeviceAdoptionProvider(addonId)).release(rest);
|
|
2912
2912
|
},
|
|
2913
|
+
adoptionResync: async ({ camDeviceId }) => {
|
|
2914
|
+
let owningAddonId = registry?.getAddonId(camDeviceId) ?? null;
|
|
2915
|
+
if (!owningAddonId) owningAddonId = (await resolvePersistedById(camDeviceId))?.addonId ?? null;
|
|
2916
|
+
if (!owningAddonId) throw new Error(`adoptionResync: device ${camDeviceId} not found`);
|
|
2917
|
+
return (await this.requireDeviceAdoptionProvider(owningAddonId)).resync({ camDeviceId });
|
|
2918
|
+
},
|
|
2913
2919
|
testField: async (input) => {
|
|
2914
2920
|
const { deviceId } = input;
|
|
2915
2921
|
let owningAddonId = null;
|
|
@@ -2905,6 +2905,12 @@ var DeviceManagerAddon = class DeviceManagerAddon extends BaseAddon {
|
|
|
2905
2905
|
adoptionRelease: async ({ addonId, ...rest }) => {
|
|
2906
2906
|
return (await this.requireDeviceAdoptionProvider(addonId)).release(rest);
|
|
2907
2907
|
},
|
|
2908
|
+
adoptionResync: async ({ camDeviceId }) => {
|
|
2909
|
+
let owningAddonId = registry?.getAddonId(camDeviceId) ?? null;
|
|
2910
|
+
if (!owningAddonId) owningAddonId = (await resolvePersistedById(camDeviceId))?.addonId ?? null;
|
|
2911
|
+
if (!owningAddonId) throw new Error(`adoptionResync: device ${camDeviceId} not found`);
|
|
2912
|
+
return (await this.requireDeviceAdoptionProvider(owningAddonId)).resync({ camDeviceId });
|
|
2913
|
+
},
|
|
2908
2914
|
testField: async (input) => {
|
|
2909
2915
|
const { deviceId } = input;
|
|
2910
2916
|
let owningAddonId = null;
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ const require_builtins_local_auth_local_auth_addon = require("./builtins/local-a
|
|
|
20
20
|
require("./builtins/local-auth/index.js");
|
|
21
21
|
const require_builtins_device_manager_device_manager_addon = require("./builtins/device-manager/device-manager.addon.js");
|
|
22
22
|
require("./builtins/device-manager/index.js");
|
|
23
|
-
const require_manifest_python_deps = require("./manifest-python-deps-
|
|
23
|
+
const require_manifest_python_deps = require("./manifest-python-deps-Ba_eOEPT.js");
|
|
24
24
|
const require_custom_action_registry = require("./custom-action-registry-vLYEFTtv.js");
|
|
25
25
|
let _camstack_types_node = require("@camstack/types/node");
|
|
26
26
|
let node_http = require("node:http");
|
package/dist/index.mjs
CHANGED
|
@@ -18,7 +18,7 @@ import { LocalAuthAddon, a as require_ms, c as __esmMin, d as __toCommonJS, f as
|
|
|
18
18
|
import "./builtins/local-auth/index.mjs";
|
|
19
19
|
import { DeviceManagerAddon } from "./builtins/device-manager/device-manager.addon.mjs";
|
|
20
20
|
import "./builtins/device-manager/index.mjs";
|
|
21
|
-
import { A as createUdsLoggerWithControl, B as createLocalTransport, C as ipcParentLink, D as createUdsEventBus, E as createUdsEventBridge, F as AGENT_CAP_FWD_SERVICE, G as FrameDecoder, H as UdsLocalTransportServer, I as CapRouteResolver, J as buildUdsNativeCapProxy, K as encodeFrame, L as CapRouteError, M as LocalChildRegistry, N as UDS_NO_ROUTE_PREFIX, O as udsChildLogToWorkerEntry, P as AGENT_CAP_FWD_ACTION, Q as mountNativeCapService, R as classifyCapRoute, S as ipcChildLink, T as createParentUnownedCallHandler, U as SocketChannel, V as UdsLocalTransportClient, W as localEndpointPath, Y as createBrokerDeviceManagerApi, _ as __resetCapUsageRegistryForTests, a as getWorkerDeviceRegistry, at as capBareAction, b as brokerTransportLink, c as setHubConnected, ct as deserializeTypedArrays, d as registerEventBusService, dt as CapabilityHandle, et as createAddonService, f as AddonDepsManager, ft as CapabilityUnavailableError, g as CapUsageRegistry, h as createHwAccelService, i as createUdsAddonContext, it as capActionSuffix, j as LocalChildClient, k as createUdsLogger, l as EVENT_TOPIC_PREFIX, lt as serializeTypedArrays, m as resolveHwAccel, mt as resolveAddonClass, n as adaptBrokerToCluster, nt as NATIVE_PROVIDER_SERVICE_INFIX, o as getOrInitReadinessRegistry, ot as capServiceName, p as createKernelHwAccel, pt as installManifestNativeDeps, q as buildNativeCapProxy, r as createAddonContext, rt as capActionName, s as getOrInitReadinessRegistryForClient, st as parseCapAction, t as installManifestPythonDeps, tt as validateProviderRegistrations, u as getBrokerEventBus, ut as DeviceRegistry, v as getCapUsageRegistry, w as localProviderLink, x as buildLinkChain, y as brokerCallForCap, z as callWithServiceDiscovery } from "./manifest-python-deps-
|
|
21
|
+
import { A as createUdsLoggerWithControl, B as createLocalTransport, C as ipcParentLink, D as createUdsEventBus, E as createUdsEventBridge, F as AGENT_CAP_FWD_SERVICE, G as FrameDecoder, H as UdsLocalTransportServer, I as CapRouteResolver, J as buildUdsNativeCapProxy, K as encodeFrame, L as CapRouteError, M as LocalChildRegistry, N as UDS_NO_ROUTE_PREFIX, O as udsChildLogToWorkerEntry, P as AGENT_CAP_FWD_ACTION, Q as mountNativeCapService, R as classifyCapRoute, S as ipcChildLink, T as createParentUnownedCallHandler, U as SocketChannel, V as UdsLocalTransportClient, W as localEndpointPath, Y as createBrokerDeviceManagerApi, _ as __resetCapUsageRegistryForTests, a as getWorkerDeviceRegistry, at as capBareAction, b as brokerTransportLink, c as setHubConnected, ct as deserializeTypedArrays, d as registerEventBusService, dt as CapabilityHandle, et as createAddonService, f as AddonDepsManager, ft as CapabilityUnavailableError, g as CapUsageRegistry, h as createHwAccelService, i as createUdsAddonContext, it as capActionSuffix, j as LocalChildClient, k as createUdsLogger, l as EVENT_TOPIC_PREFIX, lt as serializeTypedArrays, m as resolveHwAccel, mt as resolveAddonClass, n as adaptBrokerToCluster, nt as NATIVE_PROVIDER_SERVICE_INFIX, o as getOrInitReadinessRegistry, ot as capServiceName, p as createKernelHwAccel, pt as installManifestNativeDeps, q as buildNativeCapProxy, r as createAddonContext, rt as capActionName, s as getOrInitReadinessRegistryForClient, st as parseCapAction, t as installManifestPythonDeps, tt as validateProviderRegistrations, u as getBrokerEventBus, ut as DeviceRegistry, v as getCapUsageRegistry, w as localProviderLink, x as buildLinkChain, y as brokerCallForCap, z as callWithServiceDiscovery } from "./manifest-python-deps-BqId8WrC.mjs";
|
|
22
22
|
import { t as CustomActionRegistry } from "./custom-action-registry-BEXwC-oo.mjs";
|
|
23
23
|
import { PYTHON_VERSION, buildBinaryPath, downloadBinary, ensureBinary, ensureFfmpeg, ensurePython, findInPath, getFfmpegDownloadUrl, getPlatformInfo, getPythonDownloadUrl, installPythonPackages, installPythonRequirements } from "@camstack/types/node";
|
|
24
24
|
import { request } from "node:http";
|
|
@@ -6359,19 +6359,19 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
6359
6359
|
});
|
|
6360
6360
|
},
|
|
6361
6361
|
async readDeviceStore(deviceId) {
|
|
6362
|
-
return readBlob("addon-devices", String(deviceId));
|
|
6362
|
+
return readBlob("addon-devices", String(deviceId), addonId);
|
|
6363
6363
|
},
|
|
6364
6364
|
async writeDeviceStore(deviceId, patch) {
|
|
6365
6365
|
const key = String(deviceId);
|
|
6366
6366
|
return serializeRmw("addon-devices", key, async () => {
|
|
6367
6367
|
await writeBlob("addon-devices", key, {
|
|
6368
|
-
...await readBlob("addon-devices", key),
|
|
6368
|
+
...await readBlob("addon-devices", key, addonId),
|
|
6369
6369
|
...patch
|
|
6370
|
-
});
|
|
6370
|
+
}, addonId);
|
|
6371
6371
|
});
|
|
6372
6372
|
},
|
|
6373
6373
|
async clearDeviceStore(deviceId) {
|
|
6374
|
-
await writeBlob("addon-devices", String(deviceId), {});
|
|
6374
|
+
await writeBlob("addon-devices", String(deviceId), {}, addonId);
|
|
6375
6375
|
},
|
|
6376
6376
|
async readDeviceRuntimeState(deviceId) {
|
|
6377
6377
|
return readBlob("device-runtime-state", String(deviceId));
|
|
@@ -6357,19 +6357,19 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
6357
6357
|
});
|
|
6358
6358
|
},
|
|
6359
6359
|
async readDeviceStore(deviceId) {
|
|
6360
|
-
return readBlob("addon-devices", String(deviceId));
|
|
6360
|
+
return readBlob("addon-devices", String(deviceId), addonId);
|
|
6361
6361
|
},
|
|
6362
6362
|
async writeDeviceStore(deviceId, patch) {
|
|
6363
6363
|
const key = String(deviceId);
|
|
6364
6364
|
return serializeRmw("addon-devices", key, async () => {
|
|
6365
6365
|
await writeBlob("addon-devices", key, {
|
|
6366
|
-
...await readBlob("addon-devices", key),
|
|
6366
|
+
...await readBlob("addon-devices", key, addonId),
|
|
6367
6367
|
...patch
|
|
6368
|
-
});
|
|
6368
|
+
}, addonId);
|
|
6369
6369
|
});
|
|
6370
6370
|
},
|
|
6371
6371
|
async clearDeviceStore(deviceId) {
|
|
6372
|
-
await writeBlob("addon-devices", String(deviceId), {});
|
|
6372
|
+
await writeBlob("addon-devices", String(deviceId), {}, addonId);
|
|
6373
6373
|
},
|
|
6374
6374
|
async readDeviceRuntimeState(deviceId) {
|
|
6375
6375
|
return readBlob("device-runtime-state", String(deviceId));
|