@camstack/addon-provider-hikvision 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.
- package/dist/addon.js +68 -7
- package/dist/addon.mjs +68 -7
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -12582,7 +12582,8 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
12582
12582
|
modelId: string().optional(),
|
|
12583
12583
|
enabled: boolean().default(true),
|
|
12584
12584
|
children: array(PipelineStepInputSchema).optional(),
|
|
12585
|
-
settings: record(string(), unknown()).optional()
|
|
12585
|
+
settings: record(string(), unknown()).optional(),
|
|
12586
|
+
jumpDeviceKey: string().optional()
|
|
12586
12587
|
}));
|
|
12587
12588
|
var ModelSubstitutionSchema = object({
|
|
12588
12589
|
addonId: string(),
|
|
@@ -12921,8 +12922,24 @@ var NativeCropBboxSchema = object({
|
|
|
12921
12922
|
});
|
|
12922
12923
|
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12923
12924
|
var NativeCropResultSchema = object({
|
|
12924
|
-
/**
|
|
12925
|
-
|
|
12925
|
+
/**
|
|
12926
|
+
* Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
|
|
12927
|
+
* same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
|
|
12928
|
+
* OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
|
|
12929
|
+
* path below), where shipping raw RGB is both an invariant violation and, for
|
|
12930
|
+
* a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
|
|
12931
|
+
* `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
|
|
12932
|
+
* the cross-node native-media miss: `bytes` is replaced by `jpeg`.
|
|
12933
|
+
*/
|
|
12934
|
+
bytes: _instanceof(Uint8Array).optional(),
|
|
12935
|
+
/**
|
|
12936
|
+
* Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
|
|
12937
|
+
* (which holds the native surface) encodes it in-process, so a native 4K frame
|
|
12938
|
+
* ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
|
|
12939
|
+
* a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
|
|
12940
|
+
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
12941
|
+
*/
|
|
12942
|
+
jpeg: string().optional(),
|
|
12926
12943
|
width: number().int().positive(),
|
|
12927
12944
|
height: number().int().positive(),
|
|
12928
12945
|
/**
|
|
@@ -13068,6 +13085,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
13068
13085
|
hubHostnameOverride: string().optional()
|
|
13069
13086
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
13070
13087
|
/**
|
|
13088
|
+
* One ENABLED inference device on the runner's node, as the step-tree
|
|
13089
|
+
* device-jump resolver sees it (phase 1). The orchestrator populates this
|
|
13090
|
+
* roster on the attach payload whenever the camera is elected onto a specific
|
|
13091
|
+
* `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
|
|
13092
|
+
* runner auto-jumps an enrichment step to when the elected device's format
|
|
13093
|
+
* cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
|
|
13094
|
+
* per-device knobs so the auto choice is weighted-least-loaded.
|
|
13095
|
+
*/
|
|
13096
|
+
var RunnerInferenceDeviceSchema = object({
|
|
13097
|
+
deviceKey: string(),
|
|
13098
|
+
weight: number().positive().default(1),
|
|
13099
|
+
maxSessions: number().int().positive().nullable().default(null)
|
|
13100
|
+
});
|
|
13101
|
+
/**
|
|
13071
13102
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
13072
13103
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
13073
13104
|
* runner needs to subscribe to the local broker and execute inference.
|
|
@@ -13185,7 +13216,16 @@ var RunnerCameraConfigSchema = object({
|
|
|
13185
13216
|
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
13186
13217
|
* this only selects WHICH device pool of that node runs the session.
|
|
13187
13218
|
*/
|
|
13188
|
-
deviceKey: string().optional()
|
|
13219
|
+
deviceKey: string().optional(),
|
|
13220
|
+
/**
|
|
13221
|
+
* Step-tree device-jump roster (phase 1): the node's ENABLED inference
|
|
13222
|
+
* devices, populated by the orchestrator ONLY when `deviceKey` is set and the
|
|
13223
|
+
* node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
|
|
13224
|
+
* step whose model has no build for the elected device's format onto another
|
|
13225
|
+
* enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
|
|
13226
|
+
* ⇒ no jump possible; the step runs on `deviceKey`.
|
|
13227
|
+
*/
|
|
13228
|
+
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
13189
13229
|
});
|
|
13190
13230
|
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;
|
|
13191
13231
|
/**
|
|
@@ -13241,7 +13281,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
13241
13281
|
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({
|
|
13242
13282
|
handle: FrameHandleSchema,
|
|
13243
13283
|
bbox: NativeCropBboxSchema,
|
|
13244
|
-
maxWidth: number().int().positive().optional()
|
|
13284
|
+
maxWidth: number().int().positive().optional(),
|
|
13285
|
+
/**
|
|
13286
|
+
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
13287
|
+
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
13288
|
+
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
13289
|
+
* agent) so the compressed payload fits Moleculer's `maxPacketSize` and
|
|
13290
|
+
* no raw pixels cross the process boundary. Same-node callers omit it
|
|
13291
|
+
* and keep the zero-copy raw `bytes` path. Additive + optional: a
|
|
13292
|
+
* pre-encode runner (version skew) ignores it and returns `bytes`, so
|
|
13293
|
+
* the caller falls back to encoding locally.
|
|
13294
|
+
*/
|
|
13295
|
+
encodeJpeg: boolean().optional()
|
|
13245
13296
|
}), NativeCropResultSchema.nullable()), method(object({
|
|
13246
13297
|
deviceId: number(),
|
|
13247
13298
|
frameHandle: FrameHandleSchema.optional(),
|
|
@@ -19724,7 +19775,8 @@ var MediaFileKindEnum = _enum([
|
|
|
19724
19775
|
"faceCrop",
|
|
19725
19776
|
"plateCrop",
|
|
19726
19777
|
"keyFrame",
|
|
19727
|
-
"keyFrameSmall"
|
|
19778
|
+
"keyFrameSmall",
|
|
19779
|
+
"thumbnailSmall"
|
|
19728
19780
|
]);
|
|
19729
19781
|
var MediaFileSchema = object({
|
|
19730
19782
|
key: string(),
|
|
@@ -20055,7 +20107,16 @@ var PipelineTemplateSchema = object({
|
|
|
20055
20107
|
});
|
|
20056
20108
|
var DeviceStepConfigSchema = object({
|
|
20057
20109
|
modelId: string().optional(),
|
|
20058
|
-
settings: record(string(), unknown()).optional()
|
|
20110
|
+
settings: record(string(), unknown()).optional(),
|
|
20111
|
+
/**
|
|
20112
|
+
* Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
|
|
20113
|
+
* When set, this step runs on the named enabled device of the SAME node
|
|
20114
|
+
* (`<backend>:<device>`) instead of the camera's elected device, bypassing
|
|
20115
|
+
* the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
|
|
20116
|
+
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
20117
|
+
* auto-jumps only when the effective device's format cannot run the step.
|
|
20118
|
+
*/
|
|
20119
|
+
jumpDeviceKey: string().optional()
|
|
20059
20120
|
});
|
|
20060
20121
|
var AgentPipelineSettingsSchema = object({
|
|
20061
20122
|
maxCameras: number().int().nonnegative().nullable().default(null),
|
package/dist/addon.mjs
CHANGED
|
@@ -12583,7 +12583,8 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
12583
12583
|
modelId: string().optional(),
|
|
12584
12584
|
enabled: boolean().default(true),
|
|
12585
12585
|
children: array(PipelineStepInputSchema).optional(),
|
|
12586
|
-
settings: record(string(), unknown()).optional()
|
|
12586
|
+
settings: record(string(), unknown()).optional(),
|
|
12587
|
+
jumpDeviceKey: string().optional()
|
|
12587
12588
|
}));
|
|
12588
12589
|
var ModelSubstitutionSchema = object({
|
|
12589
12590
|
addonId: string(),
|
|
@@ -12922,8 +12923,24 @@ var NativeCropBboxSchema = object({
|
|
|
12922
12923
|
});
|
|
12923
12924
|
/** Result of a best-effort native-resolution crop (`getNativeCrop`). */
|
|
12924
12925
|
var NativeCropResultSchema = object({
|
|
12925
|
-
/**
|
|
12926
|
-
|
|
12926
|
+
/**
|
|
12927
|
+
* Packed rgb (24-bit) pixels of the crop. Present on the DEFAULT (raw) path —
|
|
12928
|
+
* same-node (in-process / UDS) callers get zero-copy RGB and encode locally.
|
|
12929
|
+
* OMITTED when the caller requested `encodeJpeg` (the cross-node compressed
|
|
12930
|
+
* path below), where shipping raw RGB is both an invariant violation and, for
|
|
12931
|
+
* a native full frame (~26 MB at 4K), larger than Moleculer's 10 MB
|
|
12932
|
+
* `maxPacketSize` → the packet is dropped and the call 60s-times-out. That is
|
|
12933
|
+
* the cross-node native-media miss: `bytes` is replaced by `jpeg`.
|
|
12934
|
+
*/
|
|
12935
|
+
bytes: _instanceof(Uint8Array).optional(),
|
|
12936
|
+
/**
|
|
12937
|
+
* Base64 JPEG of the crop — the COMPRESSED cross-node payload. The OWNING node
|
|
12938
|
+
* (which holds the native surface) encodes it in-process, so a native 4K frame
|
|
12939
|
+
* ships as ~0.5–2 MB (well under `maxPacketSize`) and NO raw pixels ever cross
|
|
12940
|
+
* a process boundary (CLAUDE.md invariant #21). Present ONLY when the request
|
|
12941
|
+
* set `encodeJpeg: true`; `bytes` is then absent.
|
|
12942
|
+
*/
|
|
12943
|
+
jpeg: string().optional(),
|
|
12927
12944
|
width: number().int().positive(),
|
|
12928
12945
|
height: number().int().positive(),
|
|
12929
12946
|
/**
|
|
@@ -13069,6 +13086,20 @@ var RunnerFrameSourceSchema = discriminatedUnion("kind", [object({ kind: literal
|
|
|
13069
13086
|
hubHostnameOverride: string().optional()
|
|
13070
13087
|
})]).describe("Per-camera frame-source mode for the runner (P2c)");
|
|
13071
13088
|
/**
|
|
13089
|
+
* One ENABLED inference device on the runner's node, as the step-tree
|
|
13090
|
+
* device-jump resolver sees it (phase 1). The orchestrator populates this
|
|
13091
|
+
* roster on the attach payload whenever the camera is elected onto a specific
|
|
13092
|
+
* `deviceKey` and the node has ≥2 enabled devices — it is the candidate set the
|
|
13093
|
+
* runner auto-jumps an enrichment step to when the elected device's format
|
|
13094
|
+
* cannot run that step's model. `weight`/`maxSessions` mirror the balancer's
|
|
13095
|
+
* per-device knobs so the auto choice is weighted-least-loaded.
|
|
13096
|
+
*/
|
|
13097
|
+
var RunnerInferenceDeviceSchema = object({
|
|
13098
|
+
deviceKey: string(),
|
|
13099
|
+
weight: number().positive().default(1),
|
|
13100
|
+
maxSessions: number().int().positive().nullable().default(null)
|
|
13101
|
+
});
|
|
13102
|
+
/**
|
|
13072
13103
|
* Camera assignment payload sent by `addon-pipeline-orchestrator` to a
|
|
13073
13104
|
* specific runner instance via `attachCamera`. Carries everything the
|
|
13074
13105
|
* runner needs to subscribe to the local broker and execute inference.
|
|
@@ -13186,7 +13217,16 @@ var RunnerCameraConfigSchema = object({
|
|
|
13186
13217
|
* omitted ⇒ the runner's default device. The engine itself stays node-local —
|
|
13187
13218
|
* this only selects WHICH device pool of that node runs the session.
|
|
13188
13219
|
*/
|
|
13189
|
-
deviceKey: string().optional()
|
|
13220
|
+
deviceKey: string().optional(),
|
|
13221
|
+
/**
|
|
13222
|
+
* Step-tree device-jump roster (phase 1): the node's ENABLED inference
|
|
13223
|
+
* devices, populated by the orchestrator ONLY when `deviceKey` is set and the
|
|
13224
|
+
* node has ≥2 enabled devices. The runner uses it to AUTO-jump an enrichment
|
|
13225
|
+
* step whose model has no build for the elected device's format onto another
|
|
13226
|
+
* enabled device of the SAME node (weighted-least-loaded). Absent/single-entry
|
|
13227
|
+
* ⇒ no jump possible; the step runs on `deviceKey`.
|
|
13228
|
+
*/
|
|
13229
|
+
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
13190
13230
|
});
|
|
13191
13231
|
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;
|
|
13192
13232
|
/**
|
|
@@ -13242,7 +13282,18 @@ var RunnerLocalMetricsSchema = object({
|
|
|
13242
13282
|
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({
|
|
13243
13283
|
handle: FrameHandleSchema,
|
|
13244
13284
|
bbox: NativeCropBboxSchema,
|
|
13245
|
-
maxWidth: number().int().positive().optional()
|
|
13285
|
+
maxWidth: number().int().positive().optional(),
|
|
13286
|
+
/**
|
|
13287
|
+
* When `true`, the runner encodes the resolved crop to JPEG ON THE
|
|
13288
|
+
* OWNING NODE and returns it in `jpeg` (base64) INSTEAD of raw `bytes`.
|
|
13289
|
+
* Callers set this for CROSS-NODE fetches (`handle.nodeId` is a remote
|
|
13290
|
+
* agent) so the compressed payload fits Moleculer's `maxPacketSize` and
|
|
13291
|
+
* no raw pixels cross the process boundary. Same-node callers omit it
|
|
13292
|
+
* and keep the zero-copy raw `bytes` path. Additive + optional: a
|
|
13293
|
+
* pre-encode runner (version skew) ignores it and returns `bytes`, so
|
|
13294
|
+
* the caller falls back to encoding locally.
|
|
13295
|
+
*/
|
|
13296
|
+
encodeJpeg: boolean().optional()
|
|
13246
13297
|
}), NativeCropResultSchema.nullable()), method(object({
|
|
13247
13298
|
deviceId: number(),
|
|
13248
13299
|
frameHandle: FrameHandleSchema.optional(),
|
|
@@ -19725,7 +19776,8 @@ var MediaFileKindEnum = _enum([
|
|
|
19725
19776
|
"faceCrop",
|
|
19726
19777
|
"plateCrop",
|
|
19727
19778
|
"keyFrame",
|
|
19728
|
-
"keyFrameSmall"
|
|
19779
|
+
"keyFrameSmall",
|
|
19780
|
+
"thumbnailSmall"
|
|
19729
19781
|
]);
|
|
19730
19782
|
var MediaFileSchema = object({
|
|
19731
19783
|
key: string(),
|
|
@@ -20056,7 +20108,16 @@ var PipelineTemplateSchema = object({
|
|
|
20056
20108
|
});
|
|
20057
20109
|
var DeviceStepConfigSchema = object({
|
|
20058
20110
|
modelId: string().optional(),
|
|
20059
|
-
settings: record(string(), unknown()).optional()
|
|
20111
|
+
settings: record(string(), unknown()).optional(),
|
|
20112
|
+
/**
|
|
20113
|
+
* Step-tree device jump (same-node, phase 1) — OPTIONAL manual override.
|
|
20114
|
+
* When set, this step runs on the named enabled device of the SAME node
|
|
20115
|
+
* (`<backend>:<device>`) instead of the camera's elected device, bypassing
|
|
20116
|
+
* the runtime AUTO-jump. The orchestrator rejects a `jumpDeviceKey` pointing
|
|
20117
|
+
* at a disabled/absent device on that node at save time. Absent ⇒ the runner
|
|
20118
|
+
* auto-jumps only when the effective device's format cannot run the step.
|
|
20119
|
+
*/
|
|
20120
|
+
jumpDeviceKey: string().optional()
|
|
20060
20121
|
});
|
|
20061
20122
|
var AgentPipelineSettingsSchema = object({
|
|
20062
20123
|
maxCameras: number().int().nonnegative().nullable().default(null),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-hikvision",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|