@camstack/addon-provider-ecowitt 0.1.14 → 0.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
|
@@ -17823,7 +17823,17 @@ var AgentAddonConfigSchema = object({
|
|
|
17823
17823
|
});
|
|
17824
17824
|
var AgentPipelineSettingsSchema = object({
|
|
17825
17825
|
addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
|
|
17826
|
-
maxCameras: number().int().nonnegative().nullable().default(null)
|
|
17826
|
+
maxCameras: number().int().nonnegative().nullable().default(null),
|
|
17827
|
+
/** Per-node detection weight (relative share for the quota balancer). */
|
|
17828
|
+
detectWeight: number().positive().optional(),
|
|
17829
|
+
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
17830
|
+
detect: boolean().optional(),
|
|
17831
|
+
/** Node is eligible to host decoder sessions. */
|
|
17832
|
+
decode: boolean().optional(),
|
|
17833
|
+
/** Node is eligible to run audio-analyzer sessions. */
|
|
17834
|
+
audio: boolean().optional(),
|
|
17835
|
+
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
17836
|
+
ingest: boolean().optional()
|
|
17827
17837
|
});
|
|
17828
17838
|
var CameraPipelineForAgentSchema = object({
|
|
17829
17839
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -17898,7 +17908,10 @@ var AgentLoadSummarySchema = object({
|
|
|
17898
17908
|
online: boolean(),
|
|
17899
17909
|
load: RunnerLocalLoadSchema,
|
|
17900
17910
|
/** Computed score used by the L2 capacity balancer (lower = less loaded). */
|
|
17901
|
-
score: number()
|
|
17911
|
+
score: number(),
|
|
17912
|
+
/** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
|
|
17913
|
+
* when not yet probed — for the cluster Pipeline table UI (P0.2). */
|
|
17914
|
+
decodeHwaccel: string().nullable()
|
|
17902
17915
|
});
|
|
17903
17916
|
/**
|
|
17904
17917
|
* Aggregate metrics across the whole detection cluster. Replaces the legacy
|
|
@@ -18126,6 +18139,21 @@ method(object({
|
|
|
18126
18139
|
}), object({ success: literal(true) }), {
|
|
18127
18140
|
kind: "mutation",
|
|
18128
18141
|
auth: "admin"
|
|
18142
|
+
}), method(object({
|
|
18143
|
+
agentNodeId: string(),
|
|
18144
|
+
detectWeight: number().positive().nullable()
|
|
18145
|
+
}), object({ success: literal(true) }), {
|
|
18146
|
+
kind: "mutation",
|
|
18147
|
+
auth: "admin"
|
|
18148
|
+
}), method(object({
|
|
18149
|
+
agentNodeId: string(),
|
|
18150
|
+
detect: boolean().nullable().optional(),
|
|
18151
|
+
decode: boolean().nullable().optional(),
|
|
18152
|
+
audio: boolean().nullable().optional(),
|
|
18153
|
+
ingest: boolean().nullable().optional()
|
|
18154
|
+
}), object({ success: literal(true) }), {
|
|
18155
|
+
kind: "mutation",
|
|
18156
|
+
auth: "admin"
|
|
18129
18157
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18130
18158
|
deviceId: number(),
|
|
18131
18159
|
addonId: string(),
|
|
@@ -20434,7 +20462,7 @@ var HardwareEncoderIdSchema = _enum([
|
|
|
20434
20462
|
"libx264",
|
|
20435
20463
|
"libx265"
|
|
20436
20464
|
]);
|
|
20437
|
-
|
|
20465
|
+
object({
|
|
20438
20466
|
encoders: array(object({
|
|
20439
20467
|
encoder: HardwareEncoderIdSchema,
|
|
20440
20468
|
codec: _enum(["H264", "H265"]),
|
|
@@ -20453,15 +20481,7 @@ var HardwareEncodersSchema = object({
|
|
|
20453
20481
|
defaultH265: HardwareEncoderIdSchema,
|
|
20454
20482
|
probedAt: number()
|
|
20455
20483
|
});
|
|
20456
|
-
|
|
20457
|
-
* Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
|
|
20458
|
-
* methods the configured ffmpeg binary actually supports (parsed from
|
|
20459
|
-
* `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
|
|
20460
|
-
* egress never spends a spawn on a backend this build cannot offer. Per-stream
|
|
20461
|
-
* decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
|
|
20462
|
-
* software fallback — this only filters out wholly-unsupported backends.
|
|
20463
|
-
*/
|
|
20464
|
-
var HardwareDecodeAccelsSchema = object({
|
|
20484
|
+
object({
|
|
20465
20485
|
methods: array(string()).readonly(),
|
|
20466
20486
|
probedAt: number()
|
|
20467
20487
|
});
|
|
@@ -20524,13 +20544,7 @@ var ResolvedInferenceConfigSchema = object({
|
|
|
20524
20544
|
format: ModelFormatSchema,
|
|
20525
20545
|
reason: string()
|
|
20526
20546
|
});
|
|
20527
|
-
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema)
|
|
20528
|
-
kind: "mutation",
|
|
20529
|
-
auth: "admin"
|
|
20530
|
-
}), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
|
|
20531
|
-
kind: "mutation",
|
|
20532
|
-
auth: "admin"
|
|
20533
|
-
});
|
|
20547
|
+
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
|
|
20534
20548
|
var PtzPresetSchema = object({
|
|
20535
20549
|
id: string(),
|
|
20536
20550
|
name: string()
|
|
@@ -23999,6 +24013,18 @@ Object.freeze({
|
|
|
23999
24013
|
addonId: null,
|
|
24000
24014
|
access: "create"
|
|
24001
24015
|
},
|
|
24016
|
+
"pipelineOrchestrator.setAgentCapabilities": {
|
|
24017
|
+
capName: "pipeline-orchestrator",
|
|
24018
|
+
capScope: "system",
|
|
24019
|
+
addonId: null,
|
|
24020
|
+
access: "create"
|
|
24021
|
+
},
|
|
24022
|
+
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
24023
|
+
capName: "pipeline-orchestrator",
|
|
24024
|
+
capScope: "system",
|
|
24025
|
+
addonId: null,
|
|
24026
|
+
access: "create"
|
|
24027
|
+
},
|
|
24002
24028
|
"pipelineOrchestrator.setAgentMaxCameras": {
|
|
24003
24029
|
capName: "pipeline-orchestrator",
|
|
24004
24030
|
capScope: "system",
|
|
@@ -24155,30 +24181,6 @@ Object.freeze({
|
|
|
24155
24181
|
addonId: null,
|
|
24156
24182
|
access: "view"
|
|
24157
24183
|
},
|
|
24158
|
-
"platformProbe.getHardwareDecodeAccels": {
|
|
24159
|
-
capName: "platform-probe",
|
|
24160
|
-
capScope: "system",
|
|
24161
|
-
addonId: null,
|
|
24162
|
-
access: "view"
|
|
24163
|
-
},
|
|
24164
|
-
"platformProbe.getHardwareEncoders": {
|
|
24165
|
-
capName: "platform-probe",
|
|
24166
|
-
capScope: "system",
|
|
24167
|
-
addonId: null,
|
|
24168
|
-
access: "view"
|
|
24169
|
-
},
|
|
24170
|
-
"platformProbe.refreshHardwareDecodeAccels": {
|
|
24171
|
-
capName: "platform-probe",
|
|
24172
|
-
capScope: "system",
|
|
24173
|
-
addonId: null,
|
|
24174
|
-
access: "create"
|
|
24175
|
-
},
|
|
24176
|
-
"platformProbe.refreshHardwareEncoders": {
|
|
24177
|
-
capName: "platform-probe",
|
|
24178
|
-
capScope: "system",
|
|
24179
|
-
addonId: null,
|
|
24180
|
-
access: "create"
|
|
24181
|
-
},
|
|
24182
24184
|
"platformProbe.resolveHwAccel": {
|
|
24183
24185
|
capName: "platform-probe",
|
|
24184
24186
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -17822,7 +17822,17 @@ var AgentAddonConfigSchema = object({
|
|
|
17822
17822
|
});
|
|
17823
17823
|
var AgentPipelineSettingsSchema = object({
|
|
17824
17824
|
addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
|
|
17825
|
-
maxCameras: number().int().nonnegative().nullable().default(null)
|
|
17825
|
+
maxCameras: number().int().nonnegative().nullable().default(null),
|
|
17826
|
+
/** Per-node detection weight (relative share for the quota balancer). */
|
|
17827
|
+
detectWeight: number().positive().optional(),
|
|
17828
|
+
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
17829
|
+
detect: boolean().optional(),
|
|
17830
|
+
/** Node is eligible to host decoder sessions. */
|
|
17831
|
+
decode: boolean().optional(),
|
|
17832
|
+
/** Node is eligible to run audio-analyzer sessions. */
|
|
17833
|
+
audio: boolean().optional(),
|
|
17834
|
+
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
17835
|
+
ingest: boolean().optional()
|
|
17826
17836
|
});
|
|
17827
17837
|
var CameraPipelineForAgentSchema = object({
|
|
17828
17838
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -17897,7 +17907,10 @@ var AgentLoadSummarySchema = object({
|
|
|
17897
17907
|
online: boolean(),
|
|
17898
17908
|
load: RunnerLocalLoadSchema,
|
|
17899
17909
|
/** Computed score used by the L2 capacity balancer (lower = less loaded). */
|
|
17900
|
-
score: number()
|
|
17910
|
+
score: number(),
|
|
17911
|
+
/** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
|
|
17912
|
+
* when not yet probed — for the cluster Pipeline table UI (P0.2). */
|
|
17913
|
+
decodeHwaccel: string().nullable()
|
|
17901
17914
|
});
|
|
17902
17915
|
/**
|
|
17903
17916
|
* Aggregate metrics across the whole detection cluster. Replaces the legacy
|
|
@@ -18125,6 +18138,21 @@ method(object({
|
|
|
18125
18138
|
}), object({ success: literal(true) }), {
|
|
18126
18139
|
kind: "mutation",
|
|
18127
18140
|
auth: "admin"
|
|
18141
|
+
}), method(object({
|
|
18142
|
+
agentNodeId: string(),
|
|
18143
|
+
detectWeight: number().positive().nullable()
|
|
18144
|
+
}), object({ success: literal(true) }), {
|
|
18145
|
+
kind: "mutation",
|
|
18146
|
+
auth: "admin"
|
|
18147
|
+
}), method(object({
|
|
18148
|
+
agentNodeId: string(),
|
|
18149
|
+
detect: boolean().nullable().optional(),
|
|
18150
|
+
decode: boolean().nullable().optional(),
|
|
18151
|
+
audio: boolean().nullable().optional(),
|
|
18152
|
+
ingest: boolean().nullable().optional()
|
|
18153
|
+
}), object({ success: literal(true) }), {
|
|
18154
|
+
kind: "mutation",
|
|
18155
|
+
auth: "admin"
|
|
18128
18156
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18129
18157
|
deviceId: number(),
|
|
18130
18158
|
addonId: string(),
|
|
@@ -20433,7 +20461,7 @@ var HardwareEncoderIdSchema = _enum([
|
|
|
20433
20461
|
"libx264",
|
|
20434
20462
|
"libx265"
|
|
20435
20463
|
]);
|
|
20436
|
-
|
|
20464
|
+
object({
|
|
20437
20465
|
encoders: array(object({
|
|
20438
20466
|
encoder: HardwareEncoderIdSchema,
|
|
20439
20467
|
codec: _enum(["H264", "H265"]),
|
|
@@ -20452,15 +20480,7 @@ var HardwareEncodersSchema = object({
|
|
|
20452
20480
|
defaultH265: HardwareEncoderIdSchema,
|
|
20453
20481
|
probedAt: number()
|
|
20454
20482
|
});
|
|
20455
|
-
|
|
20456
|
-
* Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
|
|
20457
|
-
* methods the configured ffmpeg binary actually supports (parsed from
|
|
20458
|
-
* `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
|
|
20459
|
-
* egress never spends a spawn on a backend this build cannot offer. Per-stream
|
|
20460
|
-
* decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
|
|
20461
|
-
* software fallback — this only filters out wholly-unsupported backends.
|
|
20462
|
-
*/
|
|
20463
|
-
var HardwareDecodeAccelsSchema = object({
|
|
20483
|
+
object({
|
|
20464
20484
|
methods: array(string()).readonly(),
|
|
20465
20485
|
probedAt: number()
|
|
20466
20486
|
});
|
|
@@ -20523,13 +20543,7 @@ var ResolvedInferenceConfigSchema = object({
|
|
|
20523
20543
|
format: ModelFormatSchema,
|
|
20524
20544
|
reason: string()
|
|
20525
20545
|
});
|
|
20526
|
-
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema)
|
|
20527
|
-
kind: "mutation",
|
|
20528
|
-
auth: "admin"
|
|
20529
|
-
}), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
|
|
20530
|
-
kind: "mutation",
|
|
20531
|
-
auth: "admin"
|
|
20532
|
-
});
|
|
20546
|
+
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
|
|
20533
20547
|
var PtzPresetSchema = object({
|
|
20534
20548
|
id: string(),
|
|
20535
20549
|
name: string()
|
|
@@ -23998,6 +24012,18 @@ Object.freeze({
|
|
|
23998
24012
|
addonId: null,
|
|
23999
24013
|
access: "create"
|
|
24000
24014
|
},
|
|
24015
|
+
"pipelineOrchestrator.setAgentCapabilities": {
|
|
24016
|
+
capName: "pipeline-orchestrator",
|
|
24017
|
+
capScope: "system",
|
|
24018
|
+
addonId: null,
|
|
24019
|
+
access: "create"
|
|
24020
|
+
},
|
|
24021
|
+
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
24022
|
+
capName: "pipeline-orchestrator",
|
|
24023
|
+
capScope: "system",
|
|
24024
|
+
addonId: null,
|
|
24025
|
+
access: "create"
|
|
24026
|
+
},
|
|
24001
24027
|
"pipelineOrchestrator.setAgentMaxCameras": {
|
|
24002
24028
|
capName: "pipeline-orchestrator",
|
|
24003
24029
|
capScope: "system",
|
|
@@ -24154,30 +24180,6 @@ Object.freeze({
|
|
|
24154
24180
|
addonId: null,
|
|
24155
24181
|
access: "view"
|
|
24156
24182
|
},
|
|
24157
|
-
"platformProbe.getHardwareDecodeAccels": {
|
|
24158
|
-
capName: "platform-probe",
|
|
24159
|
-
capScope: "system",
|
|
24160
|
-
addonId: null,
|
|
24161
|
-
access: "view"
|
|
24162
|
-
},
|
|
24163
|
-
"platformProbe.getHardwareEncoders": {
|
|
24164
|
-
capName: "platform-probe",
|
|
24165
|
-
capScope: "system",
|
|
24166
|
-
addonId: null,
|
|
24167
|
-
access: "view"
|
|
24168
|
-
},
|
|
24169
|
-
"platformProbe.refreshHardwareDecodeAccels": {
|
|
24170
|
-
capName: "platform-probe",
|
|
24171
|
-
capScope: "system",
|
|
24172
|
-
addonId: null,
|
|
24173
|
-
access: "create"
|
|
24174
|
-
},
|
|
24175
|
-
"platformProbe.refreshHardwareEncoders": {
|
|
24176
|
-
capName: "platform-probe",
|
|
24177
|
-
capScope: "system",
|
|
24178
|
-
addonId: null,
|
|
24179
|
-
access: "create"
|
|
24180
|
-
},
|
|
24181
24183
|
"platformProbe.resolveHwAccel": {
|
|
24182
24184
|
capName: "platform-probe",
|
|
24183
24185
|
capScope: "system",
|
package/package.json
CHANGED