@camstack/addon-provider-dreame 0.2.1 → 0.2.2
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 +66 -6
- package/dist/addon.mjs +66 -6
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -12359,7 +12359,8 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
12359
12359
|
modelId: string().optional(),
|
|
12360
12360
|
enabled: boolean().default(true),
|
|
12361
12361
|
children: array(PipelineStepInputSchema).optional(),
|
|
12362
|
-
settings: record(string(), unknown()).optional()
|
|
12362
|
+
settings: record(string(), unknown()).optional(),
|
|
12363
|
+
jumpDeviceKey: string().optional()
|
|
12363
12364
|
}));
|
|
12364
12365
|
var ModelSubstitutionSchema = object({
|
|
12365
12366
|
addonId: string(),
|
|
@@ -12698,8 +12699,24 @@ var NativeCropBboxSchema = object({
|
|
|
12698
12699
|
});
|
|
12699
12700
|
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12700
12701
|
var NativeCropResultSchema = object({
|
|
12701
|
-
/**
|
|
12702
|
-
|
|
12702
|
+
/**
|
|
12703
|
+
* Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
|
|
12704
|
+
* same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
|
|
12705
|
+
* OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
|
|
12706
|
+
* path below), where shipping raw RGB is both an invariant violation and, for
|
|
12707
|
+
* a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
|
|
12708
|
+
* `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
|
|
12709
|
+
* the cross-node native-media miss: `bytes` is replaced by `jpeg`.
|
|
12710
|
+
*/
|
|
12711
|
+
bytes: _instanceof(Uint8Array).optional(),
|
|
12712
|
+
/**
|
|
12713
|
+
* Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
|
|
12714
|
+
* (which holds the native surface) encodes it in-process, so a native 4K frame
|
|
12715
|
+
* ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
|
|
12716
|
+
* a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
|
|
12717
|
+
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
12718
|
+
*/
|
|
12719
|
+
jpeg: string().optional(),
|
|
12703
12720
|
width: number().int().positive(),
|
|
12704
12721
|
height: number().int().positive(),
|
|
12705
12722
|
/**
|
|
@@ -12845,6 +12862,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12845
12862
|
hubHostnameOverride: string().optional()
|
|
12846
12863
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
12847
12864
|
/**
|
|
12865
|
+
* One ENABLED inference device on the runner's node, as the step-tree
|
|
12866
|
+
* device-jump resolver sees it (phase 1). The orchestrator populates this
|
|
12867
|
+
* roster on the attach payload whenever the camera is elected onto a specific
|
|
12868
|
+
* `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
|
|
12869
|
+
* runner auto-jumps an enrichment step to when the elected device's format
|
|
12870
|
+
* cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
|
|
12871
|
+
* per-device knobs so the auto choice is weighted-least-loaded.
|
|
12872
|
+
*/
|
|
12873
|
+
var RunnerInferenceDeviceSchema = object({
|
|
12874
|
+
deviceKey: string(),
|
|
12875
|
+
weight: number().positive().default(1),
|
|
12876
|
+
maxSessions: number().int().positive().nullable().default(null)
|
|
12877
|
+
});
|
|
12878
|
+
/**
|
|
12848
12879
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
12849
12880
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
12850
12881
|
* runner needs to subscribe to the local broker and execute inference.
|
|
@@ -12962,7 +12993,16 @@ var RunnerCameraConfigSchema = object({
|
|
|
12962
12993
|
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
12963
12994
|
* this only selects WHICH device pool of that node runs the session.
|
|
12964
12995
|
*/
|
|
12965
|
-
deviceKey: string().optional()
|
|
12996
|
+
deviceKey: string().optional(),
|
|
12997
|
+
/**
|
|
12998
|
+
* Step-tree device-jump roster (phase 1): the node's ENABLED inference
|
|
12999
|
+
* devices, populated by the orchestrator ONLY when `deviceKey` is set and the
|
|
13000
|
+
* node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
|
|
13001
|
+
* step whose model has no build for the elected device's format onto another
|
|
13002
|
+
* enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
|
|
13003
|
+
* ⇒ no jump possible; the step runs on `deviceKey`.
|
|
13004
|
+
*/
|
|
13005
|
+
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
12966
13006
|
});
|
|
12967
13007
|
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;
|
|
12968
13008
|
/**
|
|
@@ -13018,7 +13058,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
13018
13058
|
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
13019
13059
|
handle: FrameHandleSchema,
|
|
13020
13060
|
bbox: NativeCropBboxSchema,
|
|
13021
|
-
maxWidth: number().int().positive().optional()
|
|
13061
|
+
maxWidth: number().int().positive().optional(),
|
|
13062
|
+
/**
|
|
13063
|
+
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
13064
|
+
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
13065
|
+
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
13066
|
+
* agent) so the compressed payload fits Moleculer's `maxPacketSize` and
|
|
13067
|
+
* no raw pixels cross the process boundary. Same-node callers omit it
|
|
13068
|
+
* and keep the zero-copy raw `bytes` path. Additive + optional: a
|
|
13069
|
+
* pre-encode runner (version skew) ignores it and returns `bytes`, so
|
|
13070
|
+
* the caller falls back to encoding locally.
|
|
13071
|
+
*/
|
|
13072
|
+
encodeJpeg: boolean().optional()
|
|
13022
13073
|
}), NativeCropResultSchema.nullable()), method(object({
|
|
13023
13074
|
deviceId: number(),
|
|
13024
13075
|
frameHandle: FrameHandleSchema.optional(),
|
|
@@ -19837,7 +19888,16 @@ var PipelineTemplateSchema = object({
|
|
|
19837
19888
|
});
|
|
19838
19889
|
var DeviceStepConfigSchema = object({
|
|
19839
19890
|
modelId: string().optional(),
|
|
19840
|
-
settings: record(string(), unknown()).optional()
|
|
19891
|
+
settings: record(string(), unknown()).optional(),
|
|
19892
|
+
/**
|
|
19893
|
+
* Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
|
|
19894
|
+
* When set, this step runs on the named enabled device of the SAME node
|
|
19895
|
+
* (`<backend>:<device>`) instead of the camera's elected device, bypassing
|
|
19896
|
+
* the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
|
|
19897
|
+
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
19898
|
+
* auto-jumps only when the effective device's format cannot run the step.
|
|
19899
|
+
*/
|
|
19900
|
+
jumpDeviceKey: string().optional()
|
|
19841
19901
|
});
|
|
19842
19902
|
var AgentPipelineSettingsSchema = object({
|
|
19843
19903
|
maxCameras: number().int().nonnegative().nullable().default(null),
|
package/dist/addon.mjs
CHANGED
|
@@ -12359,7 +12359,8 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
12359
12359
|
modelId: string().optional(),
|
|
12360
12360
|
enabled: boolean().default(true),
|
|
12361
12361
|
children: array(PipelineStepInputSchema).optional(),
|
|
12362
|
-
settings: record(string(), unknown()).optional()
|
|
12362
|
+
settings: record(string(), unknown()).optional(),
|
|
12363
|
+
jumpDeviceKey: string().optional()
|
|
12363
12364
|
}));
|
|
12364
12365
|
var ModelSubstitutionSchema = object({
|
|
12365
12366
|
addonId: string(),
|
|
@@ -12698,8 +12699,24 @@ var NativeCropBboxSchema = object({
|
|
|
12698
12699
|
});
|
|
12699
12700
|
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12700
12701
|
var NativeCropResultSchema = object({
|
|
12701
|
-
/**
|
|
12702
|
-
|
|
12702
|
+
/**
|
|
12703
|
+
* Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
|
|
12704
|
+
* same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
|
|
12705
|
+
* OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
|
|
12706
|
+
* path below), where shipping raw RGB is both an invariant violation and, for
|
|
12707
|
+
* a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
|
|
12708
|
+
* `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
|
|
12709
|
+
* the cross-node native-media miss: `bytes` is replaced by `jpeg`.
|
|
12710
|
+
*/
|
|
12711
|
+
bytes: _instanceof(Uint8Array).optional(),
|
|
12712
|
+
/**
|
|
12713
|
+
* Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
|
|
12714
|
+
* (which holds the native surface) encodes it in-process, so a native 4K frame
|
|
12715
|
+
* ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
|
|
12716
|
+
* a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
|
|
12717
|
+
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
12718
|
+
*/
|
|
12719
|
+
jpeg: string().optional(),
|
|
12703
12720
|
width: number().int().positive(),
|
|
12704
12721
|
height: number().int().positive(),
|
|
12705
12722
|
/**
|
|
@@ -12845,6 +12862,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
12845
12862
|
hubHostnameOverride: string().optional()
|
|
12846
12863
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
12847
12864
|
/**
|
|
12865
|
+
* One ENABLED inference device on the runner's node, as the step-tree
|
|
12866
|
+
* device-jump resolver sees it (phase 1). The orchestrator populates this
|
|
12867
|
+
* roster on the attach payload whenever the camera is elected onto a specific
|
|
12868
|
+
* `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
|
|
12869
|
+
* runner auto-jumps an enrichment step to when the elected device's format
|
|
12870
|
+
* cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
|
|
12871
|
+
* per-device knobs so the auto choice is weighted-least-loaded.
|
|
12872
|
+
*/
|
|
12873
|
+
var RunnerInferenceDeviceSchema = object({
|
|
12874
|
+
deviceKey: string(),
|
|
12875
|
+
weight: number().positive().default(1),
|
|
12876
|
+
maxSessions: number().int().positive().nullable().default(null)
|
|
12877
|
+
});
|
|
12878
|
+
/**
|
|
12848
12879
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
12849
12880
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
12850
12881
|
* runner needs to subscribe to the local broker and execute inference.
|
|
@@ -12962,7 +12993,16 @@ var RunnerCameraConfigSchema = object({
|
|
|
12962
12993
|
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
12963
12994
|
* this only selects WHICH device pool of that node runs the session.
|
|
12964
12995
|
*/
|
|
12965
|
-
deviceKey: string().optional()
|
|
12996
|
+
deviceKey: string().optional(),
|
|
12997
|
+
/**
|
|
12998
|
+
* Step-tree device-jump roster (phase 1): the node's ENABLED inference
|
|
12999
|
+
* devices, populated by the orchestrator ONLY when `deviceKey` is set and the
|
|
13000
|
+
* node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
|
|
13001
|
+
* step whose model has no build for the elected device's format onto another
|
|
13002
|
+
* enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
|
|
13003
|
+
* ⇒ no jump possible; the step runs on `deviceKey`.
|
|
13004
|
+
*/
|
|
13005
|
+
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
12966
13006
|
});
|
|
12967
13007
|
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;
|
|
12968
13008
|
/**
|
|
@@ -13018,7 +13058,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
13018
13058
|
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
13019
13059
|
handle: FrameHandleSchema,
|
|
13020
13060
|
bbox: NativeCropBboxSchema,
|
|
13021
|
-
maxWidth: number().int().positive().optional()
|
|
13061
|
+
maxWidth: number().int().positive().optional(),
|
|
13062
|
+
/**
|
|
13063
|
+
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
13064
|
+
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
13065
|
+
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
13066
|
+
* agent) so the compressed payload fits Moleculer's `maxPacketSize` and
|
|
13067
|
+
* no raw pixels cross the process boundary. Same-node callers omit it
|
|
13068
|
+
* and keep the zero-copy raw `bytes` path. Additive + optional: a
|
|
13069
|
+
* pre-encode runner (version skew) ignores it and returns `bytes`, so
|
|
13070
|
+
* the caller falls back to encoding locally.
|
|
13071
|
+
*/
|
|
13072
|
+
encodeJpeg: boolean().optional()
|
|
13022
13073
|
}), NativeCropResultSchema.nullable()), method(object({
|
|
13023
13074
|
deviceId: number(),
|
|
13024
13075
|
frameHandle: FrameHandleSchema.optional(),
|
|
@@ -19837,7 +19888,16 @@ var PipelineTemplateSchema = object({
|
|
|
19837
19888
|
});
|
|
19838
19889
|
var DeviceStepConfigSchema = object({
|
|
19839
19890
|
modelId: string().optional(),
|
|
19840
|
-
settings: record(string(), unknown()).optional()
|
|
19891
|
+
settings: record(string(), unknown()).optional(),
|
|
19892
|
+
/**
|
|
19893
|
+
* Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
|
|
19894
|
+
* When set, this step runs on the named enabled device of the SAME node
|
|
19895
|
+
* (`<backend>:<device>`) instead of the camera's elected device, bypassing
|
|
19896
|
+
* the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
|
|
19897
|
+
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
19898
|
+
* auto-jumps only when the effective device's format cannot run the step.
|
|
19899
|
+
*/
|
|
19900
|
+
jumpDeviceKey: string().optional()
|
|
19841
19901
|
});
|
|
19842
19902
|
var AgentPipelineSettingsSchema = object({
|
|
19843
19903
|
maxCameras: number().int().nonnegative().nullable().default(null),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreame",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|