@camstack/addon-agent-ui 1.1.15 → 1.1.17

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.
Files changed (2) hide show
  1. package/dist/addon.js +46 -44
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -14891,7 +14891,17 @@ var AgentAddonConfigSchema = object({
14891
14891
  });
14892
14892
  var AgentPipelineSettingsSchema = object({
14893
14893
  addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
14894
- maxCameras: number().int().nonnegative().nullable().default(null)
14894
+ maxCameras: number().int().nonnegative().nullable().default(null),
14895
+ /** Per-node detection weight (relative share for the quota balancer). */
14896
+ detectWeight: number().positive().optional(),
14897
+ /** Node is eligible to run the detection pipeline (decode + inference). */
14898
+ detect: boolean().optional(),
14899
+ /** Node is eligible to host decoder sessions. */
14900
+ decode: boolean().optional(),
14901
+ /** Node is eligible to run audio-analyzer sessions. */
14902
+ audio: boolean().optional(),
14903
+ /** Node is eligible to be the ingest / source-owner (serve the restream). */
14904
+ ingest: boolean().optional()
14895
14905
  });
14896
14906
  var CameraPipelineForAgentSchema = object({
14897
14907
  steps: array(PipelineStepInputSchema).readonly(),
@@ -14966,7 +14976,10 @@ var AgentLoadSummarySchema = object({
14966
14976
  online: boolean(),
14967
14977
  load: RunnerLocalLoadSchema,
14968
14978
  /** Computed score used by the L2 capacity balancer (lower = less loaded). */
14969
- score: number()
14979
+ score: number(),
14980
+ /** This node's decode hwaccel backend (per-node `probedBestHwaccel`), or null
14981
+ * when not yet probed — for the cluster Pipeline table UI (P0.2). */
14982
+ decodeHwaccel: string().nullable()
14970
14983
  });
14971
14984
  /**
14972
14985
  * Aggregate metrics across the whole detection cluster. Replaces the legacy
@@ -15194,6 +15207,21 @@ method(object({
15194
15207
  }), object({ success: literal(true) }), {
15195
15208
  kind: "mutation",
15196
15209
  auth: "admin"
15210
+ }), method(object({
15211
+ agentNodeId: string(),
15212
+ detectWeight: number().positive().nullable()
15213
+ }), object({ success: literal(true) }), {
15214
+ kind: "mutation",
15215
+ auth: "admin"
15216
+ }), method(object({
15217
+ agentNodeId: string(),
15218
+ detect: boolean().nullable().optional(),
15219
+ decode: boolean().nullable().optional(),
15220
+ audio: boolean().nullable().optional(),
15221
+ ingest: boolean().nullable().optional()
15222
+ }), object({ success: literal(true) }), {
15223
+ kind: "mutation",
15224
+ auth: "admin"
15197
15225
  }), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
15198
15226
  deviceId: number(),
15199
15227
  addonId: string(),
@@ -17502,7 +17530,7 @@ var HardwareEncoderIdSchema = _enum([
17502
17530
  "libx264",
17503
17531
  "libx265"
17504
17532
  ]);
17505
- var HardwareEncodersSchema = object({
17533
+ object({
17506
17534
  encoders: array(object({
17507
17535
  encoder: HardwareEncoderIdSchema,
17508
17536
  codec: _enum(["H264", "H265"]),
@@ -17521,15 +17549,7 @@ var HardwareEncodersSchema = object({
17521
17549
  defaultH265: HardwareEncoderIdSchema,
17522
17550
  probedAt: number()
17523
17551
  });
17524
- /**
17525
- * Decode-side companion to {@link HardwareEncodersSchema}: the `-hwaccel`
17526
- * methods the configured ffmpeg binary actually supports (parsed from
17527
- * `ffmpeg -hwaccels`). Used to gate decode-hwaccel attempts so the transcode
17528
- * egress never spends a spawn on a backend this build cannot offer. Per-stream
17529
- * decode fragility (e.g. VideoToolbox HEVC) is still handled by the egress's
17530
- * software fallback — this only filters out wholly-unsupported backends.
17531
- */
17532
- var HardwareDecodeAccelsSchema = object({
17552
+ object({
17533
17553
  methods: array(string()).readonly(),
17534
17554
  probedAt: number()
17535
17555
  });
@@ -17592,13 +17612,7 @@ var ResolvedInferenceConfigSchema = object({
17592
17612
  format: ModelFormatSchema,
17593
17613
  reason: string()
17594
17614
  });
17595
- method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema), method(_void(), HardwareEncodersSchema), method(_void(), HardwareEncodersSchema, {
17596
- kind: "mutation",
17597
- auth: "admin"
17598
- }), method(_void(), HardwareDecodeAccelsSchema), method(_void(), HardwareDecodeAccelsSchema, {
17599
- kind: "mutation",
17600
- auth: "admin"
17601
- });
17615
+ method(_void(), PlatformCapabilitiesSchema), method(_void(), HardwareInfoSchema), method(object({ requirements: array(ModelRequirementSchema).readonly() }), ResolvedInferenceConfigSchema), method(object({ prefer: HwAccelBackendInputSchema }), HwAccelResolutionSchema);
17602
17616
  var PtzPresetSchema = object({
17603
17617
  id: string(),
17604
17618
  name: string()
@@ -21067,6 +21081,18 @@ Object.freeze({
21067
21081
  addonId: null,
21068
21082
  access: "create"
21069
21083
  },
21084
+ "pipelineOrchestrator.setAgentCapabilities": {
21085
+ capName: "pipeline-orchestrator",
21086
+ capScope: "system",
21087
+ addonId: null,
21088
+ access: "create"
21089
+ },
21090
+ "pipelineOrchestrator.setAgentDetectWeight": {
21091
+ capName: "pipeline-orchestrator",
21092
+ capScope: "system",
21093
+ addonId: null,
21094
+ access: "create"
21095
+ },
21070
21096
  "pipelineOrchestrator.setAgentMaxCameras": {
21071
21097
  capName: "pipeline-orchestrator",
21072
21098
  capScope: "system",
@@ -21223,30 +21249,6 @@ Object.freeze({
21223
21249
  addonId: null,
21224
21250
  access: "view"
21225
21251
  },
21226
- "platformProbe.getHardwareDecodeAccels": {
21227
- capName: "platform-probe",
21228
- capScope: "system",
21229
- addonId: null,
21230
- access: "view"
21231
- },
21232
- "platformProbe.getHardwareEncoders": {
21233
- capName: "platform-probe",
21234
- capScope: "system",
21235
- addonId: null,
21236
- access: "view"
21237
- },
21238
- "platformProbe.refreshHardwareDecodeAccels": {
21239
- capName: "platform-probe",
21240
- capScope: "system",
21241
- addonId: null,
21242
- access: "create"
21243
- },
21244
- "platformProbe.refreshHardwareEncoders": {
21245
- capName: "platform-probe",
21246
- capScope: "system",
21247
- addonId: null,
21248
- access: "create"
21249
- },
21250
21252
  "platformProbe.resolveHwAccel": {
21251
21253
  capName: "platform-probe",
21252
21254
  capScope: "system",
@@ -22593,7 +22595,7 @@ var AgentUIAddon = class extends BaseAddon {
22593
22595
  capability: adminUiCapability,
22594
22596
  provider: {
22595
22597
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
22596
- getVersion: async () => ({ version: "1.1.15" })
22598
+ getVersion: async () => ({ version: "1.1.17" })
22597
22599
  }
22598
22600
  }];
22599
22601
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "description": "CamStack Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",