@camstack/addon-provider-reolink 1.1.30 → 1.1.31
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.js +17 -55
- package/dist/addon.mjs +17 -55
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -7123,6 +7123,17 @@ var ModelCatalogEntrySchema = object({
|
|
|
7123
7123
|
"imagenet",
|
|
7124
7124
|
"none"
|
|
7125
7125
|
]).optional(),
|
|
7126
|
+
/**
|
|
7127
|
+
* The model already applies softmax IN-GRAPH — its raw output is a
|
|
7128
|
+
* probability distribution, not logits. When set, the `softmax`
|
|
7129
|
+
* postprocessor must NOT re-apply softmax: re-softmaxing an already-normalised
|
|
7130
|
+
* probability vector collapses it toward uniform (top-1 score craters far
|
|
7131
|
+
* below its true value, making every confidence gate meaningless). Absent ⇒
|
|
7132
|
+
* the output is raw logits and the postprocessor applies softmax (the normal
|
|
7133
|
+
* case). Set on the Google AIY Birds `bird-classifier` (softmax baked into the
|
|
7134
|
+
* TF graph). Threaded to the Python pool via `PoolModelConfig.outputProbabilities`.
|
|
7135
|
+
*/
|
|
7136
|
+
outputProbabilities: boolean().optional(),
|
|
7126
7137
|
preprocessMode: _enum(["letterbox", "resize"]).optional(),
|
|
7127
7138
|
/**
|
|
7128
7139
|
* Per-MODEL postprocessor override. Absent ⇒ the step's own
|
|
@@ -16273,6 +16284,8 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
16273
16284
|
return toDeviceSummary(device, this.addonId);
|
|
16274
16285
|
}
|
|
16275
16286
|
};
|
|
16287
|
+
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder;
|
|
16288
|
+
new Set(Object.values(DeviceType));
|
|
16276
16289
|
/**
|
|
16277
16290
|
* `addon-pages` — system-scoped singleton aggregator cap. Public-facing
|
|
16278
16291
|
* surface that admin-ui consumes through `useAddonPagesListPages()`.
|
|
@@ -21561,22 +21574,6 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
|
21561
21574
|
var RestartAddonResultSchema = unknown();
|
|
21562
21575
|
var InstallPackageResultSchema = unknown();
|
|
21563
21576
|
var ReloadPackagesResultSchema = unknown();
|
|
21564
|
-
/**
|
|
21565
|
-
* Result of `updateFrameworkPackage`. The cap method returns BEFORE the
|
|
21566
|
-
* server restarts so the admin UI can react to the `restartingAt`
|
|
21567
|
-
* timestamp (shows reconnect overlay). The transition from
|
|
21568
|
-
* `fromVersion` to `toVersion` will be confirmed by a subsequent
|
|
21569
|
-
* `system.restart-completed` event after the new process boots.
|
|
21570
|
-
*
|
|
21571
|
-
* Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
|
|
21572
|
-
*/
|
|
21573
|
-
var UpdateFrameworkPackageResultSchema = object({
|
|
21574
|
-
packageName: string(),
|
|
21575
|
-
fromVersion: string(),
|
|
21576
|
-
toVersion: string(),
|
|
21577
|
-
/** Ms-epoch the server scheduled its self-restart. */
|
|
21578
|
-
restartingAt: number()
|
|
21579
|
-
});
|
|
21580
21577
|
var BulkUpdateItemStatusSchema = _enum([
|
|
21581
21578
|
"queued",
|
|
21582
21579
|
"updating",
|
|
@@ -21704,13 +21701,6 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21704
21701
|
}), object({ success: literal(true) }), {
|
|
21705
21702
|
kind: "mutation",
|
|
21706
21703
|
auth: "admin"
|
|
21707
|
-
}), method(object({
|
|
21708
|
-
packageName: string().min(1),
|
|
21709
|
-
version: string().optional(),
|
|
21710
|
-
deferRestart: boolean().optional()
|
|
21711
|
-
}), UpdateFrameworkPackageResultSchema, {
|
|
21712
|
-
kind: "mutation",
|
|
21713
|
-
auth: "admin"
|
|
21714
21704
|
}), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({ addonId: string() }), RestartAddonResultSchema, {
|
|
21715
21705
|
kind: "mutation",
|
|
21716
21706
|
auth: "admin"
|
|
@@ -24185,12 +24175,6 @@ Object.freeze({
|
|
|
24185
24175
|
addonId: null,
|
|
24186
24176
|
access: "delete"
|
|
24187
24177
|
},
|
|
24188
|
-
"addons.updateFrameworkPackage": {
|
|
24189
|
-
capName: "addons",
|
|
24190
|
-
capScope: "system",
|
|
24191
|
-
addonId: null,
|
|
24192
|
-
access: "create"
|
|
24193
|
-
},
|
|
24194
24178
|
"addons.updatePackage": {
|
|
24195
24179
|
capName: "addons",
|
|
24196
24180
|
capScope: "system",
|
|
@@ -28779,32 +28763,6 @@ Object.freeze({
|
|
|
28779
28763
|
"network-access": "ingress",
|
|
28780
28764
|
"smtp-provider": "email"
|
|
28781
28765
|
});
|
|
28782
|
-
var frameworkSwapPackageSchema = object({
|
|
28783
|
-
name: string(),
|
|
28784
|
-
stagedPath: string(),
|
|
28785
|
-
backupPath: string(),
|
|
28786
|
-
toVersion: string(),
|
|
28787
|
-
fromVersion: string().nullable()
|
|
28788
|
-
});
|
|
28789
|
-
object({
|
|
28790
|
-
jobId: string(),
|
|
28791
|
-
taskId: string(),
|
|
28792
|
-
packages: array(frameworkSwapPackageSchema),
|
|
28793
|
-
requestedAtMs: number(),
|
|
28794
|
-
schemaVersion: literal(1)
|
|
28795
|
-
});
|
|
28796
|
-
object({
|
|
28797
|
-
jobId: string(),
|
|
28798
|
-
taskId: string(),
|
|
28799
|
-
backups: array(object({
|
|
28800
|
-
name: string(),
|
|
28801
|
-
backupPath: string(),
|
|
28802
|
-
livePath: string()
|
|
28803
|
-
})),
|
|
28804
|
-
appliedAtMs: number(),
|
|
28805
|
-
bootAttempts: number(),
|
|
28806
|
-
schemaVersion: literal(1)
|
|
28807
|
-
});
|
|
28808
28766
|
//#endregion
|
|
28809
28767
|
//#region ../../node_modules/undici/lib/core/symbols.js
|
|
28810
28768
|
var require_symbols = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -223223,6 +223181,10 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
|
|
|
223223
223181
|
emitDoorbellPressed(timestamp) {
|
|
223224
223182
|
this.doorbellLastPressedAt = timestamp;
|
|
223225
223183
|
this.doorbellPressCountSinceStart += 1;
|
|
223184
|
+
this.runtimeState.setCapState(doorbellCapability.name, {
|
|
223185
|
+
lastPressedAt: timestamp,
|
|
223186
|
+
pressCountSinceStart: this.doorbellPressCountSinceStart
|
|
223187
|
+
});
|
|
223226
223188
|
this.ctx.eventBus.emit(createEvent(EventCategory.DoorbellOnPressed, this.eventSource(), {
|
|
223227
223189
|
deviceId: this.id,
|
|
223228
223190
|
timestamp
|
package/dist/addon.mjs
CHANGED
|
@@ -7118,6 +7118,17 @@ var ModelCatalogEntrySchema = object({
|
|
|
7118
7118
|
"imagenet",
|
|
7119
7119
|
"none"
|
|
7120
7120
|
]).optional(),
|
|
7121
|
+
/**
|
|
7122
|
+
* The model already applies softmax IN-GRAPH — its raw output is a
|
|
7123
|
+
* probability distribution, not logits. When set, the `softmax`
|
|
7124
|
+
* postprocessor must NOT re-apply softmax: re-softmaxing an already-normalised
|
|
7125
|
+
* probability vector collapses it toward uniform (top-1 score craters far
|
|
7126
|
+
* below its true value, making every confidence gate meaningless). Absent ⇒
|
|
7127
|
+
* the output is raw logits and the postprocessor applies softmax (the normal
|
|
7128
|
+
* case). Set on the Google AIY Birds `bird-classifier` (softmax baked into the
|
|
7129
|
+
* TF graph). Threaded to the Python pool via `PoolModelConfig.outputProbabilities`.
|
|
7130
|
+
*/
|
|
7131
|
+
outputProbabilities: boolean().optional(),
|
|
7121
7132
|
preprocessMode: _enum(["letterbox", "resize"]).optional(),
|
|
7122
7133
|
/**
|
|
7123
7134
|
* Per-MODEL postprocessor override. Absent ⇒ the step's own
|
|
@@ -16268,6 +16279,8 @@ var BaseDeviceProvider = class extends BaseAddon {
|
|
|
16268
16279
|
return toDeviceSummary(device, this.addonId);
|
|
16269
16280
|
}
|
|
16270
16281
|
};
|
|
16282
|
+
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder;
|
|
16283
|
+
new Set(Object.values(DeviceType));
|
|
16271
16284
|
/**
|
|
16272
16285
|
* `addon-pages` — system-scoped singleton aggregator cap. Public-facing
|
|
16273
16286
|
* surface that admin-ui consumes through `useAddonPagesListPages()`.
|
|
@@ -21556,22 +21569,6 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
|
21556
21569
|
var RestartAddonResultSchema = unknown();
|
|
21557
21570
|
var InstallPackageResultSchema = unknown();
|
|
21558
21571
|
var ReloadPackagesResultSchema = unknown();
|
|
21559
|
-
/**
|
|
21560
|
-
* Result of `updateFrameworkPackage`. The cap method returns BEFORE the
|
|
21561
|
-
* server restarts so the admin UI can react to the `restartingAt`
|
|
21562
|
-
* timestamp (shows reconnect overlay). The transition from
|
|
21563
|
-
* `fromVersion` to `toVersion` will be confirmed by a subsequent
|
|
21564
|
-
* `system.restart-completed` event after the new process boots.
|
|
21565
|
-
*
|
|
21566
|
-
* Spec: docs/superpowers/specs/2026-05-14-framework-live-update-design.md
|
|
21567
|
-
*/
|
|
21568
|
-
var UpdateFrameworkPackageResultSchema = object({
|
|
21569
|
-
packageName: string(),
|
|
21570
|
-
fromVersion: string(),
|
|
21571
|
-
toVersion: string(),
|
|
21572
|
-
/** Ms-epoch the server scheduled its self-restart. */
|
|
21573
|
-
restartingAt: number()
|
|
21574
|
-
});
|
|
21575
21572
|
var BulkUpdateItemStatusSchema = _enum([
|
|
21576
21573
|
"queued",
|
|
21577
21574
|
"updating",
|
|
@@ -21699,13 +21696,6 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
21699
21696
|
}), object({ success: literal(true) }), {
|
|
21700
21697
|
kind: "mutation",
|
|
21701
21698
|
auth: "admin"
|
|
21702
|
-
}), method(object({
|
|
21703
|
-
packageName: string().min(1),
|
|
21704
|
-
version: string().optional(),
|
|
21705
|
-
deferRestart: boolean().optional()
|
|
21706
|
-
}), UpdateFrameworkPackageResultSchema, {
|
|
21707
|
-
kind: "mutation",
|
|
21708
|
-
auth: "admin"
|
|
21709
21699
|
}), method(object({ name: string() }), array(PackageVersionInfoSchema).readonly()), method(object({ addonId: string() }), RestartAddonResultSchema, {
|
|
21710
21700
|
kind: "mutation",
|
|
21711
21701
|
auth: "admin"
|
|
@@ -24180,12 +24170,6 @@ Object.freeze({
|
|
|
24180
24170
|
addonId: null,
|
|
24181
24171
|
access: "delete"
|
|
24182
24172
|
},
|
|
24183
|
-
"addons.updateFrameworkPackage": {
|
|
24184
|
-
capName: "addons",
|
|
24185
|
-
capScope: "system",
|
|
24186
|
-
addonId: null,
|
|
24187
|
-
access: "create"
|
|
24188
|
-
},
|
|
24189
24173
|
"addons.updatePackage": {
|
|
24190
24174
|
capName: "addons",
|
|
24191
24175
|
capScope: "system",
|
|
@@ -28774,32 +28758,6 @@ Object.freeze({
|
|
|
28774
28758
|
"network-access": "ingress",
|
|
28775
28759
|
"smtp-provider": "email"
|
|
28776
28760
|
});
|
|
28777
|
-
var frameworkSwapPackageSchema = object({
|
|
28778
|
-
name: string(),
|
|
28779
|
-
stagedPath: string(),
|
|
28780
|
-
backupPath: string(),
|
|
28781
|
-
toVersion: string(),
|
|
28782
|
-
fromVersion: string().nullable()
|
|
28783
|
-
});
|
|
28784
|
-
object({
|
|
28785
|
-
jobId: string(),
|
|
28786
|
-
taskId: string(),
|
|
28787
|
-
packages: array(frameworkSwapPackageSchema),
|
|
28788
|
-
requestedAtMs: number(),
|
|
28789
|
-
schemaVersion: literal(1)
|
|
28790
|
-
});
|
|
28791
|
-
object({
|
|
28792
|
-
jobId: string(),
|
|
28793
|
-
taskId: string(),
|
|
28794
|
-
backups: array(object({
|
|
28795
|
-
name: string(),
|
|
28796
|
-
backupPath: string(),
|
|
28797
|
-
livePath: string()
|
|
28798
|
-
})),
|
|
28799
|
-
appliedAtMs: number(),
|
|
28800
|
-
bootAttempts: number(),
|
|
28801
|
-
schemaVersion: literal(1)
|
|
28802
|
-
});
|
|
28803
28761
|
//#endregion
|
|
28804
28762
|
//#region ../../node_modules/undici/lib/core/symbols.js
|
|
28805
28763
|
var require_symbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
@@ -223203,6 +223161,10 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
|
|
|
223203
223161
|
emitDoorbellPressed(timestamp) {
|
|
223204
223162
|
this.doorbellLastPressedAt = timestamp;
|
|
223205
223163
|
this.doorbellPressCountSinceStart += 1;
|
|
223164
|
+
this.runtimeState.setCapState(doorbellCapability.name, {
|
|
223165
|
+
lastPressedAt: timestamp,
|
|
223166
|
+
pressCountSinceStart: this.doorbellPressCountSinceStart
|
|
223167
|
+
});
|
|
223206
223168
|
this.ctx.eventBus.emit(createEvent(EventCategory.DoorbellOnPressed, this.eventSource(), {
|
|
223207
223169
|
deviceId: this.id,
|
|
223208
223170
|
timestamp
|