@camstack/addon-export-ha-mqtt 1.2.1 → 1.2.3
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.
|
@@ -11065,7 +11065,8 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
11065
11065
|
modelId: string().optional(),
|
|
11066
11066
|
enabled: boolean().default(true),
|
|
11067
11067
|
children: array(PipelineStepInputSchema).optional(),
|
|
11068
|
-
settings: record(string(), unknown()).optional()
|
|
11068
|
+
settings: record(string(), unknown()).optional(),
|
|
11069
|
+
jumpDeviceKey: string().optional()
|
|
11069
11070
|
}));
|
|
11070
11071
|
var ModelSubstitutionSchema = object({
|
|
11071
11072
|
addonId: string(),
|
|
@@ -11371,8 +11372,24 @@ var NativeCropBboxSchema = object({
|
|
|
11371
11372
|
});
|
|
11372
11373
|
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
11373
11374
|
var NativeCropResultSchema = object({
|
|
11374
|
-
/**
|
|
11375
|
-
|
|
11375
|
+
/**
|
|
11376
|
+
* Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
|
|
11377
|
+
* same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
|
|
11378
|
+
* OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
|
|
11379
|
+
* path below), where shipping raw RGB is both an invariant violation and, for
|
|
11380
|
+
* a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
|
|
11381
|
+
* `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
|
|
11382
|
+
* the cross-node native-media miss: `bytes` is replaced by `jpeg`.
|
|
11383
|
+
*/
|
|
11384
|
+
bytes: _instanceof(Uint8Array).optional(),
|
|
11385
|
+
/**
|
|
11386
|
+
* Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
|
|
11387
|
+
* (which holds the native surface) encodes it in-process, so a native 4K frame
|
|
11388
|
+
* ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
|
|
11389
|
+
* a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
|
|
11390
|
+
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
11391
|
+
*/
|
|
11392
|
+
jpeg: string().optional(),
|
|
11376
11393
|
width: number$1().int().positive(),
|
|
11377
11394
|
height: number$1().int().positive(),
|
|
11378
11395
|
/**
|
|
@@ -11518,6 +11535,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
11518
11535
|
hubHostnameOverride: string().optional()
|
|
11519
11536
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
11520
11537
|
/**
|
|
11538
|
+
* One ENABLED inference device on the runner's node, as the step-tree
|
|
11539
|
+
* device-jump resolver sees it (phase 1). The orchestrator populates this
|
|
11540
|
+
* roster on the attach payload whenever the camera is elected onto a specific
|
|
11541
|
+
* `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
|
|
11542
|
+
* runner auto-jumps an enrichment step to when the elected device's format
|
|
11543
|
+
* cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
|
|
11544
|
+
* per-device knobs so the auto choice is weighted-least-loaded.
|
|
11545
|
+
*/
|
|
11546
|
+
var RunnerInferenceDeviceSchema = object({
|
|
11547
|
+
deviceKey: string(),
|
|
11548
|
+
weight: number$1().positive().default(1),
|
|
11549
|
+
maxSessions: number$1().int().positive().nullable().default(null)
|
|
11550
|
+
});
|
|
11551
|
+
/**
|
|
11521
11552
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
11522
11553
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
11523
11554
|
* runner needs to subscribe to the local broker and execute inference.
|
|
@@ -11635,7 +11666,16 @@ var RunnerCameraConfigSchema = object({
|
|
|
11635
11666
|
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
11636
11667
|
* this only selects WHICH device pool of that node runs the session.
|
|
11637
11668
|
*/
|
|
11638
|
-
deviceKey: string().optional()
|
|
11669
|
+
deviceKey: string().optional(),
|
|
11670
|
+
/**
|
|
11671
|
+
* Step-tree device-jump roster (phase 1): the node's ENABLED inference
|
|
11672
|
+
* devices, populated by the orchestrator ONLY when `deviceKey` is set and the
|
|
11673
|
+
* node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
|
|
11674
|
+
* step whose model has no build for the elected device's format onto another
|
|
11675
|
+
* enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
|
|
11676
|
+
* ⇒ no jump possible; the step runs on `deviceKey`.
|
|
11677
|
+
*/
|
|
11678
|
+
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
11639
11679
|
});
|
|
11640
11680
|
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
11641
11681
|
/**
|
|
@@ -11691,7 +11731,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
11691
11731
|
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number$1() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number$1() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number$1()).readonly()), method(object({
|
|
11692
11732
|
handle: FrameHandleSchema,
|
|
11693
11733
|
bbox: NativeCropBboxSchema,
|
|
11694
|
-
maxWidth: number$1().int().positive().optional()
|
|
11734
|
+
maxWidth: number$1().int().positive().optional(),
|
|
11735
|
+
/**
|
|
11736
|
+
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
11737
|
+
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
11738
|
+
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
11739
|
+
* agent) so the compressed payload fits Moleculer's `maxPacketSize` and
|
|
11740
|
+
* no raw pixels cross the process boundary. Same-node callers omit it
|
|
11741
|
+
* and keep the zero-copy raw `bytes` path. Additive + optional: a
|
|
11742
|
+
* pre-encode runner (version skew) ignores it and returns `bytes`, so
|
|
11743
|
+
* the caller falls back to encoding locally.
|
|
11744
|
+
*/
|
|
11745
|
+
encodeJpeg: boolean().optional()
|
|
11695
11746
|
}), NativeCropResultSchema.nullable()), method(object({
|
|
11696
11747
|
deviceId: number$1(),
|
|
11697
11748
|
frameHandle: FrameHandleSchema.optional(),
|
|
@@ -16514,7 +16565,8 @@ var MediaFileKindEnum = _enum([
|
|
|
16514
16565
|
"faceCrop",
|
|
16515
16566
|
"plateCrop",
|
|
16516
16567
|
"keyFrame",
|
|
16517
|
-
"keyFrameSmall"
|
|
16568
|
+
"keyFrameSmall",
|
|
16569
|
+
"thumbnailSmall"
|
|
16518
16570
|
]);
|
|
16519
16571
|
var MediaFileSchema = object({
|
|
16520
16572
|
key: string(),
|
|
@@ -16845,7 +16897,16 @@ var PipelineTemplateSchema = object({
|
|
|
16845
16897
|
});
|
|
16846
16898
|
var DeviceStepConfigSchema = object({
|
|
16847
16899
|
modelId: string().optional(),
|
|
16848
|
-
settings: record(string(), unknown()).optional()
|
|
16900
|
+
settings: record(string(), unknown()).optional(),
|
|
16901
|
+
/**
|
|
16902
|
+
* Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
|
|
16903
|
+
* When set, this step runs on the named enabled device of the SAME node
|
|
16904
|
+
* (`<backend>:<device>`) instead of the camera's elected device, bypassing
|
|
16905
|
+
* the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
|
|
16906
|
+
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
16907
|
+
* auto-jumps only when the effective device's format cannot run the step.
|
|
16908
|
+
*/
|
|
16909
|
+
jumpDeviceKey: string().optional()
|
|
16849
16910
|
});
|
|
16850
16911
|
var AgentPipelineSettingsSchema = object({
|
|
16851
16912
|
maxCameras: number$1().int().nonnegative().nullable().default(null),
|
|
@@ -11063,7 +11063,8 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
11063
11063
|
modelId: string().optional(),
|
|
11064
11064
|
enabled: boolean().default(true),
|
|
11065
11065
|
children: array(PipelineStepInputSchema).optional(),
|
|
11066
|
-
settings: record(string(), unknown()).optional()
|
|
11066
|
+
settings: record(string(), unknown()).optional(),
|
|
11067
|
+
jumpDeviceKey: string().optional()
|
|
11067
11068
|
}));
|
|
11068
11069
|
var ModelSubstitutionSchema = object({
|
|
11069
11070
|
addonId: string(),
|
|
@@ -11369,8 +11370,24 @@ var NativeCropBboxSchema = object({
|
|
|
11369
11370
|
});
|
|
11370
11371
|
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
11371
11372
|
var NativeCropResultSchema = object({
|
|
11372
|
-
/**
|
|
11373
|
-
|
|
11373
|
+
/**
|
|
11374
|
+
* Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
|
|
11375
|
+
* same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
|
|
11376
|
+
* OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
|
|
11377
|
+
* path below), where shipping raw RGB is both an invariant violation and, for
|
|
11378
|
+
* a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
|
|
11379
|
+
* `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
|
|
11380
|
+
* the cross-node native-media miss: `bytes` is replaced by `jpeg`.
|
|
11381
|
+
*/
|
|
11382
|
+
bytes: _instanceof(Uint8Array).optional(),
|
|
11383
|
+
/**
|
|
11384
|
+
* Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
|
|
11385
|
+
* (which holds the native surface) encodes it in-process, so a native 4K frame
|
|
11386
|
+
* ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
|
|
11387
|
+
* a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
|
|
11388
|
+
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
11389
|
+
*/
|
|
11390
|
+
jpeg: string().optional(),
|
|
11374
11391
|
width: number$1().int().positive(),
|
|
11375
11392
|
height: number$1().int().positive(),
|
|
11376
11393
|
/**
|
|
@@ -11516,6 +11533,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
11516
11533
|
hubHostnameOverride: string().optional()
|
|
11517
11534
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
11518
11535
|
/**
|
|
11536
|
+
* One ENABLED inference device on the runner's node, as the step-tree
|
|
11537
|
+
* device-jump resolver sees it (phase 1). The orchestrator populates this
|
|
11538
|
+
* roster on the attach payload whenever the camera is elected onto a specific
|
|
11539
|
+
* `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
|
|
11540
|
+
* runner auto-jumps an enrichment step to when the elected device's format
|
|
11541
|
+
* cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
|
|
11542
|
+
* per-device knobs so the auto choice is weighted-least-loaded.
|
|
11543
|
+
*/
|
|
11544
|
+
var RunnerInferenceDeviceSchema = object({
|
|
11545
|
+
deviceKey: string(),
|
|
11546
|
+
weight: number$1().positive().default(1),
|
|
11547
|
+
maxSessions: number$1().int().positive().nullable().default(null)
|
|
11548
|
+
});
|
|
11549
|
+
/**
|
|
11519
11550
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
11520
11551
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
11521
11552
|
* runner needs to subscribe to the local broker and execute inference.
|
|
@@ -11633,7 +11664,16 @@ var RunnerCameraConfigSchema = object({
|
|
|
11633
11664
|
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
11634
11665
|
* this only selects WHICH device pool of that node runs the session.
|
|
11635
11666
|
*/
|
|
11636
|
-
deviceKey: string().optional()
|
|
11667
|
+
deviceKey: string().optional(),
|
|
11668
|
+
/**
|
|
11669
|
+
* Step-tree device-jump roster (phase 1): the node's ENABLED inference
|
|
11670
|
+
* devices, populated by the orchestrator ONLY when `deviceKey` is set and the
|
|
11671
|
+
* node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
|
|
11672
|
+
* step whose model has no build for the elected device's format onto another
|
|
11673
|
+
* enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
|
|
11674
|
+
* ⇒ no jump possible; the step runs on `deviceKey`.
|
|
11675
|
+
*/
|
|
11676
|
+
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
11637
11677
|
});
|
|
11638
11678
|
motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
|
|
11639
11679
|
/**
|
|
@@ -11689,7 +11729,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
11689
11729
|
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number$1() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number$1() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number$1()).readonly()), method(object({
|
|
11690
11730
|
handle: FrameHandleSchema,
|
|
11691
11731
|
bbox: NativeCropBboxSchema,
|
|
11692
|
-
maxWidth: number$1().int().positive().optional()
|
|
11732
|
+
maxWidth: number$1().int().positive().optional(),
|
|
11733
|
+
/**
|
|
11734
|
+
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
11735
|
+
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
11736
|
+
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
11737
|
+
* agent) so the compressed payload fits Moleculer's `maxPacketSize` and
|
|
11738
|
+
* no raw pixels cross the process boundary. Same-node callers omit it
|
|
11739
|
+
* and keep the zero-copy raw `bytes` path. Additive + optional: a
|
|
11740
|
+
* pre-encode runner (version skew) ignores it and returns `bytes`, so
|
|
11741
|
+
* the caller falls back to encoding locally.
|
|
11742
|
+
*/
|
|
11743
|
+
encodeJpeg: boolean().optional()
|
|
11693
11744
|
}), NativeCropResultSchema.nullable()), method(object({
|
|
11694
11745
|
deviceId: number$1(),
|
|
11695
11746
|
frameHandle: FrameHandleSchema.optional(),
|
|
@@ -16512,7 +16563,8 @@ var MediaFileKindEnum = _enum([
|
|
|
16512
16563
|
"faceCrop",
|
|
16513
16564
|
"plateCrop",
|
|
16514
16565
|
"keyFrame",
|
|
16515
|
-
"keyFrameSmall"
|
|
16566
|
+
"keyFrameSmall",
|
|
16567
|
+
"thumbnailSmall"
|
|
16516
16568
|
]);
|
|
16517
16569
|
var MediaFileSchema = object({
|
|
16518
16570
|
key: string(),
|
|
@@ -16843,7 +16895,16 @@ var PipelineTemplateSchema = object({
|
|
|
16843
16895
|
});
|
|
16844
16896
|
var DeviceStepConfigSchema = object({
|
|
16845
16897
|
modelId: string().optional(),
|
|
16846
|
-
settings: record(string(), unknown()).optional()
|
|
16898
|
+
settings: record(string(), unknown()).optional(),
|
|
16899
|
+
/**
|
|
16900
|
+
* Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
|
|
16901
|
+
* When set, this step runs on the named enabled device of the SAME node
|
|
16902
|
+
* (`<backend>:<device>`) instead of the camera's elected device, bypassing
|
|
16903
|
+
* the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
|
|
16904
|
+
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
16905
|
+
* auto-jumps only when the effective device's format cannot run the step.
|
|
16906
|
+
*/
|
|
16907
|
+
jumpDeviceKey: string().optional()
|
|
16847
16908
|
});
|
|
16848
16909
|
var AgentPipelineSettingsSchema = object({
|
|
16849
16910
|
maxCameras: number$1().int().nonnegative().nullable().default(null),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-ha-mqtt",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "HomeAssistant MQTT discovery exporter for CamStack devices. Publishes discovery topics so HA auto-creates entities for exposed cameras/switches/intercoms/sensors.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|