@camstack/addon-provider-dreame 0.1.21 → 0.1.23
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
|
@@ -17875,7 +17875,17 @@ var AgentAddonConfigSchema = object({
|
|
|
17875
17875
|
});
|
|
17876
17876
|
var AgentPipelineSettingsSchema = object({
|
|
17877
17877
|
addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
|
|
17878
|
-
maxCameras: number().int().nonnegative().nullable().default(null)
|
|
17878
|
+
maxCameras: number().int().nonnegative().nullable().default(null),
|
|
17879
|
+
/** Per-node detection weight (relative share for the quota balancer). */
|
|
17880
|
+
detectWeight: number().positive().optional(),
|
|
17881
|
+
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
17882
|
+
detect: boolean().optional(),
|
|
17883
|
+
/** Node is eligible to host decoder sessions. */
|
|
17884
|
+
decode: boolean().optional(),
|
|
17885
|
+
/** Node is eligible to run audio-analyzer sessions. */
|
|
17886
|
+
audio: boolean().optional(),
|
|
17887
|
+
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
17888
|
+
ingest: boolean().optional()
|
|
17879
17889
|
});
|
|
17880
17890
|
var CameraPipelineForAgentSchema = object({
|
|
17881
17891
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -17950,7 +17960,10 @@ var AgentLoadSummarySchema = object({
|
|
|
17950
17960
|
online: boolean(),
|
|
17951
17961
|
load: RunnerLocalLoadSchema,
|
|
17952
17962
|
/** Computed score used by the L2 capacity balancer (lower = less loaded). */
|
|
17953
|
-
score: number()
|
|
17963
|
+
score: number(),
|
|
17964
|
+
/** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
|
|
17965
|
+
* when not yet probed — for the cluster Pipeline table UI (P0.2). */
|
|
17966
|
+
decodeHwaccel: string().nullable()
|
|
17954
17967
|
});
|
|
17955
17968
|
/**
|
|
17956
17969
|
* Aggregate metrics across the whole detection cluster. Replaces the legacy
|
|
@@ -18178,6 +18191,21 @@ method(object({
|
|
|
18178
18191
|
}), object({ success: literal(true) }), {
|
|
18179
18192
|
kind: "mutation",
|
|
18180
18193
|
auth: "admin"
|
|
18194
|
+
}), method(object({
|
|
18195
|
+
agentNodeId: string(),
|
|
18196
|
+
detectWeight: number().positive().nullable()
|
|
18197
|
+
}), object({ success: literal(true) }), {
|
|
18198
|
+
kind: "mutation",
|
|
18199
|
+
auth: "admin"
|
|
18200
|
+
}), method(object({
|
|
18201
|
+
agentNodeId: string(),
|
|
18202
|
+
detect: boolean().nullable().optional(),
|
|
18203
|
+
decode: boolean().nullable().optional(),
|
|
18204
|
+
audio: boolean().nullable().optional(),
|
|
18205
|
+
ingest: boolean().nullable().optional()
|
|
18206
|
+
}), object({ success: literal(true) }), {
|
|
18207
|
+
kind: "mutation",
|
|
18208
|
+
auth: "admin"
|
|
18181
18209
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18182
18210
|
deviceId: number(),
|
|
18183
18211
|
addonId: string(),
|
|
@@ -20503,7 +20531,7 @@ var HardwareEncoderIdSchema = _enum([
|
|
|
20503
20531
|
"libx264",
|
|
20504
20532
|
"libx265"
|
|
20505
20533
|
]);
|
|
20506
|
-
|
|
20534
|
+
object({
|
|
20507
20535
|
encoders: array(object({
|
|
20508
20536
|
encoder: HardwareEncoderIdSchema,
|
|
20509
20537
|
codec: _enum(["H264", "H265"]),
|
|
@@ -20522,15 +20550,7 @@ var HardwareEncodersSchema = object({
|
|
|
20522
20550
|
defaultH265: HardwareEncoderIdSchema,
|
|
20523
20551
|
probedAt: number()
|
|
20524
20552
|
});
|
|
20525
|
-
|
|
20526
|
-
* Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
|
|
20527
|
-
* methods the configured ffmpeg binary actually supports (parsed from
|
|
20528
|
-
* `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
|
|
20529
|
-
* egress never spends a spawn on a backend this build cannot offer. Per-stream
|
|
20530
|
-
* decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
|
|
20531
|
-
* software fallback — this only filters out wholly-unsupported backends.
|
|
20532
|
-
*/
|
|
20533
|
-
var HardwareDecodeAccelsSchema = object({
|
|
20553
|
+
object({
|
|
20534
20554
|
methods: array(string()).readonly(),
|
|
20535
20555
|
probedAt: number()
|
|
20536
20556
|
});
|
|
@@ -20593,13 +20613,7 @@ var ResolvedInferenceConfigSchema = object({
|
|
|
20593
20613
|
format: ModelFormatSchema,
|
|
20594
20614
|
reason: string()
|
|
20595
20615
|
});
|
|
20596
|
-
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema)
|
|
20597
|
-
kind: "mutation",
|
|
20598
|
-
auth: "admin"
|
|
20599
|
-
}), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
|
|
20600
|
-
kind: "mutation",
|
|
20601
|
-
auth: "admin"
|
|
20602
|
-
});
|
|
20616
|
+
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
|
|
20603
20617
|
var PtzPresetSchema = object({
|
|
20604
20618
|
id: string(),
|
|
20605
20619
|
name: string()
|
|
@@ -24068,6 +24082,18 @@ Object.freeze({
|
|
|
24068
24082
|
addonId: null,
|
|
24069
24083
|
access: "create"
|
|
24070
24084
|
},
|
|
24085
|
+
"pipelineOrchestrator.setAgentCapabilities": {
|
|
24086
|
+
capName: "pipeline-orchestrator",
|
|
24087
|
+
capScope: "system",
|
|
24088
|
+
addonId: null,
|
|
24089
|
+
access: "create"
|
|
24090
|
+
},
|
|
24091
|
+
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
24092
|
+
capName: "pipeline-orchestrator",
|
|
24093
|
+
capScope: "system",
|
|
24094
|
+
addonId: null,
|
|
24095
|
+
access: "create"
|
|
24096
|
+
},
|
|
24071
24097
|
"pipelineOrchestrator.setAgentMaxCameras": {
|
|
24072
24098
|
capName: "pipeline-orchestrator",
|
|
24073
24099
|
capScope: "system",
|
|
@@ -24224,30 +24250,6 @@ Object.freeze({
|
|
|
24224
24250
|
addonId: null,
|
|
24225
24251
|
access: "view"
|
|
24226
24252
|
},
|
|
24227
|
-
"platformProbe.getHardwareDecodeAccels": {
|
|
24228
|
-
capName: "platform-probe",
|
|
24229
|
-
capScope: "system",
|
|
24230
|
-
addonId: null,
|
|
24231
|
-
access: "view"
|
|
24232
|
-
},
|
|
24233
|
-
"platformProbe.getHardwareEncoders": {
|
|
24234
|
-
capName: "platform-probe",
|
|
24235
|
-
capScope: "system",
|
|
24236
|
-
addonId: null,
|
|
24237
|
-
access: "view"
|
|
24238
|
-
},
|
|
24239
|
-
"platformProbe.refreshHardwareDecodeAccels": {
|
|
24240
|
-
capName: "platform-probe",
|
|
24241
|
-
capScope: "system",
|
|
24242
|
-
addonId: null,
|
|
24243
|
-
access: "create"
|
|
24244
|
-
},
|
|
24245
|
-
"platformProbe.refreshHardwareEncoders": {
|
|
24246
|
-
capName: "platform-probe",
|
|
24247
|
-
capScope: "system",
|
|
24248
|
-
addonId: null,
|
|
24249
|
-
access: "create"
|
|
24250
|
-
},
|
|
24251
24253
|
"platformProbe.resolveHwAccel": {
|
|
24252
24254
|
capName: "platform-probe",
|
|
24253
24255
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -17875,7 +17875,17 @@ var AgentAddonConfigSchema = object({
|
|
|
17875
17875
|
});
|
|
17876
17876
|
var AgentPipelineSettingsSchema = object({
|
|
17877
17877
|
addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
|
|
17878
|
-
maxCameras: number().int().nonnegative().nullable().default(null)
|
|
17878
|
+
maxCameras: number().int().nonnegative().nullable().default(null),
|
|
17879
|
+
/** Per-node detection weight (relative share for the quota balancer). */
|
|
17880
|
+
detectWeight: number().positive().optional(),
|
|
17881
|
+
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
17882
|
+
detect: boolean().optional(),
|
|
17883
|
+
/** Node is eligible to host decoder sessions. */
|
|
17884
|
+
decode: boolean().optional(),
|
|
17885
|
+
/** Node is eligible to run audio-analyzer sessions. */
|
|
17886
|
+
audio: boolean().optional(),
|
|
17887
|
+
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
17888
|
+
ingest: boolean().optional()
|
|
17879
17889
|
});
|
|
17880
17890
|
var CameraPipelineForAgentSchema = object({
|
|
17881
17891
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -17950,7 +17960,10 @@ var AgentLoadSummarySchema = object({
|
|
|
17950
17960
|
online: boolean(),
|
|
17951
17961
|
load: RunnerLocalLoadSchema,
|
|
17952
17962
|
/** Computed score used by the L2 capacity balancer (lower = less loaded). */
|
|
17953
|
-
score: number()
|
|
17963
|
+
score: number(),
|
|
17964
|
+
/** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
|
|
17965
|
+
* when not yet probed — for the cluster Pipeline table UI (P0.2). */
|
|
17966
|
+
decodeHwaccel: string().nullable()
|
|
17954
17967
|
});
|
|
17955
17968
|
/**
|
|
17956
17969
|
* Aggregate metrics across the whole detection cluster. Replaces the legacy
|
|
@@ -18178,6 +18191,21 @@ method(object({
|
|
|
18178
18191
|
}), object({ success: literal(true) }), {
|
|
18179
18192
|
kind: "mutation",
|
|
18180
18193
|
auth: "admin"
|
|
18194
|
+
}), method(object({
|
|
18195
|
+
agentNodeId: string(),
|
|
18196
|
+
detectWeight: number().positive().nullable()
|
|
18197
|
+
}), object({ success: literal(true) }), {
|
|
18198
|
+
kind: "mutation",
|
|
18199
|
+
auth: "admin"
|
|
18200
|
+
}), method(object({
|
|
18201
|
+
agentNodeId: string(),
|
|
18202
|
+
detect: boolean().nullable().optional(),
|
|
18203
|
+
decode: boolean().nullable().optional(),
|
|
18204
|
+
audio: boolean().nullable().optional(),
|
|
18205
|
+
ingest: boolean().nullable().optional()
|
|
18206
|
+
}), object({ success: literal(true) }), {
|
|
18207
|
+
kind: "mutation",
|
|
18208
|
+
auth: "admin"
|
|
18181
18209
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18182
18210
|
deviceId: number(),
|
|
18183
18211
|
addonId: string(),
|
|
@@ -20503,7 +20531,7 @@ var HardwareEncoderIdSchema = _enum([
|
|
|
20503
20531
|
"libx264",
|
|
20504
20532
|
"libx265"
|
|
20505
20533
|
]);
|
|
20506
|
-
|
|
20534
|
+
object({
|
|
20507
20535
|
encoders: array(object({
|
|
20508
20536
|
encoder: HardwareEncoderIdSchema,
|
|
20509
20537
|
codec: _enum(["H264", "H265"]),
|
|
@@ -20522,15 +20550,7 @@ var HardwareEncodersSchema = object({
|
|
|
20522
20550
|
defaultH265: HardwareEncoderIdSchema,
|
|
20523
20551
|
probedAt: number()
|
|
20524
20552
|
});
|
|
20525
|
-
|
|
20526
|
-
* Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
|
|
20527
|
-
* methods the configured ffmpeg binary actually supports (parsed from
|
|
20528
|
-
* `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
|
|
20529
|
-
* egress never spends a spawn on a backend this build cannot offer. Per-stream
|
|
20530
|
-
* decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
|
|
20531
|
-
* software fallback — this only filters out wholly-unsupported backends.
|
|
20532
|
-
*/
|
|
20533
|
-
var HardwareDecodeAccelsSchema = object({
|
|
20553
|
+
object({
|
|
20534
20554
|
methods: array(string()).readonly(),
|
|
20535
20555
|
probedAt: number()
|
|
20536
20556
|
});
|
|
@@ -20593,13 +20613,7 @@ var ResolvedInferenceConfigSchema = object({
|
|
|
20593
20613
|
format: ModelFormatSchema,
|
|
20594
20614
|
reason: string()
|
|
20595
20615
|
});
|
|
20596
|
-
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema)
|
|
20597
|
-
kind: "mutation",
|
|
20598
|
-
auth: "admin"
|
|
20599
|
-
}), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
|
|
20600
|
-
kind: "mutation",
|
|
20601
|
-
auth: "admin"
|
|
20602
|
-
});
|
|
20616
|
+
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
|
|
20603
20617
|
var PtzPresetSchema = object({
|
|
20604
20618
|
id: string(),
|
|
20605
20619
|
name: string()
|
|
@@ -24068,6 +24082,18 @@ Object.freeze({
|
|
|
24068
24082
|
addonId: null,
|
|
24069
24083
|
access: "create"
|
|
24070
24084
|
},
|
|
24085
|
+
"pipelineOrchestrator.setAgentCapabilities": {
|
|
24086
|
+
capName: "pipeline-orchestrator",
|
|
24087
|
+
capScope: "system",
|
|
24088
|
+
addonId: null,
|
|
24089
|
+
access: "create"
|
|
24090
|
+
},
|
|
24091
|
+
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
24092
|
+
capName: "pipeline-orchestrator",
|
|
24093
|
+
capScope: "system",
|
|
24094
|
+
addonId: null,
|
|
24095
|
+
access: "create"
|
|
24096
|
+
},
|
|
24071
24097
|
"pipelineOrchestrator.setAgentMaxCameras": {
|
|
24072
24098
|
capName: "pipeline-orchestrator",
|
|
24073
24099
|
capScope: "system",
|
|
@@ -24224,30 +24250,6 @@ Object.freeze({
|
|
|
24224
24250
|
addonId: null,
|
|
24225
24251
|
access: "view"
|
|
24226
24252
|
},
|
|
24227
|
-
"platformProbe.getHardwareDecodeAccels": {
|
|
24228
|
-
capName: "platform-probe",
|
|
24229
|
-
capScope: "system",
|
|
24230
|
-
addonId: null,
|
|
24231
|
-
access: "view"
|
|
24232
|
-
},
|
|
24233
|
-
"platformProbe.getHardwareEncoders": {
|
|
24234
|
-
capName: "platform-probe",
|
|
24235
|
-
capScope: "system",
|
|
24236
|
-
addonId: null,
|
|
24237
|
-
access: "view"
|
|
24238
|
-
},
|
|
24239
|
-
"platformProbe.refreshHardwareDecodeAccels": {
|
|
24240
|
-
capName: "platform-probe",
|
|
24241
|
-
capScope: "system",
|
|
24242
|
-
addonId: null,
|
|
24243
|
-
access: "create"
|
|
24244
|
-
},
|
|
24245
|
-
"platformProbe.refreshHardwareEncoders": {
|
|
24246
|
-
capName: "platform-probe",
|
|
24247
|
-
capScope: "system",
|
|
24248
|
-
addonId: null,
|
|
24249
|
-
access: "create"
|
|
24250
|
-
},
|
|
24251
24253
|
"platformProbe.resolveHwAccel": {
|
|
24252
24254
|
capName: "platform-probe",
|
|
24253
24255
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreame",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
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",
|