@camstack/system 1.2.437 → 1.2.438
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 +64 -12
- package/dist/addon-runner.mjs +65 -13
- 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 +7 -1
- package/dist/builtins/alerts/alerts.addon.mjs +7 -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 +2 -2
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/dist/builtins/calendars/calendars.addon.js +1 -1
- package/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +9 -1
- package/dist/builtins/camera-grid/index.mjs +9 -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 +12 -5
- package/dist/builtins/console-logging/index.mjs +12 -5
- package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/dist/builtins/device-manager/device-manager.addon.d.ts +5 -0
- package/dist/builtins/device-manager/device-manager.addon.js +702 -28
- package/dist/builtins/device-manager/device-manager.addon.mjs +702 -28
- package/dist/builtins/device-manager/device-meta-types.d.ts +4 -0
- package/dist/builtins/device-manager/device-provider-context.d.ts +9 -0
- package/dist/builtins/device-manager/device-removal-hooks.d.ts +103 -0
- package/dist/builtins/device-manager/device-row-store.d.ts +1 -0
- package/dist/builtins/device-manager/device-tombstone-store.d.ts +58 -0
- package/dist/builtins/device-manager/removal-cleanup.d.ts +50 -0
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +37 -4
- package/dist/builtins/keychain/index.mjs +37 -4
- package/dist/builtins/keychain/keychain-service.d.ts +14 -0
- package/dist/builtins/keychain/keychain-store.d.ts +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 +12 -12
- package/dist/builtins/local-auth/local-auth.addon.mjs +12 -12
- package/dist/builtins/local-network/local-network.addon.js +10 -1
- package/dist/builtins/local-network/local-network.addon.mjs +10 -1
- package/dist/builtins/loki-logging/index.js +28 -5
- package/dist/builtins/loki-logging/index.mjs +28 -5
- package/dist/builtins/native-metrics/native-metrics.addon.js +11 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +11 -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 +11 -1
- package/dist/builtins/snapshot/index.mjs +11 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +4 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +4 -1
- package/dist/builtins/sqlite-storage/index.js +1 -1
- package/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- 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 +20 -2
- package/dist/builtins/system-config/system-config.addon.mjs +20 -2
- package/dist/builtins/winston-logging/index.js +14 -5
- package/dist/builtins/winston-logging/index.mjs +14 -5
- package/dist/{composition-sources-BIT8IUKm.js → composition-sources-DI3Z83vG.js} +1 -1
- package/dist/{composition-sources-tpYR0f1x.mjs → composition-sources-DpHGCjdL.mjs} +1 -1
- package/dist/{constants-Bc6trhoW.mjs → constants-DQK705Sb.mjs} +1 -1
- package/dist/{constants-CwRY32Nx.js → constants-wkcn5Ij3.js} +1 -1
- package/dist/{device-ca-DImD8IzR.js → device-ca-BSvkXqyI.js} +1 -1
- package/dist/{device-ca-BhdBByGD.mjs → device-ca-DvIZjXIl.mjs} +1 -1
- package/dist/{dist-m5JkT8UN.mjs → dist-Dc8GKC5H.mjs} +272 -7
- package/dist/{dist-CEAyXW3Q.js → dist-GgG-7amw.js} +307 -6
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/i18n/catalog-registry.d.ts +35 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +663 -20
- package/dist/index.mjs +659 -22
- package/dist/kernel/gc-census.d.ts +18 -1
- package/dist/kernel/settings-view-types.d.ts +2 -0
- package/dist/kernel/transport/local-transport.d.ts +3 -0
- package/dist/kernel/transport/peer-answered-error.d.ts +5 -1
- package/dist/{restore-archive-C75srVbG.js → restore-archive-CTRz8v9o.js} +1 -1
- package/dist/{restore-archive-DNxAStrJ.mjs → restore-archive-DPg9duVY.mjs} +1 -1
- package/dist/{retired-settings-keys-DNfV28R_.js → retired-settings-keys-Dr_4lfKu.js} +1 -1
- package/dist/{retired-settings-keys-C5qP9QIf.mjs → retired-settings-keys-Is0zO8gX.mjs} +1 -1
- package/dist/{wal-maintenance-DvnVO5IK.mjs → wal-maintenance-Bx3lcVA7.mjs} +0 -0
- package/dist/{wal-maintenance-Ch79gy9S.js → wal-maintenance-mjB2i-VR.js} +0 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as DeclaredDevices, Dr as errMsg, Er as DeviceType, H as MOTION_CLOSE_AFTER_MS, Or as BaseAddon, Sn as motionCapability, Wr as createEvent, Xn as snapshotCapability, Zr as hydrateSchema, ht as cameraGridLayoutCapability, kt as declarationOwnerNodeId, nr as streamCatalogCapability, o as BaseDevice, pr as buildFfmpegArgs, w as DERIVED_CAMERA_SILENCED_CAP_NAMES, wr as DeviceFeature, yi as EventCategory, yn as memoizePinnedFfmpeg } from "../../dist-Dc8GKC5H.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -87,11 +87,13 @@ function buildGridDeviceSchema(isGrid) {
|
|
|
87
87
|
id: "camera-grid-layout",
|
|
88
88
|
tab: "general",
|
|
89
89
|
title: "Grid layout",
|
|
90
|
+
titleKey: "server:gridDevice.s_camera-grid-layout.title",
|
|
90
91
|
order: 20,
|
|
91
92
|
fields: [{
|
|
92
93
|
type: "widget",
|
|
93
94
|
key: "_gridLayout",
|
|
94
95
|
label: "",
|
|
96
|
+
labelKey: "server:gridDevice.s_camera-grid-layout._gridLayout.label",
|
|
95
97
|
widgetId: GRID_LAYOUT_WIDGET_ID
|
|
96
98
|
}]
|
|
97
99
|
}] };
|
|
@@ -3651,12 +3653,15 @@ var CameraGridAddon = class extends BaseAddon {
|
|
|
3651
3653
|
return this.schema({ sections: [{
|
|
3652
3654
|
id: "camera-grids",
|
|
3653
3655
|
title: "Camera grids",
|
|
3656
|
+
titleKey: "server:globalSettings.s_camera-grids.title",
|
|
3654
3657
|
description: "A grid is a composite camera: several cameras composed into one picture, recorded and played back like any other camera. Create one here with a name; open its camera to lay it out. Object detection is switched OFF on a new grid — the cameras it is composed from are already analysed.",
|
|
3658
|
+
descriptionKey: "server:globalSettings.s_camera-grids.description",
|
|
3655
3659
|
columns: 1,
|
|
3656
3660
|
fields: [this.field({
|
|
3657
3661
|
type: "editable-array",
|
|
3658
3662
|
key: "cameraGrids",
|
|
3659
3663
|
label: "Grids",
|
|
3664
|
+
labelKey: "server:globalSettings.s_camera-grids.cameraGrids.label",
|
|
3660
3665
|
default: [],
|
|
3661
3666
|
maxRows: 16,
|
|
3662
3667
|
addLabel: "Add grid",
|
|
@@ -3670,12 +3675,15 @@ var CameraGridAddon = class extends BaseAddon {
|
|
|
3670
3675
|
type: "text",
|
|
3671
3676
|
key: "name",
|
|
3672
3677
|
label: "Name",
|
|
3678
|
+
labelKey: "server:globalSettings.s_camera-grids.cameraGrids.name.label",
|
|
3673
3679
|
required: true
|
|
3674
3680
|
}, {
|
|
3675
3681
|
type: "boolean",
|
|
3676
3682
|
key: "enabled",
|
|
3677
3683
|
label: "Enabled",
|
|
3684
|
+
labelKey: "server:globalSettings.s_camera-grids.cameraGrids.enabled.label",
|
|
3678
3685
|
description: "A disabled grid withdraws its camera.",
|
|
3686
|
+
descriptionKey: "server:globalSettings.s_camera-grids.cameraGrids.enabled.description",
|
|
3679
3687
|
default: true
|
|
3680
3688
|
}]
|
|
3681
3689
|
})]
|
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_composition_sources = require("../../composition-sources-
|
|
6
|
+
const require_dist = require("../../dist-GgG-7amw.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-DI3Z83vG.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/shared/device-state-changed.ts
|
|
10
10
|
/** Structural narrowing helper for untrusted bus payloads. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as normalizedNativeOwner } from "../../composition-sources-
|
|
1
|
+
import { A as DeclaredDevices, Cr as toExpressionValue, Dr as errMsg, Er as DeviceType, Gt as expressionContainsBuiltinCall, Ht as evaluateCompositionField, Or as BaseAddon, Sr as disarmRoseMemory, Wr as createEvent, _r as compositionFeatureEnabled, br as compositionSourceKey, f as COMPOSED_ITEM_FIXED_FIELDS, fr as COMPOSER_ADDON_ID, gr as composedDeviceStableId, hr as composedDeviceRef, kn as planComposition, mr as cloneStatefulExpressionMemory, o as BaseDevice, r as ALL_CAPABILITY_DEFINITIONS, ut as buildCapabilityLookup, vr as compositionItemFieldPath, vt as composerCapability, xr as createStatefulExpressionMemory, yi as EventCategory, yr as compositionSliceKey, yt as compositionFieldKey } from "../../dist-Dc8GKC5H.mjs";
|
|
2
|
+
import { n as normalizedNativeOwner } from "../../composition-sources-DpHGCjdL.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/builtins/shared/device-state-changed.ts
|
|
5
5
|
/** Structural narrowing helper for untrusted bus payloads. */
|
|
@@ -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-GgG-7amw.js");
|
|
7
7
|
const require_formatter = require("../../formatter-DqAKDlvN.js");
|
|
8
8
|
//#region src/builtins/console-logging/console-destination.ts
|
|
9
9
|
var LEVEL_RANK = {
|
|
@@ -67,29 +67,36 @@ var ConsoleLoggingAddon = class extends require_dist.BaseAddon {
|
|
|
67
67
|
return this.schema({ sections: [{
|
|
68
68
|
id: "console-logging",
|
|
69
69
|
title: "Console Logging",
|
|
70
|
+
titleKey: "server:globalSettings.s_console-logging.title",
|
|
70
71
|
description: "Minimum log level to emit on stdout/stderr. Independent from the rotated-file (Winston) destination.",
|
|
72
|
+
descriptionKey: "server:globalSettings.s_console-logging.description",
|
|
71
73
|
columns: 2,
|
|
72
74
|
fields: [this.field({
|
|
73
75
|
type: "select",
|
|
74
76
|
key: "level",
|
|
75
77
|
label: "Log Level",
|
|
78
|
+
labelKey: "server:globalSettings.s_console-logging.level.label",
|
|
76
79
|
default: "info",
|
|
77
80
|
options: [
|
|
78
81
|
{
|
|
79
82
|
value: "debug",
|
|
80
|
-
label: "Debug"
|
|
83
|
+
label: "Debug",
|
|
84
|
+
labelKey: "server:globalSettings.s_console-logging.level.o_debug.label"
|
|
81
85
|
},
|
|
82
86
|
{
|
|
83
87
|
value: "info",
|
|
84
|
-
label: "Info"
|
|
88
|
+
label: "Info",
|
|
89
|
+
labelKey: "server:globalSettings.s_console-logging.level.o_info.label"
|
|
85
90
|
},
|
|
86
91
|
{
|
|
87
92
|
value: "warn",
|
|
88
|
-
label: "Warn"
|
|
93
|
+
label: "Warn",
|
|
94
|
+
labelKey: "server:globalSettings.s_console-logging.level.o_warn.label"
|
|
89
95
|
},
|
|
90
96
|
{
|
|
91
97
|
value: "error",
|
|
92
|
-
label: "Error"
|
|
98
|
+
label: "Error",
|
|
99
|
+
labelKey: "server:globalSettings.s_console-logging.level.o_error.label"
|
|
93
100
|
}
|
|
94
101
|
]
|
|
95
102
|
})]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Or as BaseAddon, mn as logDestinationCapability } from "../../dist-Dc8GKC5H.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
3
3
|
//#region src/builtins/console-logging/console-destination.ts
|
|
4
4
|
var LEVEL_RANK = {
|
|
@@ -62,29 +62,36 @@ var ConsoleLoggingAddon = class extends BaseAddon {
|
|
|
62
62
|
return this.schema({ sections: [{
|
|
63
63
|
id: "console-logging",
|
|
64
64
|
title: "Console Logging",
|
|
65
|
+
titleKey: "server:globalSettings.s_console-logging.title",
|
|
65
66
|
description: "Minimum log level to emit on stdout/stderr. Independent from the rotated-file (Winston) destination.",
|
|
67
|
+
descriptionKey: "server:globalSettings.s_console-logging.description",
|
|
66
68
|
columns: 2,
|
|
67
69
|
fields: [this.field({
|
|
68
70
|
type: "select",
|
|
69
71
|
key: "level",
|
|
70
72
|
label: "Log Level",
|
|
73
|
+
labelKey: "server:globalSettings.s_console-logging.level.label",
|
|
71
74
|
default: "info",
|
|
72
75
|
options: [
|
|
73
76
|
{
|
|
74
77
|
value: "debug",
|
|
75
|
-
label: "Debug"
|
|
78
|
+
label: "Debug",
|
|
79
|
+
labelKey: "server:globalSettings.s_console-logging.level.o_debug.label"
|
|
76
80
|
},
|
|
77
81
|
{
|
|
78
82
|
value: "info",
|
|
79
|
-
label: "Info"
|
|
83
|
+
label: "Info",
|
|
84
|
+
labelKey: "server:globalSettings.s_console-logging.level.o_info.label"
|
|
80
85
|
},
|
|
81
86
|
{
|
|
82
87
|
value: "warn",
|
|
83
|
-
label: "Warn"
|
|
88
|
+
label: "Warn",
|
|
89
|
+
labelKey: "server:globalSettings.s_console-logging.level.o_warn.label"
|
|
84
90
|
},
|
|
85
91
|
{
|
|
86
92
|
value: "error",
|
|
87
|
-
label: "Error"
|
|
93
|
+
label: "Error",
|
|
94
|
+
labelKey: "server:globalSettings.s_console-logging.level.o_error.label"
|
|
88
95
|
}
|
|
89
96
|
]
|
|
90
97
|
})]
|
|
@@ -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_composition_sources = require("../../composition-sources-
|
|
3
|
+
const require_dist = require("../../dist-GgG-7amw.js");
|
|
4
|
+
const require_composition_sources = require("../../composition-sources-DI3Z83vG.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let _camstack_types_node = require("@camstack/types/node");
|
|
7
7
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as describeCompositionSources } from "../../composition-sources-
|
|
1
|
+
import { A as DeclaredDevices, Cn as normalizeCoreBlockWrite, Ct as coreBlockIdFromAddonId, Dr as errMsg, Ln as resolveCoreBlockEntry, Nt as describeComposableCaps, Or as BaseAddon, Pn as replacedFieldKeys, Rn as resolveCoreBlockFiles, St as coreBlockComposition, Tt as coreBlocksCapability, Zr as hydrateSchema, br as compositionSourceKey, bt as compositionSourceRefs, h as CORE_BLOCK_ADDON_PREFIX, hr as composedDeviceRef, kn as planComposition, m as CORE_BLOCKS_ADDON_ID, or as validateComposition, p as COMPOSER_RUNNER_ID, r as ALL_CAPABILITY_DEFINITIONS, ut as buildCapabilityLookup, v as CoreBlockSchema, wt as coreBlockSourceKind, xt as coreBlockAddonId } from "../../dist-Dc8GKC5H.mjs";
|
|
2
|
+
import { t as describeCompositionSources } from "../../composition-sources-DpHGCjdL.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { customizationBlockName } from "@camstack/types/node";
|
|
@@ -95,6 +95,9 @@ export declare class DeviceManagerAddon extends BaseAddon {
|
|
|
95
95
|
* `allocateDeviceId` never consults.
|
|
96
96
|
*/
|
|
97
97
|
private readonly removalFence;
|
|
98
|
+
/** Store-by-store clean-up of a removed device, with a bounded retry (D864). */
|
|
99
|
+
private removalCleanupImpl;
|
|
100
|
+
private removalHooksCleanupImpl;
|
|
98
101
|
/** Declared secret config paths per device, as last registered (D783). */
|
|
99
102
|
private readonly secretConfigPaths;
|
|
100
103
|
/** The keychain side of driver device forms (D789), wired in onInitialize. */
|
|
@@ -222,6 +225,8 @@ export declare class DeviceManagerAddon extends BaseAddon {
|
|
|
222
225
|
/** The narrow dependency bag the activation verb needs (D556). */
|
|
223
226
|
private get wrapperActivationDeps();
|
|
224
227
|
protected onInitialize(): Promise<ProviderRegistration[] | void>;
|
|
228
|
+
private get removalCleanup();
|
|
229
|
+
private get removalHooksCleanup();
|
|
225
230
|
protected onShutdown(): Promise<void>;
|
|
226
231
|
}
|
|
227
232
|
export default DeviceManagerAddon;
|