@dominevo/addon-pipeline-orchestrator 0.1.9 → 0.1.11

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/index.js CHANGED
@@ -12343,6 +12343,8 @@ var CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS = [
12343
12343
  var CLUSTER_MODEL_SCOPED_STEPS = [{
12344
12344
  stepId: "face-embedding",
12345
12345
  label: "Face recognition model",
12346
+ labelKey: "server:cluster_step_models.face-embedding.label",
12347
+ descriptionKey: "server:cluster_step_models.face-embedding.description",
12346
12348
  defaultModelId: "auraface-r100",
12347
12349
  indexName: "the enrolled face gallery",
12348
12350
  options: [{
@@ -12352,6 +12354,8 @@ var CLUSTER_MODEL_SCOPED_STEPS = [{
12352
12354
  }, {
12353
12355
  stepId: "clip-embedding",
12354
12356
  label: "Semantic search model",
12357
+ labelKey: "server:cluster_step_models.clip-embedding.label",
12358
+ descriptionKey: "server:cluster_step_models.clip-embedding.description",
12355
12359
  defaultModelId: "siglip2-b16-224",
12356
12360
  indexName: "the object semantic-search index",
12357
12361
  options: [{
@@ -12391,7 +12395,9 @@ var CLUSTER_STEP_SETTING_FIELDS = [{
12391
12395
  stepId: "face-embedding",
12392
12396
  key: "minLandmarkFaceSize",
12393
12397
  label: "Min face size to embed (detection-frame px)",
12398
+ labelKey: "server:cluster_step_setting_fields.minLandmarkFaceSize.label",
12394
12399
  description: "Faces smaller than this in the small frame the detector sees are not embedded, so they can never be recognised. Below it the face cannot be aligned reliably and a bad embedding matches everyone. Same value on every node. 0 = no limit.",
12400
+ descriptionKey: "server:cluster_step_setting_fields.minLandmarkFaceSize.description",
12395
12401
  type: "slider",
12396
12402
  min: 0,
12397
12403
  max: 64,
@@ -14017,6 +14023,7 @@ var RunnerCameraDeviceUIFields = [
14017
14023
  key: "motionSources",
14018
14024
  type: "multiselect",
14019
14025
  label: "Motion Sources",
14026
+ labelKey: "server:runnerCameraDeviceUIFields.motionSources.label",
14020
14027
  default: ["analyzer"],
14021
14028
  options: /* @__PURE__ */ MOTION_SOURCE_PICKER_ORDER.map((value) => value === "onboard" ? {
14022
14029
  value,
@@ -14031,6 +14038,7 @@ var RunnerCameraDeviceUIFields = [
14031
14038
  key: "motionFps",
14032
14039
  type: "slider",
14033
14040
  label: "Motion FPS (analyzer)",
14041
+ labelKey: "server:runnerCameraDeviceUIFields.motionFps.label",
14034
14042
  min: motionFpsField.min,
14035
14043
  max: motionFpsField.max,
14036
14044
  step: motionFpsField.step,
@@ -14048,6 +14056,7 @@ var RunnerCameraDeviceUIFields = [
14048
14056
  key: "detectionFps",
14049
14057
  type: "slider",
14050
14058
  label: "Detection FPS",
14059
+ labelKey: "server:runnerCameraDeviceUIFields.detectionFps.label",
14051
14060
  min: detectionFpsField.min,
14052
14061
  max: detectionFpsField.max,
14053
14062
  step: detectionFpsField.step,
@@ -14061,7 +14070,9 @@ var RunnerCameraDeviceUIFields = [
14061
14070
  key: "motionCooldownMs",
14062
14071
  type: "slider",
14063
14072
  label: "Motion Cooldown",
14073
+ labelKey: "server:runnerCameraDeviceUIFields.motionCooldownMs.label",
14064
14074
  description: "Time without a fresh motion event before the active phase ends. Applies to all motion sources — every motion event re-arms the timer.",
14075
+ descriptionKey: "server:runnerCameraDeviceUIFields.motionCooldownMs.description",
14065
14076
  min: motionCooldownMsField.min,
14066
14077
  max: motionCooldownMsField.max,
14067
14078
  step: motionCooldownMsField.step,
@@ -14076,7 +14087,9 @@ var RunnerCameraDeviceUIFields = [
14076
14087
  key: "maxSessionHoldMs",
14077
14088
  type: "slider",
14078
14089
  label: "Max session hold",
14090
+ labelKey: "server:runnerCameraDeviceUIFields.maxSessionHoldMs.label",
14079
14091
  description: "Upper bound on how long detection keeps running past the motion cooldown while a subject is still moving in-frame but no longer triggering motion. Prevents the detection box from stopping on a slow-moving subject. Set to 0 to disable.",
14092
+ descriptionKey: "server:runnerCameraDeviceUIFields.maxSessionHoldMs.description",
14080
14093
  min: maxSessionHoldMsField.min,
14081
14094
  max: maxSessionHoldMsField.max,
14082
14095
  step: maxSessionHoldMsField.step,
@@ -14091,7 +14104,9 @@ var RunnerCameraDeviceUIFields = [
14091
14104
  key: "audioMotionWindowMs",
14092
14105
  type: "slider",
14093
14106
  label: "Audio window after motion",
14107
+ labelKey: "server:runnerCameraDeviceUIFields.audioMotionWindowMs.label",
14094
14108
  description: "How long audio keeps being analysed after the last motion event. Each new motion event extends the window without restarting the audio stream.",
14109
+ descriptionKey: "server:runnerCameraDeviceUIFields.audioMotionWindowMs.description",
14095
14110
  min: audioMotionWindowMsField.min,
14096
14111
  max: audioMotionWindowMsField.max,
14097
14112
  step: audioMotionWindowMsField.step,
@@ -14110,7 +14125,9 @@ var RunnerCameraDeviceUIFields = [
14110
14125
  key: "onboardMotionDrivesAnalyzer",
14111
14126
  type: "boolean",
14112
14127
  label: "Run motion analyzer on onboard motion",
14128
+ labelKey: "server:runnerCameraDeviceUIFields.onboardMotionDrivesAnalyzer.label",
14113
14129
  description: "When onboard motion is detected, temporarily start the frame-diff analyzer to emit zone results. Stops after the motion cooldown window.",
14130
+ descriptionKey: "server:runnerCameraDeviceUIFields.onboardMotionDrivesAnalyzer.description",
14114
14131
  default: true,
14115
14132
  showWhen: {
14116
14133
  field: "motionSources",
@@ -14122,14 +14139,18 @@ var RunnerCameraDeviceUIFields = [
14122
14139
  type: "boolean",
14123
14140
  style: "checkbox",
14124
14141
  label: "Detect in the pre-roll",
14142
+ labelKey: "server:runnerCameraDeviceUIFields.preRollInferenceEnabled.label",
14125
14143
  description: "Run detection over the few seconds of footage the camera had already buffered when motion fired, so a subject that was in view before the trigger is found at the moment it appeared rather than seconds later. The burst is bounded and never delays live detection.",
14144
+ descriptionKey: "server:runnerCameraDeviceUIFields.preRollInferenceEnabled.description",
14126
14145
  default: true
14127
14146
  },
14128
14147
  {
14129
14148
  key: "preRollInferenceFrames",
14130
14149
  type: "slider",
14131
14150
  label: "Pre-roll frames",
14151
+ labelKey: "server:runnerCameraDeviceUIFields.preRollInferenceFrames.label",
14132
14152
  description: "How many frames of buffered history may be detected on, per session. Higher samples the history more densely; 0 disables the pass.",
14153
+ descriptionKey: "server:runnerCameraDeviceUIFields.preRollInferenceFrames.description",
14133
14154
  min: preRollInferenceFramesField.min,
14134
14155
  max: preRollInferenceFramesField.max,
14135
14156
  step: preRollInferenceFramesField.step,
@@ -14145,14 +14166,18 @@ var RunnerCameraDeviceUIFields = [
14145
14166
  type: "boolean",
14146
14167
  style: "checkbox",
14147
14168
  label: "Occupancy re-check",
14169
+ labelKey: "server:runnerCameraDeviceUIFields.occupancyRecheckEnabled.label",
14148
14170
  description: "Periodically re-sample a few frames during the watching phase, so objects that are simply parked are still counted (motion gating alone loses them after a restart). On by default at a wide interval; turn it off on cameras where the extra decoder re-dial is expensive.",
14171
+ descriptionKey: "server:runnerCameraDeviceUIFields.occupancyRecheckEnabled.description",
14149
14172
  default: true
14150
14173
  },
14151
14174
  {
14152
14175
  key: "occupancyRecheckSec",
14153
14176
  type: "slider",
14154
14177
  label: "Occupancy re-check interval",
14178
+ labelKey: "server:runnerCameraDeviceUIFields.occupancyRecheckSec.label",
14155
14179
  description: "How often (in seconds) the runner re-samples a few frames to confirm the scene is truly empty during the watching phase.",
14180
+ descriptionKey: "server:runnerCameraDeviceUIFields.occupancyRecheckSec.description",
14156
14181
  min: occupancyRecheckSecField.min,
14157
14182
  max: occupancyRecheckSecField.max,
14158
14183
  step: occupancyRecheckSecField.step,
@@ -14168,7 +14193,9 @@ var RunnerCameraDeviceUIFields = [
14168
14193
  key: "occupancyRecheckFrames",
14169
14194
  type: "slider",
14170
14195
  label: "Occupancy re-check frames",
14196
+ labelKey: "server:runnerCameraDeviceUIFields.occupancyRecheckFrames.label",
14171
14197
  description: "Number of frames sampled per occupancy re-check burst.",
14198
+ descriptionKey: "server:runnerCameraDeviceUIFields.occupancyRecheckFrames.description",
14172
14199
  min: occupancyRecheckFramesField.min,
14173
14200
  max: occupancyRecheckFramesField.max,
14174
14201
  step: occupancyRecheckFramesField.step,
@@ -18192,6 +18219,17 @@ function customAction(input, output, options) {
18192
18219
  };
18193
18220
  }
18194
18221
  //#endregion
18222
+ //#region ../types/dist/esm/device/device-binding.mjs
18223
+ /**
18224
+ * D13: the ONE place that says whether a binding is served by a wrapper (or a
18225
+ * collection source) rather than by the device's native provider. Consumers
18226
+ * ask this, never compare the ids themselves, and resolve a `(cap, device)`
18227
+ * pair to a provider through `getProviderForDevice`.
18228
+ */
18229
+ function isWrapperBinding(entry) {
18230
+ return entry.collectionSource === true || entry.providerAddonId !== entry.nativeAddonId;
18231
+ }
18232
+ //#endregion
18195
18233
  //#region ../types/dist/esm/device/device-profile.mjs
18196
18234
  /**
18197
18235
  * Heuristic check — `device.features?.includes(profile.when.hasFeature)`.
@@ -26409,7 +26447,7 @@ async function readSwitchAuthorities(api, deviceId, deps, sharedPass) {
26409
26447
  const providers = /* @__PURE__ */ new Map();
26410
26448
  for (const e of row.entries) {
26411
26449
  all.push(e.capName);
26412
- if (e.kind !== "wrapped") continue;
26450
+ if (!isWrapperBinding(e)) continue;
26413
26451
  active.push(e.capName);
26414
26452
  if (e.providerAddonId !== "") providers.set(e.capName, e.providerAddonId);
26415
26453
  }
@@ -28991,6 +29029,7 @@ var DeviceConfigContributions = class {
28991
29029
  const zonesSection = {
28992
29030
  id: "zones",
28993
29031
  title: "Detection Zones",
29032
+ titleKey: "pipeline-orchestrator:zonesSection.s_zones.title",
28994
29033
  tab: "zones",
28995
29034
  location: "top-tab",
28996
29035
  columns: 1,
@@ -28999,6 +29038,7 @@ var DeviceConfigContributions = class {
28999
29038
  type: "widget",
29000
29039
  key: "zones",
29001
29040
  label: "Detection Zones",
29041
+ labelKey: "pipeline-orchestrator:zonesSection.s_zones.zones.label",
29002
29042
  widgetId: "pipeline-orchestrator/zone-editor",
29003
29043
  span: 1
29004
29044
  }]
@@ -29011,6 +29051,7 @@ var DeviceConfigContributions = class {
29011
29051
  return { sections: [{
29012
29052
  id: "orchestrator-live",
29013
29053
  title: "Pipeline Status",
29054
+ titleKey: "pipeline-orchestrator:deviceConfigContributions.deviceLiveContribution.s_orchestrator-live.title",
29014
29055
  tab: "detection-pipeline",
29015
29056
  location: "top-tab",
29016
29057
  order: 100,
@@ -29018,12 +29059,14 @@ var DeviceConfigContributions = class {
29018
29059
  type: "text",
29019
29060
  key: "assignedRunner",
29020
29061
  label: "Assigned Runner",
29062
+ labelKey: "pipeline-orchestrator:deviceConfigContributions.deviceLiveContribution.s_orchestrator-live.assignedRunner.label",
29021
29063
  readonlyField: true,
29022
29064
  value: assignment.agentNodeId
29023
29065
  }, {
29024
29066
  type: "text",
29025
29067
  key: "assignmentReason",
29026
29068
  label: "Assignment Reason",
29069
+ labelKey: "pipeline-orchestrator:deviceConfigContributions.deviceLiveContribution.s_orchestrator-live.assignmentReason.label",
29027
29070
  readonlyField: true,
29028
29071
  value: assignment.pinned ? "pinned" : assignment.reason
29029
29072
  }]
@@ -33451,7 +33494,7 @@ var PipelineSettingsStore = class PipelineSettingsStore {
33451
33494
  const api = this.deps.api();
33452
33495
  if (!api) return true;
33453
33496
  try {
33454
- return (await api.deviceManager.getBindings.query({ deviceId })).entries.some((e) => e.capName === "detection-pipeline" && e.kind === "wrapped");
33497
+ return (await api.deviceManager.getBindings.query({ deviceId })).entries.some((e) => e.capName === "detection-pipeline" && isWrapperBinding(e));
33455
33498
  } catch (err) {
33456
33499
  this.deps.logger.warn("binding lookup failed — defaulting cap:active", {
33457
33500
  tags: { deviceId },
@@ -38682,14 +38725,18 @@ function buildGlobalSettingsSections(options) {
38682
38725
  {
38683
38726
  id: "cluster",
38684
38727
  title: "Cluster Roles",
38728
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_cluster.title",
38685
38729
  tab: "pipeline",
38686
38730
  description: "Cluster-wide singleton roles: the single node that serves each role for every camera. Per-node detection/decode/audio CAPABILITIES + weights + camera caps are edited in the per-node capability table (agent settings), not here.",
38731
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_cluster.description",
38687
38732
  fields: [
38688
38733
  {
38689
38734
  key: "ingestNode",
38690
38735
  type: "node-select",
38691
38736
  label: "Ingest Node",
38737
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_cluster.ingestNode.label",
38692
38738
  description: "The node that connects every camera and serves the compressed restream. Defaults to the hub. (Arbitrary ingest ≠ hub is a later phase; kept here so the role is modeled.)",
38739
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_cluster.ingestNode.description",
38693
38740
  default: "hub",
38694
38741
  showOffline: true
38695
38742
  },
@@ -38697,7 +38744,9 @@ function buildGlobalSettingsSections(options) {
38697
38744
  key: "audioNode",
38698
38745
  type: "node-select",
38699
38746
  label: "Audio Node",
38747
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_cluster.audioNode.label",
38700
38748
  description: "The node that runs all audio analysis. Defaults to the hub. Must be an audio-capable node.",
38749
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_cluster.audioNode.description",
38701
38750
  default: "hub",
38702
38751
  showOffline: true
38703
38752
  },
@@ -38705,28 +38754,35 @@ function buildGlobalSettingsSections(options) {
38705
38754
  key: "motionNode",
38706
38755
  type: "node-select",
38707
38756
  label: "Motion Node",
38757
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_cluster.motionNode.label",
38708
38758
  default: "hub",
38709
38759
  showOffline: true,
38710
- description: "Node that hosts software (analyzer) motion-watch. Analyzer cameras run their grey-decode motion analysis here; onboard (hardware-motion) cameras are unaffected."
38760
+ description: "Node that hosts software (analyzer) motion-watch. Analyzer cameras run their grey-decode motion analysis here; onboard (hardware-motion) cameras are unaffected.",
38761
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_cluster.motionNode.description"
38711
38762
  }
38712
38763
  ]
38713
38764
  },
38714
38765
  {
38715
38766
  id: "load",
38716
38767
  title: "Load Balancer",
38768
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_load.title",
38717
38769
  tab: "pipeline",
38718
38770
  fields: [
38719
38771
  {
38720
38772
  key: SESSION_PLACEMENT_SETTING_KEY,
38721
38773
  type: "select",
38722
38774
  label: "Session placement",
38775
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.sessionPlacement.label",
38723
38776
  description: "How a new detection session picks its node and device. Honour shares (default) = the share of PARALLEL sessions is held to the node and device shares, and a node at its cap yields to a free one. Least-loaded = the node with the fewest sessions per unit of weight; an idle node always wins the tie, so weights only matter once nodes are busy.",
38777
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_load.sessionPlacement.description",
38724
38778
  options: [{
38725
38779
  value: "share",
38726
- label: "Honour shares"
38780
+ label: "Honour shares",
38781
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.o_share.label"
38727
38782
  }, {
38728
38783
  value: "least-loaded",
38729
- label: "Least-loaded"
38784
+ label: "Least-loaded",
38785
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.o_least-loaded.label"
38730
38786
  }],
38731
38787
  default: DEFAULT_SESSION_PLACEMENT_POLICY
38732
38788
  },
@@ -38734,7 +38790,9 @@ function buildGlobalSettingsSections(options) {
38734
38790
  key: "fpsMinThreshold",
38735
38791
  type: "slider",
38736
38792
  label: "Min FPS Threshold",
38793
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.fpsMinThreshold.label",
38737
38794
  description: "Per-camera low-FPS load shedding. If a camera sustains FPS below this value for the duration set by 'Low FPS Window' below, it is paused (load-shed) and new dispatches are blocked. Auto-resumes with exponential backoff. 0 = disabled (default) — a single slow camera is never detached; only capacity-based placement applies.",
38795
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_load.fpsMinThreshold.description",
38738
38796
  min: 0,
38739
38797
  max: 10,
38740
38798
  step: 1,
@@ -38746,19 +38804,24 @@ function buildGlobalSettingsSections(options) {
38746
38804
  key: "nodeStressMode",
38747
38805
  type: "select",
38748
38806
  label: "Node stress handling",
38807
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.nodeStressMode.label",
38749
38808
  description: "When a node is saturated (queue pressure, dropped frames and delivered-vs-configured fps of active cameras), Failover moves one of its cameras to an idle node. One camera at a time, a cooldown per camera, never back to the node it just left, at most 4 moves an hour across the cluster. A camera is never paused. Observe only logs the verdict; Off does nothing.",
38809
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_load.nodeStressMode.description",
38750
38810
  options: [
38751
38811
  {
38752
38812
  value: "off",
38753
- label: "Off"
38813
+ label: "Off",
38814
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.nodeStressMode.o_off.label"
38754
38815
  },
38755
38816
  {
38756
38817
  value: "observe",
38757
- label: "Observe (log only)"
38818
+ label: "Observe (log only)",
38819
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.nodeStressMode.o_observe.label"
38758
38820
  },
38759
38821
  {
38760
38822
  value: "failover",
38761
- label: "Failover (relocate a camera)"
38823
+ label: "Failover (relocate a camera)",
38824
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.nodeStressMode.o_failover.label"
38762
38825
  }
38763
38826
  ],
38764
38827
  default: "failover"
@@ -38767,7 +38830,9 @@ function buildGlobalSettingsSections(options) {
38767
38830
  key: "fpsLowWindowMs",
38768
38831
  type: "slider",
38769
38832
  label: "Low FPS Window",
38833
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.fpsLowWindowMs.label",
38770
38834
  description: "How long a camera must stay below the Min FPS Threshold before it is paused. Resets the moment FPS recovers above threshold. Larger values tolerate longer cold-start / GC stalls without false-killing the camera.",
38835
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_load.fpsLowWindowMs.description",
38771
38836
  min: 5e3,
38772
38837
  max: 6e5,
38773
38838
  step: 5e3,
@@ -38781,13 +38846,17 @@ function buildGlobalSettingsSections(options) {
38781
38846
  {
38782
38847
  id: CLUSTER_MODEL_SECTION_ID,
38783
38848
  title: "Enrichment models",
38849
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_cluster-step-models.title",
38784
38850
  tab: "pipeline",
38785
38851
  description: "The face and search encoders, one each for the whole cluster: each fills a single shared index, and vectors from two models cannot be compared. Changing one keeps what is stored but hides it from matching and search until it is re-embedded.",
38852
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_cluster-step-models.description",
38786
38853
  fields: [...CLUSTER_MODEL_SCOPED_STEPS.map((step) => ({
38787
38854
  key: clusterModelSettingKey(step.stepId),
38788
38855
  type: "select",
38789
38856
  label: step.label,
38857
+ labelKey: step.labelKey,
38790
38858
  description: `Used on every node. A node that has no build of this model skips the step (and logs it) rather than use another model. Changing it hides what is already in ${step.indexName} until it is re-embedded.`,
38859
+ descriptionKey: step.descriptionKey,
38791
38860
  options: step.options.map((o) => ({
38792
38861
  value: o.id,
38793
38862
  label: o.label
@@ -38797,7 +38866,9 @@ function buildGlobalSettingsSections(options) {
38797
38866
  key: clusterStepSettingKey(field.stepId, field.key),
38798
38867
  type: "slider",
38799
38868
  label: field.label,
38869
+ labelKey: field.labelKey,
38800
38870
  description: field.description,
38871
+ descriptionKey: field.descriptionKey,
38801
38872
  min: field.min,
38802
38873
  max: field.max,
38803
38874
  step: field.step,
@@ -38808,13 +38879,17 @@ function buildGlobalSettingsSections(options) {
38808
38879
  {
38809
38880
  id: DETAIL_CROP_SECTION_ID,
38810
38881
  title: "Enrichment crop",
38882
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_detail-crop.title",
38811
38883
  tab: "pipeline",
38812
38884
  description: "How the crop handed to the search, face and plate models is cut from the frame. One value for the whole cluster, because search results are only comparable when every crop is cut the same way. After changing it, rebuild the search index (Camera → Semantic search index → Rebuild).",
38885
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_detail-crop.description",
38813
38886
  fields: [{
38814
38887
  key: DETAIL_CROP_PADDING_KEY,
38815
38888
  type: "slider",
38816
38889
  label: "Crop margin",
38890
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_detail-crop.detailCropPaddingRatio.label",
38817
38891
  description: "Extra margin added on each side of the detection box, as a fraction of its size. 0 = tight box, 0.15 = default. Search works better with some surroundings in the crop.",
38892
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_detail-crop.detailCropPaddingRatio.description",
38818
38893
  min: DETAIL_CROP_PADDING_FIELD.min,
38819
38894
  max: DETAIL_CROP_PADDING_FIELD.max,
38820
38895
  step: DETAIL_CROP_PADDING_FIELD.step,
@@ -38824,20 +38899,26 @@ function buildGlobalSettingsSections(options) {
38824
38899
  key: DETAIL_CROP_SQUARE_KEY,
38825
38900
  type: "boolean",
38826
38901
  label: "Square the crop",
38902
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_detail-crop.detailCropSquare.label",
38827
38903
  description: "Widen the crop to a square so a tall subject is not squashed when the model resizes it. Off by default because the existing index was built without it.",
38904
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_detail-crop.detailCropSquare.description",
38828
38905
  default: DEFAULT_DETAIL_CROP_CONVENTION.square
38829
38906
  }]
38830
38907
  },
38831
38908
  {
38832
38909
  id: FACE_RESCORE_SECTION_ID,
38833
38910
  title: "Face suggestions",
38911
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_face-rescore.title",
38834
38912
  tab: "pipeline",
38835
38913
  description: "How often the people suggestions on unassigned faces are refreshed against the current gallery. The job only runs when the gallery or the set of unassigned faces changed since the last run; otherwise it does nothing.",
38914
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_face-rescore.description",
38836
38915
  fields: [{
38837
38916
  key: FACE_RESCORE_INTERVAL_KEY,
38838
38917
  type: "slider",
38839
38918
  label: "Suggestion refresh interval",
38919
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_face-rescore.faceRescoreIntervalMinutes.label",
38840
38920
  description: "0 = off (use the Recompute suggestions button). Values from 1 to 9 run every 10 minutes. The first run happens one interval after the addon starts.",
38921
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_face-rescore.faceRescoreIntervalMinutes.description",
38841
38922
  min: FACE_RESCORE_INTERVAL_FIELD.min,
38842
38923
  max: FACE_RESCORE_INTERVAL_FIELD.max,
38843
38924
  step: FACE_RESCORE_INTERVAL_FIELD.step,
@@ -38849,14 +38930,18 @@ function buildGlobalSettingsSections(options) {
38849
38930
  {
38850
38931
  id: NATIVE_LEASE_SECTION_ID,
38851
38932
  title: "Native frame lease",
38933
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.title",
38852
38934
  tab: "pipeline",
38853
38935
  description: "How each camera keeps full-resolution pixels so a crop taken seconds later (snapshot, face, plate) is sharp instead of cut from the small detection frame. A held frame is a whole picture (~25 MB at 4K) kept until its detections arrive; a tile is one subject, or one whole-scene copy, saved as JPEG for tens of seconds. Applies from the next session of each camera.",
38936
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.description",
38854
38937
  fields: [
38855
38938
  {
38856
38939
  key: NATIVE_LEASE_HOLD_KEY,
38857
38940
  type: "slider",
38858
38941
  label: "Frames held at once",
38942
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeLeaseHoldFrames.label",
38859
38943
  description: "Most frames kept per camera while their detections are pending; past it the oldest is dropped. 1 to 4 are in use normally. Raise it only if a slow node drops frames (holdOverflow in the logs) — it does not make crops sharper.",
38944
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeLeaseHoldFrames.description",
38860
38945
  min: NATIVE_LEASE_HOLD_FIELD.min,
38861
38946
  max: NATIVE_LEASE_HOLD_FIELD.max,
38862
38947
  step: NATIVE_LEASE_HOLD_FIELD.step,
@@ -38868,7 +38953,9 @@ function buildGlobalSettingsSections(options) {
38868
38953
  key: NATIVE_LEASE_TILE_BUDGET_KEY,
38869
38954
  type: "slider",
38870
38955
  label: "Subject tile RAM",
38956
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeTileBudgetMb.label",
38871
38957
  description: "RAM per camera for subject tiles: full-resolution crops of each detected subject, kept so a crop asked for seconds later is still sharp. A tile is ~60-120 KB. 0 = off (late crops come from the small detection frame).",
38958
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeTileBudgetMb.description",
38872
38959
  min: NATIVE_LEASE_TILE_BUDGET_FIELD.min,
38873
38960
  max: NATIVE_LEASE_TILE_BUDGET_FIELD.max,
38874
38961
  step: NATIVE_LEASE_TILE_BUDGET_FIELD.step,
@@ -38880,7 +38967,9 @@ function buildGlobalSettingsSections(options) {
38880
38967
  key: NATIVE_LEASE_SCENE_BUDGET_KEY,
38881
38968
  type: "slider",
38882
38969
  label: "Scene tile RAM",
38970
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeSceneBudgetMb.label",
38883
38971
  description: "RAM per camera for scene tiles: a full-resolution JPEG of the whole picture (~2 MB at 4K) on frames where something was detected, for key frames and whole-frame crops. 0 = off (those then fall back to the small detection frame).",
38972
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeSceneBudgetMb.description",
38884
38973
  min: NATIVE_LEASE_SCENE_BUDGET_FIELD.min,
38885
38974
  max: NATIVE_LEASE_SCENE_BUDGET_FIELD.max,
38886
38975
  step: NATIVE_LEASE_SCENE_BUDGET_FIELD.step,
@@ -38892,7 +38981,9 @@ function buildGlobalSettingsSections(options) {
38892
38981
  key: NATIVE_LEASE_BUDGET_KEY,
38893
38982
  type: "slider",
38894
38983
  label: "Lease RAM ceiling",
38984
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeLeaseBudgetMb.label",
38895
38985
  description: "Safety ceiling on the RAM held frames may use per camera; the frame count above is what normally limits it. Lower it on a small host. 0 turns full-resolution crops off almost entirely — for diagnosis only.",
38986
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeLeaseBudgetMb.description",
38896
38987
  min: NATIVE_LEASE_BUDGET_FIELD.min,
38897
38988
  max: NATIVE_LEASE_BUDGET_FIELD.max,
38898
38989
  step: NATIVE_LEASE_BUDGET_FIELD.step,
@@ -38904,7 +38995,9 @@ function buildGlobalSettingsSections(options) {
38904
38995
  key: NATIVE_LEASE_ACTIVITY_KEY,
38905
38996
  type: "slider",
38906
38997
  label: "Demand window",
38998
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeLeaseActivityMs.label",
38907
38999
  description: "Keep full-resolution pixels only within this long of the last crop request, so a camera nobody crops costs nothing; the first crop after a quiet spell falls back once. 0 = always keep (heavy on small hosts).",
39000
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeLeaseActivityMs.description",
38908
39001
  min: NATIVE_LEASE_ACTIVITY_FIELD.min,
38909
39002
  max: NATIVE_LEASE_ACTIVITY_FIELD.max,
38910
39003
  step: NATIVE_LEASE_ACTIVITY_FIELD.step,
@@ -38917,7 +39010,9 @@ function buildGlobalSettingsSections(options) {
38917
39010
  key: NATIVE_LEASE_ADMISSION_KEY,
38918
39011
  type: "select",
38919
39012
  label: "What to retain",
39013
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeLeaseAdmission.label",
38920
39014
  description: "Which frames get a full-resolution copy. 'Only frames sent to inference' keeps the frames a crop can actually ask for (about 80% less RAM); 'Every delivered frame' keeps all of them.",
39015
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeLeaseAdmission.description",
38921
39016
  options: NATIVE_LEASE_ADMISSION_FIELD.options,
38922
39017
  default: NATIVE_LEASE_ADMISSION_FIELD.default
38923
39018
  }
@@ -38926,47 +39021,60 @@ function buildGlobalSettingsSections(options) {
38926
39021
  {
38927
39022
  id: "failover",
38928
39023
  title: "Failover Policy",
39024
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_failover.title",
38929
39025
  fields: [
38930
39026
  {
38931
39027
  key: "onDisconnect",
38932
39028
  type: "select",
38933
39029
  label: "When a node disconnects",
39030
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onDisconnect.label",
38934
39031
  description: "Move its unpinned cameras to other nodes, or leave them stopped.",
39032
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onDisconnect.description",
38935
39033
  default: DEFAULT_FAILOVER_POLICY.onDisconnect,
38936
39034
  options: [{
38937
39035
  value: "migrate",
38938
- label: "Migrate non-pinned cameras"
39036
+ label: "Migrate non-pinned cameras",
39037
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onDisconnect.o_migrate.label"
38939
39038
  }, {
38940
39039
  value: "leave-unassigned",
38941
- label: "Leave all cameras unassigned"
39040
+ label: "Leave all cameras unassigned",
39041
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onDisconnect.o_leave-unassigned.label"
38942
39042
  }]
38943
39043
  },
38944
39044
  {
38945
39045
  key: "pinnedOnDisconnect",
38946
39046
  type: "select",
38947
39047
  label: "Its pinned cameras",
39048
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.pinnedOnDisconnect.label",
38948
39049
  description: "Keep the pin and wait for the node, or drop the pin and move them.",
39050
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_failover.pinnedOnDisconnect.description",
38949
39051
  default: DEFAULT_FAILOVER_POLICY.pinnedOnDisconnect,
38950
39052
  options: [{
38951
39053
  value: "leave-pinned",
38952
- label: "Leave pinned, unassigned"
39054
+ label: "Leave pinned, unassigned",
39055
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.pinnedOnDisconnect.o_leave-pinned.label"
38953
39056
  }, {
38954
39057
  value: "unpin-and-migrate",
38955
- label: "Auto-unpin and migrate"
39058
+ label: "Auto-unpin and migrate",
39059
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.pinnedOnDisconnect.o_unpin-and-migrate.label"
38956
39060
  }]
38957
39061
  },
38958
39062
  {
38959
39063
  key: "onReconnect",
38960
39064
  type: "select",
38961
39065
  label: "When it comes back",
39066
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onReconnect.label",
38962
39067
  description: "Put its cameras back where they were, or rebalance the whole cluster.",
39068
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onReconnect.description",
38963
39069
  default: DEFAULT_FAILOVER_POLICY.onReconnect,
38964
39070
  options: [{
38965
39071
  value: "restore",
38966
- label: "Restore previous assignments"
39072
+ label: "Restore previous assignments",
39073
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onReconnect.o_restore.label"
38967
39074
  }, {
38968
39075
  value: "rebalance",
38969
- label: "Trigger full rebalance"
39076
+ label: "Trigger full rebalance",
39077
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onReconnect.o_rebalance.label"
38970
39078
  }]
38971
39079
  }
38972
39080
  ]
@@ -38979,6 +39087,7 @@ function buildDeviceSettingsSections(nodeOptions) {
38979
39087
  {
38980
39088
  id: "motion-tuning",
38981
39089
  title: "Motion",
39090
+ titleKey: "pipeline-orchestrator:deviceSettingsSections.s_motion-tuning.title",
38982
39091
  tab: "detection-pipeline",
38983
39092
  location: "top-tab",
38984
39093
  order: 4,
@@ -38986,19 +39095,23 @@ function buildDeviceSettingsSections(nodeOptions) {
38986
39095
  key: "motionStreamProfile",
38987
39096
  type: "select",
38988
39097
  label: "Motion Stream (analyzer)",
39098
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_motion-tuning.motionStreamProfile.label",
38989
39099
  default: "low",
38990
39100
  options: [
38991
39101
  {
38992
39102
  value: "high",
38993
- label: "High"
39103
+ label: "High",
39104
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_motion-tuning.motionStreamProfile.o_high.label"
38994
39105
  },
38995
39106
  {
38996
39107
  value: "mid",
38997
- label: "Medium"
39108
+ label: "Medium",
39109
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_motion-tuning.motionStreamProfile.o_mid.label"
38998
39110
  },
38999
39111
  {
39000
39112
  value: "low",
39001
- label: "Low"
39113
+ label: "Low",
39114
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_motion-tuning.motionStreamProfile.o_low.label"
39002
39115
  }
39003
39116
  ],
39004
39117
  showWhen: {
@@ -39010,28 +39123,34 @@ function buildDeviceSettingsSections(nodeOptions) {
39010
39123
  {
39011
39124
  id: "pipeline-object-detection",
39012
39125
  title: "Object Detection",
39126
+ titleKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.title",
39013
39127
  tab: "detection-pipeline",
39014
39128
  location: "top-tab",
39015
39129
  order: 5,
39016
39130
  description: "When the SW object detection pipeline (yolov9s, scrfd, …) runs for this camera. Wrappers stay bound regardless — the runner reads this mode at attach time to decide whether to pull the substream.",
39131
+ descriptionKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.description",
39017
39132
  fields: [
39018
39133
  {
39019
39134
  key: "detectionMode",
39020
39135
  type: "select",
39021
39136
  label: "Object detection",
39137
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionMode.label",
39022
39138
  default: "on-motion",
39023
39139
  options: [
39024
39140
  {
39025
39141
  value: "disabled",
39026
- label: "Disabled"
39142
+ label: "Disabled",
39143
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionMode.o_disabled.label"
39027
39144
  },
39028
39145
  {
39029
39146
  value: "always-on",
39030
- label: "Always on"
39147
+ label: "Always on",
39148
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionMode.o_always-on.label"
39031
39149
  },
39032
39150
  {
39033
39151
  value: "on-motion",
39034
- label: "On motion (firmware/PIR/SW)"
39152
+ label: "On motion (firmware/PIR/SW)",
39153
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionMode.o_on-motion.label"
39035
39154
  }
39036
39155
  ]
39037
39156
  },
@@ -39039,19 +39158,23 @@ function buildDeviceSettingsSections(nodeOptions) {
39039
39158
  key: "detectionStreamProfile",
39040
39159
  type: "select",
39041
39160
  label: "Detection Stream",
39161
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionStreamProfile.label",
39042
39162
  default: "high",
39043
39163
  options: [
39044
39164
  {
39045
39165
  value: "high",
39046
- label: "High"
39166
+ label: "High",
39167
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionStreamProfile.o_high.label"
39047
39168
  },
39048
39169
  {
39049
39170
  value: "mid",
39050
- label: "Medium"
39171
+ label: "Medium",
39172
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionStreamProfile.o_mid.label"
39051
39173
  },
39052
39174
  {
39053
39175
  value: "low",
39054
- label: "Low"
39176
+ label: "Low",
39177
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionStreamProfile.o_low.label"
39055
39178
  }
39056
39179
  ],
39057
39180
  showWhen: {
@@ -39063,6 +39186,7 @@ function buildDeviceSettingsSections(nodeOptions) {
39063
39186
  key: "detectionFps",
39064
39187
  type: "slider",
39065
39188
  label: "Detection FPS",
39189
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionFps.label",
39066
39190
  min: 1,
39067
39191
  max: 30,
39068
39192
  step: 1,
@@ -39070,6 +39194,7 @@ function buildDeviceSettingsSections(nodeOptions) {
39070
39194
  showValue: true,
39071
39195
  unit: "fps",
39072
39196
  description: "Maximum frames decoded and sent to object detection each second",
39197
+ descriptionKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionFps.description",
39073
39198
  showWhen: {
39074
39199
  field: "detectionMode",
39075
39200
  notEquals: "disabled"
@@ -39079,6 +39204,7 @@ function buildDeviceSettingsSections(nodeOptions) {
39079
39204
  key: "activityDetectionFps",
39080
39205
  type: "slider",
39081
39206
  label: "Detection FPS while the device is working",
39207
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.activityDetectionFps.label",
39082
39208
  min: 1,
39083
39209
  max: 10,
39084
39210
  step: 1,
@@ -39086,6 +39212,7 @@ function buildDeviceSettingsSections(nodeOptions) {
39086
39212
  showValue: true,
39087
39213
  unit: "fps",
39088
39214
  description: "A device-activity session lasts as long as the job does — a cleaning run is tens of minutes. This caps the rate for that session only; a session opened by motion keeps the rate above.",
39215
+ descriptionKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.activityDetectionFps.description",
39089
39216
  showWhen: {
39090
39217
  field: "motionSources",
39091
39218
  includes: "device-activity"
@@ -39096,51 +39223,63 @@ function buildDeviceSettingsSections(nodeOptions) {
39096
39223
  {
39097
39224
  id: "pipeline-audio",
39098
39225
  title: "Audio classification",
39226
+ titleKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.title",
39099
39227
  tab: "detection-pipeline",
39100
39228
  location: "top-tab",
39101
39229
  order: 6,
39102
39230
  description: "When the audio classifier (apple-soundanalysis, etc.) runs for this camera. Default for battery cams: disabled (continuous audio holds the substream open).",
39231
+ descriptionKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.description",
39103
39232
  fields: [{
39104
39233
  key: "audioMode",
39105
39234
  type: "select",
39106
39235
  label: "Audio classification",
39236
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioMode.label",
39107
39237
  default: "always-on",
39108
39238
  options: [
39109
39239
  {
39110
39240
  value: "disabled",
39111
- label: "Disabled"
39241
+ label: "Disabled",
39242
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioMode.o_disabled.label"
39112
39243
  },
39113
39244
  {
39114
39245
  value: "always-on",
39115
- label: "Always on"
39246
+ label: "Always on",
39247
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioMode.o_always-on.label"
39116
39248
  },
39117
39249
  {
39118
39250
  value: "on-motion",
39119
- label: "On motion (firmware/PIR/SW)"
39251
+ label: "On motion (firmware/PIR/SW)",
39252
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioMode.o_on-motion.label"
39120
39253
  }
39121
39254
  ]
39122
39255
  }, {
39123
39256
  key: "audioStreamPick",
39124
39257
  type: "select",
39125
39258
  label: "Audio stream",
39259
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioStreamPick.label",
39126
39260
  default: "auto",
39127
39261
  description: "Which camera stream the audio classifier listens on. Auto picks the lowest stream the camera serves natively — a transcoded stream is never started just to hear a camera.",
39262
+ descriptionKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioStreamPick.description",
39128
39263
  options: [
39129
39264
  {
39130
39265
  value: "auto",
39131
- label: "Auto (lowest native)"
39266
+ label: "Auto (lowest native)",
39267
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioStreamPick.o_auto.label"
39132
39268
  },
39133
39269
  {
39134
39270
  value: "high",
39135
- label: "High"
39271
+ label: "High",
39272
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioStreamPick.o_high.label"
39136
39273
  },
39137
39274
  {
39138
39275
  value: "mid",
39139
- label: "Medium"
39276
+ label: "Medium",
39277
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioStreamPick.o_mid.label"
39140
39278
  },
39141
39279
  {
39142
39280
  value: "low",
39143
- label: "Low"
39281
+ label: "Low",
39282
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioStreamPick.o_low.label"
39144
39283
  }
39145
39284
  ],
39146
39285
  showWhen: {
@@ -39152,24 +39291,29 @@ function buildDeviceSettingsSections(nodeOptions) {
39152
39291
  {
39153
39292
  id: "occupancy",
39154
39293
  title: "Occupancy",
39294
+ titleKey: "pipeline-orchestrator:deviceSettingsSections.s_occupancy.title",
39155
39295
  tab: "detection-pipeline",
39156
39296
  location: "top-tab",
39157
39297
  order: 7,
39158
39298
  description: "Periodic re-sampling to keep stationary objects / occupancy fresh while the camera is idle (watching).",
39299
+ descriptionKey: "pipeline-orchestrator:deviceSettingsSections.s_occupancy.description",
39159
39300
  fields: RunnerCameraDeviceUIFields.filter((f) => f.key === "occupancyRecheckSec" || f.key === "occupancyRecheckFrames")
39160
39301
  },
39161
39302
  {
39162
39303
  id: "pre-roll-detection",
39163
39304
  title: "Pre-roll detection",
39305
+ titleKey: "pipeline-orchestrator:deviceSettingsSections.s_pre-roll-detection.title",
39164
39306
  tab: "detection-pipeline",
39165
39307
  location: "top-tab",
39166
39308
  order: 8,
39167
39309
  description: "When motion opens a session the camera has already buffered a few seconds of footage. Detecting over it finds a subject at the moment it appeared instead of after the decoder has warmed up.",
39310
+ descriptionKey: "pipeline-orchestrator:deviceSettingsSections.s_pre-roll-detection.description",
39168
39311
  fields: RunnerCameraDeviceUIFields.filter((f) => f.key === "preRollInferenceEnabled" || f.key === "preRollInferenceFrames")
39169
39312
  },
39170
39313
  {
39171
39314
  id: "cluster-assignment",
39172
39315
  title: "Cluster Assignment",
39316
+ titleKey: "pipeline-orchestrator:deviceSettingsSections.s_cluster-assignment.title",
39173
39317
  tab: "detection-pipeline",
39174
39318
  location: "top-tab",
39175
39319
  order: 10,
@@ -39177,10 +39321,13 @@ function buildDeviceSettingsSections(nodeOptions) {
39177
39321
  key: "pipelineNodeId",
39178
39322
  type: "select",
39179
39323
  label: "Pipeline Node",
39324
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_cluster-assignment.pipelineNodeId.label",
39180
39325
  description: "Which node runs the detection pipeline for this camera.",
39326
+ descriptionKey: "pipeline-orchestrator:deviceSettingsSections.s_cluster-assignment.pipelineNodeId.description",
39181
39327
  options: [{
39182
39328
  value: "auto",
39183
- label: "Auto (load balanced)"
39329
+ label: "Auto (load balanced)",
39330
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_cluster-assignment.pipelineNodeId.o_auto.label"
39184
39331
  }, ...nodeOptions.runnerNodeIds.map((id) => ({
39185
39332
  value: id,
39186
39333
  label: id
@@ -43279,7 +43426,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
43279
43426
  const api = this.api;
43280
43427
  if (!api) return true;
43281
43428
  try {
43282
- return (await api.deviceManager.getBindings.query({ deviceId })).entries.some((e) => e.capName === capName && e.kind === "wrapped");
43429
+ return (await api.deviceManager.getBindings.query({ deviceId })).entries.some((e) => e.capName === capName && isWrapperBinding(e));
43283
43430
  } catch (err) {
43284
43431
  this.ctx.logger.warn("binding lookup failed — defaulting cap:active", {
43285
43432
  tags: { deviceId },
@@ -43324,7 +43471,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
43324
43471
  const api = this.api;
43325
43472
  if (!api) return false;
43326
43473
  try {
43327
- return (await api.deviceManager.getBindings.query({ deviceId })).entries.some((e) => e.kind === "native" && e.capName === "recording-signal");
43474
+ return (await api.deviceManager.getBindings.query({ deviceId })).entries.some((e) => !isWrapperBinding(e) && e.capName === "recording-signal");
43328
43475
  } catch {
43329
43476
  return false;
43330
43477
  }
@@ -43333,7 +43480,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
43333
43480
  const api = this.api;
43334
43481
  if (!api) return false;
43335
43482
  try {
43336
- return (await api.deviceManager.getBindings.query({ deviceId })).entries.some((e) => e.kind === "native" && (e.capName === "motion" || e.capName === "native-object-detection"));
43483
+ return (await api.deviceManager.getBindings.query({ deviceId })).entries.some((e) => !isWrapperBinding(e) && (e.capName === "motion" || e.capName === "native-object-detection"));
43337
43484
  } catch {
43338
43485
  return false;
43339
43486
  }
@@ -43347,7 +43494,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
43347
43494
  const api = this.api;
43348
43495
  if (!api) return false;
43349
43496
  try {
43350
- return (await api.deviceManager.getBindings.query({ deviceId })).entries.some((e) => e.kind === "native" && e.capName === "native-object-detection");
43497
+ return (await api.deviceManager.getBindings.query({ deviceId })).entries.some((e) => !isWrapperBinding(e) && e.capName === "native-object-detection");
43351
43498
  } catch {
43352
43499
  return false;
43353
43500
  }