@camstack/addon-import-alexa 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
|
@@ -18061,7 +18061,17 @@ var AgentAddonConfigSchema = object({
|
|
|
18061
18061
|
});
|
|
18062
18062
|
var AgentPipelineSettingsSchema = object({
|
|
18063
18063
|
addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
|
|
18064
|
-
maxCameras: number().int().nonnegative().nullable().default(null)
|
|
18064
|
+
maxCameras: number().int().nonnegative().nullable().default(null),
|
|
18065
|
+
/** Per-node detection weight (relative share for the quota balancer). */
|
|
18066
|
+
detectWeight: number().positive().optional(),
|
|
18067
|
+
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
18068
|
+
detect: boolean().optional(),
|
|
18069
|
+
/** Node is eligible to host decoder sessions. */
|
|
18070
|
+
decode: boolean().optional(),
|
|
18071
|
+
/** Node is eligible to run audio-analyzer sessions. */
|
|
18072
|
+
audio: boolean().optional(),
|
|
18073
|
+
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
18074
|
+
ingest: boolean().optional()
|
|
18065
18075
|
});
|
|
18066
18076
|
var CameraPipelineForAgentSchema = object({
|
|
18067
18077
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -18136,7 +18146,10 @@ var AgentLoadSummarySchema = object({
|
|
|
18136
18146
|
online: boolean(),
|
|
18137
18147
|
load: RunnerLocalLoadSchema,
|
|
18138
18148
|
/** Computed score used by the L2 capacity balancer (lower = less loaded). */
|
|
18139
|
-
score: number()
|
|
18149
|
+
score: number(),
|
|
18150
|
+
/** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
|
|
18151
|
+
* when not yet probed — for the cluster Pipeline table UI (P0.2). */
|
|
18152
|
+
decodeHwaccel: string().nullable()
|
|
18140
18153
|
});
|
|
18141
18154
|
/**
|
|
18142
18155
|
* Aggregate metrics across the whole detection cluster. Replaces the legacy
|
|
@@ -18364,6 +18377,21 @@ method(object({
|
|
|
18364
18377
|
}), object({ success: literal(true) }), {
|
|
18365
18378
|
kind: "mutation",
|
|
18366
18379
|
auth: "admin"
|
|
18380
|
+
}), method(object({
|
|
18381
|
+
agentNodeId: string(),
|
|
18382
|
+
detectWeight: number().positive().nullable()
|
|
18383
|
+
}), object({ success: literal(true) }), {
|
|
18384
|
+
kind: "mutation",
|
|
18385
|
+
auth: "admin"
|
|
18386
|
+
}), method(object({
|
|
18387
|
+
agentNodeId: string(),
|
|
18388
|
+
detect: boolean().nullable().optional(),
|
|
18389
|
+
decode: boolean().nullable().optional(),
|
|
18390
|
+
audio: boolean().nullable().optional(),
|
|
18391
|
+
ingest: boolean().nullable().optional()
|
|
18392
|
+
}), object({ success: literal(true) }), {
|
|
18393
|
+
kind: "mutation",
|
|
18394
|
+
auth: "admin"
|
|
18367
18395
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18368
18396
|
deviceId: number(),
|
|
18369
18397
|
addonId: string(),
|
|
@@ -20689,7 +20717,7 @@ var HardwareEncoderIdSchema = _enum([
|
|
|
20689
20717
|
"libx264",
|
|
20690
20718
|
"libx265"
|
|
20691
20719
|
]);
|
|
20692
|
-
|
|
20720
|
+
object({
|
|
20693
20721
|
encoders: array(object({
|
|
20694
20722
|
encoder: HardwareEncoderIdSchema,
|
|
20695
20723
|
codec: _enum(["H264", "H265"]),
|
|
@@ -20708,15 +20736,7 @@ var HardwareEncodersSchema = object({
|
|
|
20708
20736
|
defaultH265: HardwareEncoderIdSchema,
|
|
20709
20737
|
probedAt: number()
|
|
20710
20738
|
});
|
|
20711
|
-
|
|
20712
|
-
* Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
|
|
20713
|
-
* methods the configured ffmpeg binary actually supports (parsed from
|
|
20714
|
-
* `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
|
|
20715
|
-
* egress never spends a spawn on a backend this build cannot offer. Per-stream
|
|
20716
|
-
* decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
|
|
20717
|
-
* software fallback — this only filters out wholly-unsupported backends.
|
|
20718
|
-
*/
|
|
20719
|
-
var HardwareDecodeAccelsSchema = object({
|
|
20739
|
+
object({
|
|
20720
20740
|
methods: array(string()).readonly(),
|
|
20721
20741
|
probedAt: number()
|
|
20722
20742
|
});
|
|
@@ -20779,13 +20799,7 @@ var ResolvedInferenceConfigSchema = object({
|
|
|
20779
20799
|
format: ModelFormatSchema,
|
|
20780
20800
|
reason: string()
|
|
20781
20801
|
});
|
|
20782
|
-
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema)
|
|
20783
|
-
kind: "mutation",
|
|
20784
|
-
auth: "admin"
|
|
20785
|
-
}), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
|
|
20786
|
-
kind: "mutation",
|
|
20787
|
-
auth: "admin"
|
|
20788
|
-
});
|
|
20802
|
+
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
|
|
20789
20803
|
var PtzPresetSchema = object({
|
|
20790
20804
|
id: string(),
|
|
20791
20805
|
name: string()
|
|
@@ -24254,6 +24268,18 @@ Object.freeze({
|
|
|
24254
24268
|
addonId: null,
|
|
24255
24269
|
access: "create"
|
|
24256
24270
|
},
|
|
24271
|
+
"pipelineOrchestrator.setAgentCapabilities": {
|
|
24272
|
+
capName: "pipeline-orchestrator",
|
|
24273
|
+
capScope: "system",
|
|
24274
|
+
addonId: null,
|
|
24275
|
+
access: "create"
|
|
24276
|
+
},
|
|
24277
|
+
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
24278
|
+
capName: "pipeline-orchestrator",
|
|
24279
|
+
capScope: "system",
|
|
24280
|
+
addonId: null,
|
|
24281
|
+
access: "create"
|
|
24282
|
+
},
|
|
24257
24283
|
"pipelineOrchestrator.setAgentMaxCameras": {
|
|
24258
24284
|
capName: "pipeline-orchestrator",
|
|
24259
24285
|
capScope: "system",
|
|
@@ -24410,30 +24436,6 @@ Object.freeze({
|
|
|
24410
24436
|
addonId: null,
|
|
24411
24437
|
access: "view"
|
|
24412
24438
|
},
|
|
24413
|
-
"platformProbe.getHardwareDecodeAccels": {
|
|
24414
|
-
capName: "platform-probe",
|
|
24415
|
-
capScope: "system",
|
|
24416
|
-
addonId: null,
|
|
24417
|
-
access: "view"
|
|
24418
|
-
},
|
|
24419
|
-
"platformProbe.getHardwareEncoders": {
|
|
24420
|
-
capName: "platform-probe",
|
|
24421
|
-
capScope: "system",
|
|
24422
|
-
addonId: null,
|
|
24423
|
-
access: "view"
|
|
24424
|
-
},
|
|
24425
|
-
"platformProbe.refreshHardwareDecodeAccels": {
|
|
24426
|
-
capName: "platform-probe",
|
|
24427
|
-
capScope: "system",
|
|
24428
|
-
addonId: null,
|
|
24429
|
-
access: "create"
|
|
24430
|
-
},
|
|
24431
|
-
"platformProbe.refreshHardwareEncoders": {
|
|
24432
|
-
capName: "platform-probe",
|
|
24433
|
-
capScope: "system",
|
|
24434
|
-
addonId: null,
|
|
24435
|
-
access: "create"
|
|
24436
|
-
},
|
|
24437
24439
|
"platformProbe.resolveHwAccel": {
|
|
24438
24440
|
capName: "platform-probe",
|
|
24439
24441
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -18061,7 +18061,17 @@ var AgentAddonConfigSchema = object({
|
|
|
18061
18061
|
});
|
|
18062
18062
|
var AgentPipelineSettingsSchema = object({
|
|
18063
18063
|
addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
|
|
18064
|
-
maxCameras: number().int().nonnegative().nullable().default(null)
|
|
18064
|
+
maxCameras: number().int().nonnegative().nullable().default(null),
|
|
18065
|
+
/** Per-node detection weight (relative share for the quota balancer). */
|
|
18066
|
+
detectWeight: number().positive().optional(),
|
|
18067
|
+
/** Node is eligible to run the detection pipeline (decode + inference). */
|
|
18068
|
+
detect: boolean().optional(),
|
|
18069
|
+
/** Node is eligible to host decoder sessions. */
|
|
18070
|
+
decode: boolean().optional(),
|
|
18071
|
+
/** Node is eligible to run audio-analyzer sessions. */
|
|
18072
|
+
audio: boolean().optional(),
|
|
18073
|
+
/** Node is eligible to be the ingest / source-owner (serve the restream). */
|
|
18074
|
+
ingest: boolean().optional()
|
|
18065
18075
|
});
|
|
18066
18076
|
var CameraPipelineForAgentSchema = object({
|
|
18067
18077
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
@@ -18136,7 +18146,10 @@ var AgentLoadSummarySchema = object({
|
|
|
18136
18146
|
online: boolean(),
|
|
18137
18147
|
load: RunnerLocalLoadSchema,
|
|
18138
18148
|
/** Computed score used by the L2 capacity balancer (lower = less loaded). */
|
|
18139
|
-
score: number()
|
|
18149
|
+
score: number(),
|
|
18150
|
+
/** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
|
|
18151
|
+
* when not yet probed — for the cluster Pipeline table UI (P0.2). */
|
|
18152
|
+
decodeHwaccel: string().nullable()
|
|
18140
18153
|
});
|
|
18141
18154
|
/**
|
|
18142
18155
|
* Aggregate metrics across the whole detection cluster. Replaces the legacy
|
|
@@ -18364,6 +18377,21 @@ method(object({
|
|
|
18364
18377
|
}), object({ success: literal(true) }), {
|
|
18365
18378
|
kind: "mutation",
|
|
18366
18379
|
auth: "admin"
|
|
18380
|
+
}), method(object({
|
|
18381
|
+
agentNodeId: string(),
|
|
18382
|
+
detectWeight: number().positive().nullable()
|
|
18383
|
+
}), object({ success: literal(true) }), {
|
|
18384
|
+
kind: "mutation",
|
|
18385
|
+
auth: "admin"
|
|
18386
|
+
}), method(object({
|
|
18387
|
+
agentNodeId: string(),
|
|
18388
|
+
detect: boolean().nullable().optional(),
|
|
18389
|
+
decode: boolean().nullable().optional(),
|
|
18390
|
+
audio: boolean().nullable().optional(),
|
|
18391
|
+
ingest: boolean().nullable().optional()
|
|
18392
|
+
}), object({ success: literal(true) }), {
|
|
18393
|
+
kind: "mutation",
|
|
18394
|
+
auth: "admin"
|
|
18367
18395
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
18368
18396
|
deviceId: number(),
|
|
18369
18397
|
addonId: string(),
|
|
@@ -20689,7 +20717,7 @@ var HardwareEncoderIdSchema = _enum([
|
|
|
20689
20717
|
"libx264",
|
|
20690
20718
|
"libx265"
|
|
20691
20719
|
]);
|
|
20692
|
-
|
|
20720
|
+
object({
|
|
20693
20721
|
encoders: array(object({
|
|
20694
20722
|
encoder: HardwareEncoderIdSchema,
|
|
20695
20723
|
codec: _enum(["H264", "H265"]),
|
|
@@ -20708,15 +20736,7 @@ var HardwareEncodersSchema = object({
|
|
|
20708
20736
|
defaultH265: HardwareEncoderIdSchema,
|
|
20709
20737
|
probedAt: number()
|
|
20710
20738
|
});
|
|
20711
|
-
|
|
20712
|
-
* Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
|
|
20713
|
-
* methods the configured ffmpeg binary actually supports (parsed from
|
|
20714
|
-
* `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
|
|
20715
|
-
* egress never spends a spawn on a backend this build cannot offer. Per-stream
|
|
20716
|
-
* decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
|
|
20717
|
-
* software fallback — this only filters out wholly-unsupported backends.
|
|
20718
|
-
*/
|
|
20719
|
-
var HardwareDecodeAccelsSchema = object({
|
|
20739
|
+
object({
|
|
20720
20740
|
methods: array(string()).readonly(),
|
|
20721
20741
|
probedAt: number()
|
|
20722
20742
|
});
|
|
@@ -20779,13 +20799,7 @@ var ResolvedInferenceConfigSchema = object({
|
|
|
20779
20799
|
format: ModelFormatSchema,
|
|
20780
20800
|
reason: string()
|
|
20781
20801
|
});
|
|
20782
|
-
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema)
|
|
20783
|
-
kind: "mutation",
|
|
20784
|
-
auth: "admin"
|
|
20785
|
-
}), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
|
|
20786
|
-
kind: "mutation",
|
|
20787
|
-
auth: "admin"
|
|
20788
|
-
});
|
|
20802
|
+
method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
|
|
20789
20803
|
var PtzPresetSchema = object({
|
|
20790
20804
|
id: string(),
|
|
20791
20805
|
name: string()
|
|
@@ -24254,6 +24268,18 @@ Object.freeze({
|
|
|
24254
24268
|
addonId: null,
|
|
24255
24269
|
access: "create"
|
|
24256
24270
|
},
|
|
24271
|
+
"pipelineOrchestrator.setAgentCapabilities": {
|
|
24272
|
+
capName: "pipeline-orchestrator",
|
|
24273
|
+
capScope: "system",
|
|
24274
|
+
addonId: null,
|
|
24275
|
+
access: "create"
|
|
24276
|
+
},
|
|
24277
|
+
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
24278
|
+
capName: "pipeline-orchestrator",
|
|
24279
|
+
capScope: "system",
|
|
24280
|
+
addonId: null,
|
|
24281
|
+
access: "create"
|
|
24282
|
+
},
|
|
24257
24283
|
"pipelineOrchestrator.setAgentMaxCameras": {
|
|
24258
24284
|
capName: "pipeline-orchestrator",
|
|
24259
24285
|
capScope: "system",
|
|
@@ -24410,30 +24436,6 @@ Object.freeze({
|
|
|
24410
24436
|
addonId: null,
|
|
24411
24437
|
access: "view"
|
|
24412
24438
|
},
|
|
24413
|
-
"platformProbe.getHardwareDecodeAccels": {
|
|
24414
|
-
capName: "platform-probe",
|
|
24415
|
-
capScope: "system",
|
|
24416
|
-
addonId: null,
|
|
24417
|
-
access: "view"
|
|
24418
|
-
},
|
|
24419
|
-
"platformProbe.getHardwareEncoders": {
|
|
24420
|
-
capName: "platform-probe",
|
|
24421
|
-
capScope: "system",
|
|
24422
|
-
addonId: null,
|
|
24423
|
-
access: "view"
|
|
24424
|
-
},
|
|
24425
|
-
"platformProbe.refreshHardwareDecodeAccels": {
|
|
24426
|
-
capName: "platform-probe",
|
|
24427
|
-
capScope: "system",
|
|
24428
|
-
addonId: null,
|
|
24429
|
-
access: "create"
|
|
24430
|
-
},
|
|
24431
|
-
"platformProbe.refreshHardwareEncoders": {
|
|
24432
|
-
capName: "platform-probe",
|
|
24433
|
-
capScope: "system",
|
|
24434
|
-
addonId: null,
|
|
24435
|
-
access: "create"
|
|
24436
|
-
},
|
|
24437
24439
|
"platformProbe.resolveHwAccel": {
|
|
24438
24440
|
capName: "platform-probe",
|
|
24439
24441
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-import-alexa",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|