@camstack/addon-provider-onvif 1.2.1 → 1.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
|
@@ -11199,7 +11199,8 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
11199
11199
|
modelId: string().optional(),
|
|
11200
11200
|
enabled: boolean().default(true),
|
|
11201
11201
|
children: array(PipelineStepInputSchema).optional(),
|
|
11202
|
-
settings: record(string(), unknown()).optional()
|
|
11202
|
+
settings: record(string(), unknown()).optional(),
|
|
11203
|
+
jumpDeviceKey: string().optional()
|
|
11203
11204
|
}));
|
|
11204
11205
|
var ModelSubstitutionSchema = object({
|
|
11205
11206
|
addonId: string(),
|
|
@@ -11505,8 +11506,24 @@ var NativeCropBboxSchema = object({
|
|
|
11505
11506
|
});
|
|
11506
11507
|
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
11507
11508
|
var NativeCropResultSchema = object({
|
|
11508
|
-
/**
|
|
11509
|
-
|
|
11509
|
+
/**
|
|
11510
|
+
* Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
|
|
11511
|
+
* same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
|
|
11512
|
+
* OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
|
|
11513
|
+
* path below), where shipping raw RGB is both an invariant violation and, for
|
|
11514
|
+
* a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
|
|
11515
|
+
* `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
|
|
11516
|
+
* the cross-node native-media miss: `bytes` is replaced by `jpeg`.
|
|
11517
|
+
*/
|
|
11518
|
+
bytes: _instanceof(Uint8Array).optional(),
|
|
11519
|
+
/**
|
|
11520
|
+
* Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
|
|
11521
|
+
* (which holds the native surface) encodes it in-process, so a native 4K frame
|
|
11522
|
+
* ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
|
|
11523
|
+
* a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
|
|
11524
|
+
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
11525
|
+
*/
|
|
11526
|
+
jpeg: string().optional(),
|
|
11510
11527
|
width: number().int().positive(),
|
|
11511
11528
|
height: number().int().positive(),
|
|
11512
11529
|
/**
|
|
@@ -11652,6 +11669,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
11652
11669
|
hubHostnameOverride: string().optional()
|
|
11653
11670
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
11654
11671
|
/**
|
|
11672
|
+
* One ENABLED inference device on the runner's node, as the step-tree
|
|
11673
|
+
* device-jump resolver sees it (phase 1). The orchestrator populates this
|
|
11674
|
+
* roster on the attach payload whenever the camera is elected onto a specific
|
|
11675
|
+
* `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
|
|
11676
|
+
* runner auto-jumps an enrichment step to when the elected device's format
|
|
11677
|
+
* cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
|
|
11678
|
+
* per-device knobs so the auto choice is weighted-least-loaded.
|
|
11679
|
+
*/
|
|
11680
|
+
var RunnerInferenceDeviceSchema = object({
|
|
11681
|
+
deviceKey: string(),
|
|
11682
|
+
weight: number().positive().default(1),
|
|
11683
|
+
maxSessions: number().int().positive().nullable().default(null)
|
|
11684
|
+
});
|
|
11685
|
+
/**
|
|
11655
11686
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
11656
11687
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
11657
11688
|
* runner needs to subscribe to the local broker and execute inference.
|
|
@@ -11769,7 +11800,16 @@ var RunnerCameraConfigSchema = object({
|
|
|
11769
11800
|
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
11770
11801
|
* this only selects WHICH device pool of that node runs the session.
|
|
11771
11802
|
*/
|
|
11772
|
-
deviceKey: string().optional()
|
|
11803
|
+
deviceKey: string().optional(),
|
|
11804
|
+
/**
|
|
11805
|
+
* Step-tree device-jump roster (phase 1): the node's ENABLED inference
|
|
11806
|
+
* devices, populated by the orchestrator ONLY when `deviceKey` is set and the
|
|
11807
|
+
* node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
|
|
11808
|
+
* step whose model has no build for the elected device's format onto another
|
|
11809
|
+
* enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
|
|
11810
|
+
* ⇒ no jump possible; the step runs on `deviceKey`.
|
|
11811
|
+
*/
|
|
11812
|
+
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
11773
11813
|
});
|
|
11774
11814
|
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;
|
|
11775
11815
|
/**
|
|
@@ -11825,7 +11865,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
11825
11865
|
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({
|
|
11826
11866
|
handle: FrameHandleSchema,
|
|
11827
11867
|
bbox: NativeCropBboxSchema,
|
|
11828
|
-
maxWidth: number().int().positive().optional()
|
|
11868
|
+
maxWidth: number().int().positive().optional(),
|
|
11869
|
+
/**
|
|
11870
|
+
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
11871
|
+
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
11872
|
+
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
11873
|
+
* agent) so the compressed payload fits Moleculer's `maxPacketSize` and
|
|
11874
|
+
* no raw pixels cross the process boundary. Same-node callers omit it
|
|
11875
|
+
* and keep the zero-copy raw `bytes` path. Additive + optional: a
|
|
11876
|
+
* pre-encode runner (version skew) ignores it and returns `bytes`, so
|
|
11877
|
+
* the caller falls back to encoding locally.
|
|
11878
|
+
*/
|
|
11879
|
+
encodeJpeg: boolean().optional()
|
|
11829
11880
|
}), NativeCropResultSchema.nullable()), method(object({
|
|
11830
11881
|
deviceId: number(),
|
|
11831
11882
|
frameHandle: FrameHandleSchema.optional(),
|
|
@@ -17248,7 +17299,16 @@ var PipelineTemplateSchema = object({
|
|
|
17248
17299
|
});
|
|
17249
17300
|
var DeviceStepConfigSchema = object({
|
|
17250
17301
|
modelId: string().optional(),
|
|
17251
|
-
settings: record(string(), unknown()).optional()
|
|
17302
|
+
settings: record(string(), unknown()).optional(),
|
|
17303
|
+
/**
|
|
17304
|
+
* Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
|
|
17305
|
+
* When set, this step runs on the named enabled device of the SAME node
|
|
17306
|
+
* (`<backend>:<device>`) instead of the camera's elected device, bypassing
|
|
17307
|
+
* the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
|
|
17308
|
+
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
17309
|
+
* auto-jumps only when the effective device's format cannot run the step.
|
|
17310
|
+
*/
|
|
17311
|
+
jumpDeviceKey: string().optional()
|
|
17252
17312
|
});
|
|
17253
17313
|
var AgentPipelineSettingsSchema = object({
|
|
17254
17314
|
maxCameras: number().int().nonnegative().nullable().default(null),
|
package/dist/addon.mjs
CHANGED
|
@@ -11200,7 +11200,8 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
11200
11200
|
modelId: string().optional(),
|
|
11201
11201
|
enabled: boolean().default(true),
|
|
11202
11202
|
children: array(PipelineStepInputSchema).optional(),
|
|
11203
|
-
settings: record(string(), unknown()).optional()
|
|
11203
|
+
settings: record(string(), unknown()).optional(),
|
|
11204
|
+
jumpDeviceKey: string().optional()
|
|
11204
11205
|
}));
|
|
11205
11206
|
var ModelSubstitutionSchema = object({
|
|
11206
11207
|
addonId: string(),
|
|
@@ -11506,8 +11507,24 @@ var NativeCropBboxSchema = object({
|
|
|
11506
11507
|
});
|
|
11507
11508
|
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
11508
11509
|
var NativeCropResultSchema = object({
|
|
11509
|
-
/**
|
|
11510
|
-
|
|
11510
|
+
/**
|
|
11511
|
+
* Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
|
|
11512
|
+
* same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
|
|
11513
|
+
* OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
|
|
11514
|
+
* path below), where shipping raw RGB is both an invariant violation and, for
|
|
11515
|
+
* a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
|
|
11516
|
+
* `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
|
|
11517
|
+
* the cross-node native-media miss: `bytes` is replaced by `jpeg`.
|
|
11518
|
+
*/
|
|
11519
|
+
bytes: _instanceof(Uint8Array).optional(),
|
|
11520
|
+
/**
|
|
11521
|
+
* Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
|
|
11522
|
+
* (which holds the native surface) encodes it in-process, so a native 4K frame
|
|
11523
|
+
* ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
|
|
11524
|
+
* a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
|
|
11525
|
+
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
11526
|
+
*/
|
|
11527
|
+
jpeg: string().optional(),
|
|
11511
11528
|
width: number().int().positive(),
|
|
11512
11529
|
height: number().int().positive(),
|
|
11513
11530
|
/**
|
|
@@ -11653,6 +11670,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
11653
11670
|
hubHostnameOverride: string().optional()
|
|
11654
11671
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
11655
11672
|
/**
|
|
11673
|
+
* One ENABLED inference device on the runner's node, as the step-tree
|
|
11674
|
+
* device-jump resolver sees it (phase 1). The orchestrator populates this
|
|
11675
|
+
* roster on the attach payload whenever the camera is elected onto a specific
|
|
11676
|
+
* `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
|
|
11677
|
+
* runner auto-jumps an enrichment step to when the elected device's format
|
|
11678
|
+
* cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
|
|
11679
|
+
* per-device knobs so the auto choice is weighted-least-loaded.
|
|
11680
|
+
*/
|
|
11681
|
+
var RunnerInferenceDeviceSchema = object({
|
|
11682
|
+
deviceKey: string(),
|
|
11683
|
+
weight: number().positive().default(1),
|
|
11684
|
+
maxSessions: number().int().positive().nullable().default(null)
|
|
11685
|
+
});
|
|
11686
|
+
/**
|
|
11656
11687
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
11657
11688
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
11658
11689
|
* runner needs to subscribe to the local broker and execute inference.
|
|
@@ -11770,7 +11801,16 @@ var RunnerCameraConfigSchema = object({
|
|
|
11770
11801
|
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
11771
11802
|
* this only selects WHICH device pool of that node runs the session.
|
|
11772
11803
|
*/
|
|
11773
|
-
deviceKey: string().optional()
|
|
11804
|
+
deviceKey: string().optional(),
|
|
11805
|
+
/**
|
|
11806
|
+
* Step-tree device-jump roster (phase 1): the node's ENABLED inference
|
|
11807
|
+
* devices, populated by the orchestrator ONLY when `deviceKey` is set and the
|
|
11808
|
+
* node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
|
|
11809
|
+
* step whose model has no build for the elected device's format onto another
|
|
11810
|
+
* enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
|
|
11811
|
+
* ⇒ no jump possible; the step runs on `deviceKey`.
|
|
11812
|
+
*/
|
|
11813
|
+
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
11774
11814
|
});
|
|
11775
11815
|
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;
|
|
11776
11816
|
/**
|
|
@@ -11826,7 +11866,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
11826
11866
|
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({
|
|
11827
11867
|
handle: FrameHandleSchema,
|
|
11828
11868
|
bbox: NativeCropBboxSchema,
|
|
11829
|
-
maxWidth: number().int().positive().optional()
|
|
11869
|
+
maxWidth: number().int().positive().optional(),
|
|
11870
|
+
/**
|
|
11871
|
+
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
11872
|
+
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
11873
|
+
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
11874
|
+
* agent) so the compressed payload fits Moleculer's `maxPacketSize` and
|
|
11875
|
+
* no raw pixels cross the process boundary. Same-node callers omit it
|
|
11876
|
+
* and keep the zero-copy raw `bytes` path. Additive + optional: a
|
|
11877
|
+
* pre-encode runner (version skew) ignores it and returns `bytes`, so
|
|
11878
|
+
* the caller falls back to encoding locally.
|
|
11879
|
+
*/
|
|
11880
|
+
encodeJpeg: boolean().optional()
|
|
11830
11881
|
}), NativeCropResultSchema.nullable()), method(object({
|
|
11831
11882
|
deviceId: number(),
|
|
11832
11883
|
frameHandle: FrameHandleSchema.optional(),
|
|
@@ -17249,7 +17300,16 @@ var PipelineTemplateSchema = object({
|
|
|
17249
17300
|
});
|
|
17250
17301
|
var DeviceStepConfigSchema = object({
|
|
17251
17302
|
modelId: string().optional(),
|
|
17252
|
-
settings: record(string(), unknown()).optional()
|
|
17303
|
+
settings: record(string(), unknown()).optional(),
|
|
17304
|
+
/**
|
|
17305
|
+
* Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
|
|
17306
|
+
* When set, this step runs on the named enabled device of the SAME node
|
|
17307
|
+
* (`<backend>:<device>`) instead of the camera's elected device, bypassing
|
|
17308
|
+
* the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
|
|
17309
|
+
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
17310
|
+
* auto-jumps only when the effective device's format cannot run the step.
|
|
17311
|
+
*/
|
|
17312
|
+
jumpDeviceKey: string().optional()
|
|
17253
17313
|
});
|
|
17254
17314
|
var AgentPipelineSettingsSchema = object({
|
|
17255
17315
|
maxCameras: number().int().nonnegative().nullable().default(null),
|