@camstack/addon-provider-rtsp 1.1.14 → 1.1.16
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 +45 -43
- package/dist/addon.mjs +45 -43
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -17840,7 +17840,17 @@ var AgentAddonConfigSchema = object({
|
|
|
17840
17840
|
});
|
|
17841
17841
|
var AgentPipelineSettingsSchema = object({
|
|
17842
17842
|
addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
|
|
17843
|
-
maxCameras: number().int().nonnegative().nullable().default(null)
|
|
17843
|
+
maxCameras: number().int().nonnegative().nullable().default(null),
|
|
17844
|
+
/** Per-node detection weight (relative share for the quota balancer). */
|
|
17845
|
+
detectWeight: number().positive().optional(),
|
|
17846
|
+
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
17847
|
+
detect: boolean().optional(),
|
|
17848
|
+
/** Node is eligible to host decoder sessions. */
|
|
17849
|
+
decode: boolean().optional(),
|
|
17850
|
+
/** Node is eligible to run audio-analyzer sessions. */
|
|
17851
|
+
audio: boolean().optional(),
|
|
17852
|
+
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
17853
|
+
ingest: boolean().optional()
|
|
17844
17854
|
});
|
|
17845
17855
|
var CameraPipelineForAgentSchema = object({
|
|
17846
17856
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -17915,7 +17925,10 @@ var AgentLoadSummarySchema = object({
|
|
|
17915
17925
|
online: boolean(),
|
|
17916
17926
|
load: RunnerLocalLoadSchema,
|
|
17917
17927
|
/** Computed score used by the L2 capacity balancer (lower = less loaded). */
|
|
17918
|
-
score: number()
|
|
17928
|
+
score: number(),
|
|
17929
|
+
/** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
|
|
17930
|
+
* when not yet probed — for the cluster Pipeline table UI (P0.2). */
|
|
17931
|
+
decodeHwaccel: string().nullable()
|
|
17919
17932
|
});
|
|
17920
17933
|
/**
|
|
17921
17934
|
* Aggregate metrics across the whole detection cluster. Replaces the legacy
|
|
@@ -18143,6 +18156,21 @@ method(object({
|
|
|
18143
18156
|
}), object({ success: literal(true) }), {
|
|
18144
18157
|
kind: "mutation",
|
|
18145
18158
|
auth: "admin"
|
|
18159
|
+
}), method(object({
|
|
18160
|
+
agentNodeId: string(),
|
|
18161
|
+
detectWeight: number().positive().nullable()
|
|
18162
|
+
}), object({ success: literal(true) }), {
|
|
18163
|
+
kind: "mutation",
|
|
18164
|
+
auth: "admin"
|
|
18165
|
+
}), method(object({
|
|
18166
|
+
agentNodeId: string(),
|
|
18167
|
+
detect: boolean().nullable().optional(),
|
|
18168
|
+
decode: boolean().nullable().optional(),
|
|
18169
|
+
audio: boolean().nullable().optional(),
|
|
18170
|
+
ingest: boolean().nullable().optional()
|
|
18171
|
+
}), object({ success: literal(true) }), {
|
|
18172
|
+
kind: "mutation",
|
|
18173
|
+
auth: "admin"
|
|
18146
18174
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18147
18175
|
deviceId: number(),
|
|
18148
18176
|
addonId: string(),
|
|
@@ -20494,7 +20522,7 @@ var HardwareEncoderIdSchema = _enum([
|
|
|
20494
20522
|
"libx264",
|
|
20495
20523
|
"libx265"
|
|
20496
20524
|
]);
|
|
20497
|
-
|
|
20525
|
+
object({
|
|
20498
20526
|
encoders: array(object({
|
|
20499
20527
|
encoder: HardwareEncoderIdSchema,
|
|
20500
20528
|
codec: _enum(["H264", "H265"]),
|
|
@@ -20513,15 +20541,7 @@ var HardwareEncodersSchema = object({
|
|
|
20513
20541
|
defaultH265: HardwareEncoderIdSchema,
|
|
20514
20542
|
probedAt: number()
|
|
20515
20543
|
});
|
|
20516
|
-
|
|
20517
|
-
* Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
|
|
20518
|
-
* methods the configured ffmpeg binary actually supports (parsed from
|
|
20519
|
-
* `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
|
|
20520
|
-
* egress never spends a spawn on a backend this build cannot offer. Per-stream
|
|
20521
|
-
* decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
|
|
20522
|
-
* software fallback — this only filters out wholly-unsupported backends.
|
|
20523
|
-
*/
|
|
20524
|
-
var HardwareDecodeAccelsSchema = object({
|
|
20544
|
+
object({
|
|
20525
20545
|
methods: array(string()).readonly(),
|
|
20526
20546
|
probedAt: number()
|
|
20527
20547
|
});
|
|
@@ -20584,13 +20604,7 @@ var ResolvedInferenceConfigSchema = object({
|
|
|
20584
20604
|
format: ModelFormatSchema,
|
|
20585
20605
|
reason: string()
|
|
20586
20606
|
});
|
|
20587
|
-
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema)
|
|
20588
|
-
kind: "mutation",
|
|
20589
|
-
auth: "admin"
|
|
20590
|
-
}), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
|
|
20591
|
-
kind: "mutation",
|
|
20592
|
-
auth: "admin"
|
|
20593
|
-
});
|
|
20607
|
+
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
|
|
20594
20608
|
var PtzPresetSchema = object({
|
|
20595
20609
|
id: string(),
|
|
20596
20610
|
name: string()
|
|
@@ -24072,6 +24086,18 @@ Object.freeze({
|
|
|
24072
24086
|
addonId: null,
|
|
24073
24087
|
access: "create"
|
|
24074
24088
|
},
|
|
24089
|
+
"pipelineOrchestrator.setAgentCapabilities": {
|
|
24090
|
+
capName: "pipeline-orchestrator",
|
|
24091
|
+
capScope: "system",
|
|
24092
|
+
addonId: null,
|
|
24093
|
+
access: "create"
|
|
24094
|
+
},
|
|
24095
|
+
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
24096
|
+
capName: "pipeline-orchestrator",
|
|
24097
|
+
capScope: "system",
|
|
24098
|
+
addonId: null,
|
|
24099
|
+
access: "create"
|
|
24100
|
+
},
|
|
24075
24101
|
"pipelineOrchestrator.setAgentMaxCameras": {
|
|
24076
24102
|
capName: "pipeline-orchestrator",
|
|
24077
24103
|
capScope: "system",
|
|
@@ -24228,30 +24254,6 @@ Object.freeze({
|
|
|
24228
24254
|
addonId: null,
|
|
24229
24255
|
access: "view"
|
|
24230
24256
|
},
|
|
24231
|
-
"platformProbe.getHardwareDecodeAccels": {
|
|
24232
|
-
capName: "platform-probe",
|
|
24233
|
-
capScope: "system",
|
|
24234
|
-
addonId: null,
|
|
24235
|
-
access: "view"
|
|
24236
|
-
},
|
|
24237
|
-
"platformProbe.getHardwareEncoders": {
|
|
24238
|
-
capName: "platform-probe",
|
|
24239
|
-
capScope: "system",
|
|
24240
|
-
addonId: null,
|
|
24241
|
-
access: "view"
|
|
24242
|
-
},
|
|
24243
|
-
"platformProbe.refreshHardwareDecodeAccels": {
|
|
24244
|
-
capName: "platform-probe",
|
|
24245
|
-
capScope: "system",
|
|
24246
|
-
addonId: null,
|
|
24247
|
-
access: "create"
|
|
24248
|
-
},
|
|
24249
|
-
"platformProbe.refreshHardwareEncoders": {
|
|
24250
|
-
capName: "platform-probe",
|
|
24251
|
-
capScope: "system",
|
|
24252
|
-
addonId: null,
|
|
24253
|
-
access: "create"
|
|
24254
|
-
},
|
|
24255
24257
|
"platformProbe.resolveHwAccel": {
|
|
24256
24258
|
capName: "platform-probe",
|
|
24257
24259
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -17839,7 +17839,17 @@ var AgentAddonConfigSchema = object({
|
|
|
17839
17839
|
});
|
|
17840
17840
|
var AgentPipelineSettingsSchema = object({
|
|
17841
17841
|
addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
|
|
17842
|
-
maxCameras: number().int().nonnegative().nullable().default(null)
|
|
17842
|
+
maxCameras: number().int().nonnegative().nullable().default(null),
|
|
17843
|
+
/** Per-node detection weight (relative share for the quota balancer). */
|
|
17844
|
+
detectWeight: number().positive().optional(),
|
|
17845
|
+
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
17846
|
+
detect: boolean().optional(),
|
|
17847
|
+
/** Node is eligible to host decoder sessions. */
|
|
17848
|
+
decode: boolean().optional(),
|
|
17849
|
+
/** Node is eligible to run audio-analyzer sessions. */
|
|
17850
|
+
audio: boolean().optional(),
|
|
17851
|
+
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
17852
|
+
ingest: boolean().optional()
|
|
17843
17853
|
});
|
|
17844
17854
|
var CameraPipelineForAgentSchema = object({
|
|
17845
17855
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -17914,7 +17924,10 @@ var AgentLoadSummarySchema = object({
|
|
|
17914
17924
|
online: boolean(),
|
|
17915
17925
|
load: RunnerLocalLoadSchema,
|
|
17916
17926
|
/** Computed score used by the L2 capacity balancer (lower = less loaded). */
|
|
17917
|
-
score: number()
|
|
17927
|
+
score: number(),
|
|
17928
|
+
/** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
|
|
17929
|
+
* when not yet probed — for the cluster Pipeline table UI (P0.2). */
|
|
17930
|
+
decodeHwaccel: string().nullable()
|
|
17918
17931
|
});
|
|
17919
17932
|
/**
|
|
17920
17933
|
* Aggregate metrics across the whole detection cluster. Replaces the legacy
|
|
@@ -18142,6 +18155,21 @@ method(object({
|
|
|
18142
18155
|
}), object({ success: literal(true) }), {
|
|
18143
18156
|
kind: "mutation",
|
|
18144
18157
|
auth: "admin"
|
|
18158
|
+
}), method(object({
|
|
18159
|
+
agentNodeId: string(),
|
|
18160
|
+
detectWeight: number().positive().nullable()
|
|
18161
|
+
}), object({ success: literal(true) }), {
|
|
18162
|
+
kind: "mutation",
|
|
18163
|
+
auth: "admin"
|
|
18164
|
+
}), method(object({
|
|
18165
|
+
agentNodeId: string(),
|
|
18166
|
+
detect: boolean().nullable().optional(),
|
|
18167
|
+
decode: boolean().nullable().optional(),
|
|
18168
|
+
audio: boolean().nullable().optional(),
|
|
18169
|
+
ingest: boolean().nullable().optional()
|
|
18170
|
+
}), object({ success: literal(true) }), {
|
|
18171
|
+
kind: "mutation",
|
|
18172
|
+
auth: "admin"
|
|
18145
18173
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18146
18174
|
deviceId: number(),
|
|
18147
18175
|
addonId: string(),
|
|
@@ -20493,7 +20521,7 @@ var HardwareEncoderIdSchema = _enum([
|
|
|
20493
20521
|
"libx264",
|
|
20494
20522
|
"libx265"
|
|
20495
20523
|
]);
|
|
20496
|
-
|
|
20524
|
+
object({
|
|
20497
20525
|
encoders: array(object({
|
|
20498
20526
|
encoder: HardwareEncoderIdSchema,
|
|
20499
20527
|
codec: _enum(["H264", "H265"]),
|
|
@@ -20512,15 +20540,7 @@ var HardwareEncodersSchema = object({
|
|
|
20512
20540
|
defaultH265: HardwareEncoderIdSchema,
|
|
20513
20541
|
probedAt: number()
|
|
20514
20542
|
});
|
|
20515
|
-
|
|
20516
|
-
* Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
|
|
20517
|
-
* methods the configured ffmpeg binary actually supports (parsed from
|
|
20518
|
-
* `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
|
|
20519
|
-
* egress never spends a spawn on a backend this build cannot offer. Per-stream
|
|
20520
|
-
* decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
|
|
20521
|
-
* software fallback — this only filters out wholly-unsupported backends.
|
|
20522
|
-
*/
|
|
20523
|
-
var HardwareDecodeAccelsSchema = object({
|
|
20543
|
+
object({
|
|
20524
20544
|
methods: array(string()).readonly(),
|
|
20525
20545
|
probedAt: number()
|
|
20526
20546
|
});
|
|
@@ -20583,13 +20603,7 @@ var ResolvedInferenceConfigSchema = object({
|
|
|
20583
20603
|
format: ModelFormatSchema,
|
|
20584
20604
|
reason: string()
|
|
20585
20605
|
});
|
|
20586
|
-
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema)
|
|
20587
|
-
kind: "mutation",
|
|
20588
|
-
auth: "admin"
|
|
20589
|
-
}), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
|
|
20590
|
-
kind: "mutation",
|
|
20591
|
-
auth: "admin"
|
|
20592
|
-
});
|
|
20606
|
+
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
|
|
20593
20607
|
var PtzPresetSchema = object({
|
|
20594
20608
|
id: string(),
|
|
20595
20609
|
name: string()
|
|
@@ -24071,6 +24085,18 @@ Object.freeze({
|
|
|
24071
24085
|
addonId: null,
|
|
24072
24086
|
access: "create"
|
|
24073
24087
|
},
|
|
24088
|
+
"pipelineOrchestrator.setAgentCapabilities": {
|
|
24089
|
+
capName: "pipeline-orchestrator",
|
|
24090
|
+
capScope: "system",
|
|
24091
|
+
addonId: null,
|
|
24092
|
+
access: "create"
|
|
24093
|
+
},
|
|
24094
|
+
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
24095
|
+
capName: "pipeline-orchestrator",
|
|
24096
|
+
capScope: "system",
|
|
24097
|
+
addonId: null,
|
|
24098
|
+
access: "create"
|
|
24099
|
+
},
|
|
24074
24100
|
"pipelineOrchestrator.setAgentMaxCameras": {
|
|
24075
24101
|
capName: "pipeline-orchestrator",
|
|
24076
24102
|
capScope: "system",
|
|
@@ -24227,30 +24253,6 @@ Object.freeze({
|
|
|
24227
24253
|
addonId: null,
|
|
24228
24254
|
access: "view"
|
|
24229
24255
|
},
|
|
24230
|
-
"platformProbe.getHardwareDecodeAccels": {
|
|
24231
|
-
capName: "platform-probe",
|
|
24232
|
-
capScope: "system",
|
|
24233
|
-
addonId: null,
|
|
24234
|
-
access: "view"
|
|
24235
|
-
},
|
|
24236
|
-
"platformProbe.getHardwareEncoders": {
|
|
24237
|
-
capName: "platform-probe",
|
|
24238
|
-
capScope: "system",
|
|
24239
|
-
addonId: null,
|
|
24240
|
-
access: "view"
|
|
24241
|
-
},
|
|
24242
|
-
"platformProbe.refreshHardwareDecodeAccels": {
|
|
24243
|
-
capName: "platform-probe",
|
|
24244
|
-
capScope: "system",
|
|
24245
|
-
addonId: null,
|
|
24246
|
-
access: "create"
|
|
24247
|
-
},
|
|
24248
|
-
"platformProbe.refreshHardwareEncoders": {
|
|
24249
|
-
capName: "platform-probe",
|
|
24250
|
-
capScope: "system",
|
|
24251
|
-
addonId: null,
|
|
24252
|
-
access: "create"
|
|
24253
|
-
},
|
|
24254
24256
|
"platformProbe.resolveHwAccel": {
|
|
24255
24257
|
capName: "platform-probe",
|
|
24256
24258
|
capScope: "system",
|