@camstack/addon-matter-broker 0.1.12 → 0.1.14
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
|
@@ -17900,7 +17900,17 @@ var AgentAddonConfigSchema = object({
|
|
|
17900
17900
|
});
|
|
17901
17901
|
var AgentPipelineSettingsSchema = object({
|
|
17902
17902
|
addonDefaults: record(string$2(), AgentAddonConfigSchema).readonly(),
|
|
17903
|
-
maxCameras: number().int().nonnegative().nullable().default(null)
|
|
17903
|
+
maxCameras: number().int().nonnegative().nullable().default(null),
|
|
17904
|
+
/** Per-node detection weight (relative share for the quota balancer). */
|
|
17905
|
+
detectWeight: number().positive().optional(),
|
|
17906
|
+
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
17907
|
+
detect: boolean().optional(),
|
|
17908
|
+
/** Node is eligible to host decoder sessions. */
|
|
17909
|
+
decode: boolean().optional(),
|
|
17910
|
+
/** Node is eligible to run audio-analyzer sessions. */
|
|
17911
|
+
audio: boolean().optional(),
|
|
17912
|
+
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
17913
|
+
ingest: boolean().optional()
|
|
17904
17914
|
});
|
|
17905
17915
|
var CameraPipelineForAgentSchema = object({
|
|
17906
17916
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -17975,7 +17985,10 @@ var AgentLoadSummarySchema = object({
|
|
|
17975
17985
|
online: boolean(),
|
|
17976
17986
|
load: RunnerLocalLoadSchema,
|
|
17977
17987
|
/** Computed score used by the L2 capacity balancer (lower = less loaded). */
|
|
17978
|
-
score: number()
|
|
17988
|
+
score: number(),
|
|
17989
|
+
/** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
|
|
17990
|
+
* when not yet probed — for the cluster Pipeline table UI (P0.2). */
|
|
17991
|
+
decodeHwaccel: string$2().nullable()
|
|
17979
17992
|
});
|
|
17980
17993
|
/**
|
|
17981
17994
|
* Aggregate metrics across the whole detection cluster. Replaces the legacy
|
|
@@ -18203,6 +18216,21 @@ method(object({
|
|
|
18203
18216
|
}), object({ success: literal(true) }), {
|
|
18204
18217
|
kind: "mutation",
|
|
18205
18218
|
auth: "admin"
|
|
18219
|
+
}), method(object({
|
|
18220
|
+
agentNodeId: string$2(),
|
|
18221
|
+
detectWeight: number().positive().nullable()
|
|
18222
|
+
}), object({ success: literal(true) }), {
|
|
18223
|
+
kind: "mutation",
|
|
18224
|
+
auth: "admin"
|
|
18225
|
+
}), method(object({
|
|
18226
|
+
agentNodeId: string$2(),
|
|
18227
|
+
detect: boolean().nullable().optional(),
|
|
18228
|
+
decode: boolean().nullable().optional(),
|
|
18229
|
+
audio: boolean().nullable().optional(),
|
|
18230
|
+
ingest: boolean().nullable().optional()
|
|
18231
|
+
}), object({ success: literal(true) }), {
|
|
18232
|
+
kind: "mutation",
|
|
18233
|
+
auth: "admin"
|
|
18206
18234
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18207
18235
|
deviceId: number(),
|
|
18208
18236
|
addonId: string$2(),
|
|
@@ -20528,7 +20556,7 @@ var HardwareEncoderIdSchema = _enum([
|
|
|
20528
20556
|
"libx264",
|
|
20529
20557
|
"libx265"
|
|
20530
20558
|
]);
|
|
20531
|
-
|
|
20559
|
+
object({
|
|
20532
20560
|
encoders: array(object({
|
|
20533
20561
|
encoder: HardwareEncoderIdSchema,
|
|
20534
20562
|
codec: _enum(["H264", "H265"]),
|
|
@@ -20547,15 +20575,7 @@ var HardwareEncodersSchema = object({
|
|
|
20547
20575
|
defaultH265: HardwareEncoderIdSchema,
|
|
20548
20576
|
probedAt: number()
|
|
20549
20577
|
});
|
|
20550
|
-
|
|
20551
|
-
* Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
|
|
20552
|
-
* methods the configured ffmpeg binary actually supports (parsed from
|
|
20553
|
-
* `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
|
|
20554
|
-
* egress never spends a spawn on a backend this build cannot offer. Per-stream
|
|
20555
|
-
* decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
|
|
20556
|
-
* software fallback — this only filters out wholly-unsupported backends.
|
|
20557
|
-
*/
|
|
20558
|
-
var HardwareDecodeAccelsSchema = object({
|
|
20578
|
+
object({
|
|
20559
20579
|
methods: array(string$2()).readonly(),
|
|
20560
20580
|
probedAt: number()
|
|
20561
20581
|
});
|
|
@@ -20618,13 +20638,7 @@ var ResolvedInferenceConfigSchema = object({
|
|
|
20618
20638
|
format: ModelFormatSchema,
|
|
20619
20639
|
reason: string$2()
|
|
20620
20640
|
});
|
|
20621
|
-
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema)
|
|
20622
|
-
kind: "mutation",
|
|
20623
|
-
auth: "admin"
|
|
20624
|
-
}), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
|
|
20625
|
-
kind: "mutation",
|
|
20626
|
-
auth: "admin"
|
|
20627
|
-
});
|
|
20641
|
+
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
|
|
20628
20642
|
var PtzPresetSchema = object({
|
|
20629
20643
|
id: string$2(),
|
|
20630
20644
|
name: string$2()
|
|
@@ -24093,6 +24107,18 @@ Object.freeze({
|
|
|
24093
24107
|
addonId: null,
|
|
24094
24108
|
access: "create"
|
|
24095
24109
|
},
|
|
24110
|
+
"pipelineOrchestrator.setAgentCapabilities": {
|
|
24111
|
+
capName: "pipeline-orchestrator",
|
|
24112
|
+
capScope: "system",
|
|
24113
|
+
addonId: null,
|
|
24114
|
+
access: "create"
|
|
24115
|
+
},
|
|
24116
|
+
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
24117
|
+
capName: "pipeline-orchestrator",
|
|
24118
|
+
capScope: "system",
|
|
24119
|
+
addonId: null,
|
|
24120
|
+
access: "create"
|
|
24121
|
+
},
|
|
24096
24122
|
"pipelineOrchestrator.setAgentMaxCameras": {
|
|
24097
24123
|
capName: "pipeline-orchestrator",
|
|
24098
24124
|
capScope: "system",
|
|
@@ -24249,30 +24275,6 @@ Object.freeze({
|
|
|
24249
24275
|
addonId: null,
|
|
24250
24276
|
access: "view"
|
|
24251
24277
|
},
|
|
24252
|
-
"platformProbe.getHardwareDecodeAccels": {
|
|
24253
|
-
capName: "platform-probe",
|
|
24254
|
-
capScope: "system",
|
|
24255
|
-
addonId: null,
|
|
24256
|
-
access: "view"
|
|
24257
|
-
},
|
|
24258
|
-
"platformProbe.getHardwareEncoders": {
|
|
24259
|
-
capName: "platform-probe",
|
|
24260
|
-
capScope: "system",
|
|
24261
|
-
addonId: null,
|
|
24262
|
-
access: "view"
|
|
24263
|
-
},
|
|
24264
|
-
"platformProbe.refreshHardwareDecodeAccels": {
|
|
24265
|
-
capName: "platform-probe",
|
|
24266
|
-
capScope: "system",
|
|
24267
|
-
addonId: null,
|
|
24268
|
-
access: "create"
|
|
24269
|
-
},
|
|
24270
|
-
"platformProbe.refreshHardwareEncoders": {
|
|
24271
|
-
capName: "platform-probe",
|
|
24272
|
-
capScope: "system",
|
|
24273
|
-
addonId: null,
|
|
24274
|
-
access: "create"
|
|
24275
|
-
},
|
|
24276
24278
|
"platformProbe.resolveHwAccel": {
|
|
24277
24279
|
capName: "platform-probe",
|
|
24278
24280
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -17898,7 +17898,17 @@ var AgentAddonConfigSchema = object({
|
|
|
17898
17898
|
});
|
|
17899
17899
|
var AgentPipelineSettingsSchema = object({
|
|
17900
17900
|
addonDefaults: record(string$2(), AgentAddonConfigSchema).readonly(),
|
|
17901
|
-
maxCameras: number().int().nonnegative().nullable().default(null)
|
|
17901
|
+
maxCameras: number().int().nonnegative().nullable().default(null),
|
|
17902
|
+
/** Per-node detection weight (relative share for the quota balancer). */
|
|
17903
|
+
detectWeight: number().positive().optional(),
|
|
17904
|
+
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
17905
|
+
detect: boolean().optional(),
|
|
17906
|
+
/** Node is eligible to host decoder sessions. */
|
|
17907
|
+
decode: boolean().optional(),
|
|
17908
|
+
/** Node is eligible to run audio-analyzer sessions. */
|
|
17909
|
+
audio: boolean().optional(),
|
|
17910
|
+
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
17911
|
+
ingest: boolean().optional()
|
|
17902
17912
|
});
|
|
17903
17913
|
var CameraPipelineForAgentSchema = object({
|
|
17904
17914
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -17973,7 +17983,10 @@ var AgentLoadSummarySchema = object({
|
|
|
17973
17983
|
online: boolean(),
|
|
17974
17984
|
load: RunnerLocalLoadSchema,
|
|
17975
17985
|
/** Computed score used by the L2 capacity balancer (lower = less loaded). */
|
|
17976
|
-
score: number()
|
|
17986
|
+
score: number(),
|
|
17987
|
+
/** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
|
|
17988
|
+
* when not yet probed — for the cluster Pipeline table UI (P0.2). */
|
|
17989
|
+
decodeHwaccel: string$2().nullable()
|
|
17977
17990
|
});
|
|
17978
17991
|
/**
|
|
17979
17992
|
* Aggregate metrics across the whole detection cluster. Replaces the legacy
|
|
@@ -18201,6 +18214,21 @@ method(object({
|
|
|
18201
18214
|
}), object({ success: literal(true) }), {
|
|
18202
18215
|
kind: "mutation",
|
|
18203
18216
|
auth: "admin"
|
|
18217
|
+
}), method(object({
|
|
18218
|
+
agentNodeId: string$2(),
|
|
18219
|
+
detectWeight: number().positive().nullable()
|
|
18220
|
+
}), object({ success: literal(true) }), {
|
|
18221
|
+
kind: "mutation",
|
|
18222
|
+
auth: "admin"
|
|
18223
|
+
}), method(object({
|
|
18224
|
+
agentNodeId: string$2(),
|
|
18225
|
+
detect: boolean().nullable().optional(),
|
|
18226
|
+
decode: boolean().nullable().optional(),
|
|
18227
|
+
audio: boolean().nullable().optional(),
|
|
18228
|
+
ingest: boolean().nullable().optional()
|
|
18229
|
+
}), object({ success: literal(true) }), {
|
|
18230
|
+
kind: "mutation",
|
|
18231
|
+
auth: "admin"
|
|
18204
18232
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18205
18233
|
deviceId: number(),
|
|
18206
18234
|
addonId: string$2(),
|
|
@@ -20526,7 +20554,7 @@ var HardwareEncoderIdSchema = _enum([
|
|
|
20526
20554
|
"libx264",
|
|
20527
20555
|
"libx265"
|
|
20528
20556
|
]);
|
|
20529
|
-
|
|
20557
|
+
object({
|
|
20530
20558
|
encoders: array(object({
|
|
20531
20559
|
encoder: HardwareEncoderIdSchema,
|
|
20532
20560
|
codec: _enum(["H264", "H265"]),
|
|
@@ -20545,15 +20573,7 @@ var HardwareEncodersSchema = object({
|
|
|
20545
20573
|
defaultH265: HardwareEncoderIdSchema,
|
|
20546
20574
|
probedAt: number()
|
|
20547
20575
|
});
|
|
20548
|
-
|
|
20549
|
-
* Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
|
|
20550
|
-
* methods the configured ffmpeg binary actually supports (parsed from
|
|
20551
|
-
* `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
|
|
20552
|
-
* egress never spends a spawn on a backend this build cannot offer. Per-stream
|
|
20553
|
-
* decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
|
|
20554
|
-
* software fallback — this only filters out wholly-unsupported backends.
|
|
20555
|
-
*/
|
|
20556
|
-
var HardwareDecodeAccelsSchema = object({
|
|
20576
|
+
object({
|
|
20557
20577
|
methods: array(string$2()).readonly(),
|
|
20558
20578
|
probedAt: number()
|
|
20559
20579
|
});
|
|
@@ -20616,13 +20636,7 @@ var ResolvedInferenceConfigSchema = object({
|
|
|
20616
20636
|
format: ModelFormatSchema,
|
|
20617
20637
|
reason: string$2()
|
|
20618
20638
|
});
|
|
20619
|
-
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema)
|
|
20620
|
-
kind: "mutation",
|
|
20621
|
-
auth: "admin"
|
|
20622
|
-
}), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
|
|
20623
|
-
kind: "mutation",
|
|
20624
|
-
auth: "admin"
|
|
20625
|
-
});
|
|
20639
|
+
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
|
|
20626
20640
|
var PtzPresetSchema = object({
|
|
20627
20641
|
id: string$2(),
|
|
20628
20642
|
name: string$2()
|
|
@@ -24091,6 +24105,18 @@ Object.freeze({
|
|
|
24091
24105
|
addonId: null,
|
|
24092
24106
|
access: "create"
|
|
24093
24107
|
},
|
|
24108
|
+
"pipelineOrchestrator.setAgentCapabilities": {
|
|
24109
|
+
capName: "pipeline-orchestrator",
|
|
24110
|
+
capScope: "system",
|
|
24111
|
+
addonId: null,
|
|
24112
|
+
access: "create"
|
|
24113
|
+
},
|
|
24114
|
+
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
24115
|
+
capName: "pipeline-orchestrator",
|
|
24116
|
+
capScope: "system",
|
|
24117
|
+
addonId: null,
|
|
24118
|
+
access: "create"
|
|
24119
|
+
},
|
|
24094
24120
|
"pipelineOrchestrator.setAgentMaxCameras": {
|
|
24095
24121
|
capName: "pipeline-orchestrator",
|
|
24096
24122
|
capScope: "system",
|
|
@@ -24247,30 +24273,6 @@ Object.freeze({
|
|
|
24247
24273
|
addonId: null,
|
|
24248
24274
|
access: "view"
|
|
24249
24275
|
},
|
|
24250
|
-
"platformProbe.getHardwareDecodeAccels": {
|
|
24251
|
-
capName: "platform-probe",
|
|
24252
|
-
capScope: "system",
|
|
24253
|
-
addonId: null,
|
|
24254
|
-
access: "view"
|
|
24255
|
-
},
|
|
24256
|
-
"platformProbe.getHardwareEncoders": {
|
|
24257
|
-
capName: "platform-probe",
|
|
24258
|
-
capScope: "system",
|
|
24259
|
-
addonId: null,
|
|
24260
|
-
access: "view"
|
|
24261
|
-
},
|
|
24262
|
-
"platformProbe.refreshHardwareDecodeAccels": {
|
|
24263
|
-
capName: "platform-probe",
|
|
24264
|
-
capScope: "system",
|
|
24265
|
-
addonId: null,
|
|
24266
|
-
access: "create"
|
|
24267
|
-
},
|
|
24268
|
-
"platformProbe.refreshHardwareEncoders": {
|
|
24269
|
-
capName: "platform-probe",
|
|
24270
|
-
capScope: "system",
|
|
24271
|
-
addonId: null,
|
|
24272
|
-
access: "create"
|
|
24273
|
-
},
|
|
24274
24276
|
"platformProbe.resolveHwAccel": {
|
|
24275
24277
|
capName: "platform-probe",
|
|
24276
24278
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-matter-broker",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Matter broker addon for CamStack — owns a Matter fabric (commissioning + the long-lived controller) via the matter.js controller and brokers commissioned Matter nodes into CamStack",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|