@camstack/system 1.2.436 → 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/{agent-https-B8lKYVtU.mjs → agent-https-BPfHrI4c.mjs} +3 -3
- package/dist/auth/login-session-manager.d.ts +2 -0
- package/dist/auth/session-revocation-bus.d.ts +32 -0
- 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 +5 -5
- 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 +53 -12
- package/dist/builtins/local-auth/local-auth.addon.mjs +53 -13
- package/dist/builtins/local-network/local-network.addon.js +10 -1
- package/dist/builtins/local-network/local-network.addon.mjs +13 -4
- 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 +20 -10
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +8 -8
- 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.d.ts +9 -0
- package/dist/builtins/system-config/system-config.addon.js +135 -72
- package/dist/builtins/system-config/system-config.addon.mjs +135 -73
- package/dist/builtins/winston-logging/index.js +14 -5
- package/dist/builtins/winston-logging/index.mjs +14 -5
- package/dist/{composition-sources-BAOlCu4j.js → composition-sources-DI3Z83vG.js} +1 -1
- package/dist/{composition-sources-gN_BWUKp.mjs → composition-sources-DpHGCjdL.mjs} +1 -1
- package/dist/{constants-BFpowodq.mjs → constants-DQK705Sb.mjs} +1 -1
- package/dist/{constants-GENKqk9k.js → constants-wkcn5Ij3.js} +1 -1
- package/dist/{device-ca-CuWuRW9N.js → device-ca-BSvkXqyI.js} +1 -1
- package/dist/{device-ca-BNM5ai4t.mjs → device-ca-DvIZjXIl.mjs} +1 -1
- package/dist/{dist-DjD2M79P.mjs → dist-Dc8GKC5H.mjs} +301 -6
- package/dist/{dist-DVe0Nsp8.js → dist-GgG-7amw.js} +348 -5
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/{hub-mdns-ciao-DJRwtlA8.mjs → hub-mdns-ciao-DMlQTdPU.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 +3 -0
- package/dist/index.js +666 -21
- package/dist/index.mjs +676 -38
- 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-D4h904rb.js → restore-archive-CTRz8v9o.js} +1 -1
- package/dist/{restore-archive-BxmP1ChO.mjs → restore-archive-DPg9duVY.mjs} +1 -1
- package/dist/{retired-settings-keys-CYP5IZJ5.js → retired-settings-keys-Dr_4lfKu.js} +1 -1
- package/dist/{retired-settings-keys-CQaknvx1.mjs → retired-settings-keys-Is0zO8gX.mjs} +1 -1
- package/dist/{wal-maintenance-CaDsrJM_.mjs → wal-maintenance-Bx3lcVA7.mjs} +0 -0
- package/dist/{wal-maintenance-Br60onAQ.js → wal-maintenance-mjB2i-VR.js} +0 -0
- 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-GgG-7amw.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let _camstack_types_node = require("@camstack/types/node");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -92,11 +92,13 @@ function buildGridDeviceSchema(isGrid) {
|
|
|
92
92
|
id: "camera-grid-layout",
|
|
93
93
|
tab: "general",
|
|
94
94
|
title: "Grid layout",
|
|
95
|
+
titleKey: "server:gridDevice.s_camera-grid-layout.title",
|
|
95
96
|
order: 20,
|
|
96
97
|
fields: [{
|
|
97
98
|
type: "widget",
|
|
98
99
|
key: "_gridLayout",
|
|
99
100
|
label: "",
|
|
101
|
+
labelKey: "server:gridDevice.s_camera-grid-layout._gridLayout.label",
|
|
100
102
|
widgetId: GRID_LAYOUT_WIDGET_ID
|
|
101
103
|
}]
|
|
102
104
|
}] };
|
|
@@ -3656,12 +3658,15 @@ var CameraGridAddon = class extends require_dist.BaseAddon {
|
|
|
3656
3658
|
return this.schema({ sections: [{
|
|
3657
3659
|
id: "camera-grids",
|
|
3658
3660
|
title: "Camera grids",
|
|
3661
|
+
titleKey: "server:globalSettings.s_camera-grids.title",
|
|
3659
3662
|
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.",
|
|
3663
|
+
descriptionKey: "server:globalSettings.s_camera-grids.description",
|
|
3660
3664
|
columns: 1,
|
|
3661
3665
|
fields: [this.field({
|
|
3662
3666
|
type: "editable-array",
|
|
3663
3667
|
key: "cameraGrids",
|
|
3664
3668
|
label: "Grids",
|
|
3669
|
+
labelKey: "server:globalSettings.s_camera-grids.cameraGrids.label",
|
|
3665
3670
|
default: [],
|
|
3666
3671
|
maxRows: 16,
|
|
3667
3672
|
addLabel: "Add grid",
|
|
@@ -3675,12 +3680,15 @@ var CameraGridAddon = class extends require_dist.BaseAddon {
|
|
|
3675
3680
|
type: "text",
|
|
3676
3681
|
key: "name",
|
|
3677
3682
|
label: "Name",
|
|
3683
|
+
labelKey: "server:globalSettings.s_camera-grids.cameraGrids.name.label",
|
|
3678
3684
|
required: true
|
|
3679
3685
|
}, {
|
|
3680
3686
|
type: "boolean",
|
|
3681
3687
|
key: "enabled",
|
|
3682
3688
|
label: "Enabled",
|
|
3689
|
+
labelKey: "server:globalSettings.s_camera-grids.cameraGrids.enabled.label",
|
|
3683
3690
|
description: "A disabled grid withdraws its camera.",
|
|
3691
|
+
descriptionKey: "server:globalSettings.s_camera-grids.cameraGrids.enabled.description",
|
|
3684
3692
|
default: true
|
|
3685
3693
|
}]
|
|
3686
3694
|
})]
|
|
@@ -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,11 +1,11 @@
|
|
|
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";
|
|
6
6
|
import * as fs from "node:fs/promises";
|
|
7
7
|
import * as path$1 from "node:path";
|
|
8
|
-
import * as os from "node:os";
|
|
8
|
+
import * as os$1 from "node:os";
|
|
9
9
|
import { pathToFileURL } from "node:url";
|
|
10
10
|
//#region src/builtins/core-blocks/block-package.ts
|
|
11
11
|
/**
|
|
@@ -864,7 +864,7 @@ async function compileFiles(transpiler, files, entryPath) {
|
|
|
864
864
|
ok: false,
|
|
865
865
|
error: "the multi-file bundler is unavailable on this node"
|
|
866
866
|
};
|
|
867
|
-
const work = await fs.mkdtemp(path$1.join(os.tmpdir(), "core-block-compile-"));
|
|
867
|
+
const work = await fs.mkdtemp(path$1.join(os$1.tmpdir(), "core-block-compile-"));
|
|
868
868
|
try {
|
|
869
869
|
for (const [rel, content] of Object.entries(files)) {
|
|
870
870
|
const abs = path$1.resolve(work, rel);
|
|
@@ -1810,7 +1810,7 @@ function looksLikeSchema(value) {
|
|
|
1810
1810
|
* Never throws.
|
|
1811
1811
|
*/
|
|
1812
1812
|
async function extractSettingsSchema(js) {
|
|
1813
|
-
const dir = await fs.mkdtemp(path$1.join(os.tmpdir(), "core-block-schema-"));
|
|
1813
|
+
const dir = await fs.mkdtemp(path$1.join(os$1.tmpdir(), "core-block-schema-"));
|
|
1814
1814
|
const file = path$1.join(dir, "block.mjs");
|
|
1815
1815
|
try {
|
|
1816
1816
|
await fs.writeFile(file, js, "utf-8");
|
|
@@ -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;
|