@dominevo/addon-pipeline-orchestrator 0.1.8 → 0.1.10

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
@@ -11332,7 +11332,14 @@ var appSourceCapability = {
11332
11332
  methods: { listApps: /* @__PURE__ */ method(/* @__PURE__ */ _void(), /* @__PURE__ */ array(/* @__PURE__ */ object({
11333
11333
  id: /* @__PURE__ */ string(),
11334
11334
  label: AppLabelSchema,
11335
- icon: /* @__PURE__ */ string(),
11335
+ icon: /* @__PURE__ */ discriminatedUnion("kind", [/* @__PURE__ */ object({
11336
+ kind: /* @__PURE__ */ literal("glyph"),
11337
+ name: /* @__PURE__ */ string().min(1)
11338
+ }), /* @__PURE__ */ object({
11339
+ kind: /* @__PURE__ */ literal("image"),
11340
+ asset: /* @__PURE__ */ string().min(1),
11341
+ darkAsset: /* @__PURE__ */ string().min(1).optional()
11342
+ })]),
11336
11343
  order: /* @__PURE__ */ number().optional(),
11337
11344
  entry: AppEntrySchema,
11338
11345
  reach: AppReachSchema,
@@ -12336,6 +12343,8 @@ var CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS = [
12336
12343
  var CLUSTER_MODEL_SCOPED_STEPS = [{
12337
12344
  stepId: "face-embedding",
12338
12345
  label: "Face recognition model",
12346
+ labelKey: "server:cluster_step_models.face-embedding.label",
12347
+ descriptionKey: "server:cluster_step_models.face-embedding.description",
12339
12348
  defaultModelId: "auraface-r100",
12340
12349
  indexName: "the enrolled face gallery",
12341
12350
  options: [{
@@ -12345,6 +12354,8 @@ var CLUSTER_MODEL_SCOPED_STEPS = [{
12345
12354
  }, {
12346
12355
  stepId: "clip-embedding",
12347
12356
  label: "Semantic search model",
12357
+ labelKey: "server:cluster_step_models.clip-embedding.label",
12358
+ descriptionKey: "server:cluster_step_models.clip-embedding.description",
12348
12359
  defaultModelId: "siglip2-b16-224",
12349
12360
  indexName: "the object semantic-search index",
12350
12361
  options: [{
@@ -12384,7 +12395,9 @@ var CLUSTER_STEP_SETTING_FIELDS = [{
12384
12395
  stepId: "face-embedding",
12385
12396
  key: "minLandmarkFaceSize",
12386
12397
  label: "Min face size to embed (detection-frame px)",
12398
+ labelKey: "server:cluster_step_setting_fields.minLandmarkFaceSize.label",
12387
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",
12388
12401
  type: "slider",
12389
12402
  min: 0,
12390
12403
  max: 64,
@@ -14010,6 +14023,7 @@ var RunnerCameraDeviceUIFields = [
14010
14023
  key: "motionSources",
14011
14024
  type: "multiselect",
14012
14025
  label: "Motion Sources",
14026
+ labelKey: "server:runnerCameraDeviceUIFields.motionSources.label",
14013
14027
  default: ["analyzer"],
14014
14028
  options: /* @__PURE__ */ MOTION_SOURCE_PICKER_ORDER.map((value) => value === "onboard" ? {
14015
14029
  value,
@@ -14024,6 +14038,7 @@ var RunnerCameraDeviceUIFields = [
14024
14038
  key: "motionFps",
14025
14039
  type: "slider",
14026
14040
  label: "Motion FPS (analyzer)",
14041
+ labelKey: "server:runnerCameraDeviceUIFields.motionFps.label",
14027
14042
  min: motionFpsField.min,
14028
14043
  max: motionFpsField.max,
14029
14044
  step: motionFpsField.step,
@@ -14041,6 +14056,7 @@ var RunnerCameraDeviceUIFields = [
14041
14056
  key: "detectionFps",
14042
14057
  type: "slider",
14043
14058
  label: "Detection FPS",
14059
+ labelKey: "server:runnerCameraDeviceUIFields.detectionFps.label",
14044
14060
  min: detectionFpsField.min,
14045
14061
  max: detectionFpsField.max,
14046
14062
  step: detectionFpsField.step,
@@ -14054,7 +14070,9 @@ var RunnerCameraDeviceUIFields = [
14054
14070
  key: "motionCooldownMs",
14055
14071
  type: "slider",
14056
14072
  label: "Motion Cooldown",
14073
+ labelKey: "server:runnerCameraDeviceUIFields.motionCooldownMs.label",
14057
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",
14058
14076
  min: motionCooldownMsField.min,
14059
14077
  max: motionCooldownMsField.max,
14060
14078
  step: motionCooldownMsField.step,
@@ -14069,7 +14087,9 @@ var RunnerCameraDeviceUIFields = [
14069
14087
  key: "maxSessionHoldMs",
14070
14088
  type: "slider",
14071
14089
  label: "Max session hold",
14090
+ labelKey: "server:runnerCameraDeviceUIFields.maxSessionHoldMs.label",
14072
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",
14073
14093
  min: maxSessionHoldMsField.min,
14074
14094
  max: maxSessionHoldMsField.max,
14075
14095
  step: maxSessionHoldMsField.step,
@@ -14084,7 +14104,9 @@ var RunnerCameraDeviceUIFields = [
14084
14104
  key: "audioMotionWindowMs",
14085
14105
  type: "slider",
14086
14106
  label: "Audio window after motion",
14107
+ labelKey: "server:runnerCameraDeviceUIFields.audioMotionWindowMs.label",
14087
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",
14088
14110
  min: audioMotionWindowMsField.min,
14089
14111
  max: audioMotionWindowMsField.max,
14090
14112
  step: audioMotionWindowMsField.step,
@@ -14103,7 +14125,9 @@ var RunnerCameraDeviceUIFields = [
14103
14125
  key: "onboardMotionDrivesAnalyzer",
14104
14126
  type: "boolean",
14105
14127
  label: "Run motion analyzer on onboard motion",
14128
+ labelKey: "server:runnerCameraDeviceUIFields.onboardMotionDrivesAnalyzer.label",
14106
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",
14107
14131
  default: true,
14108
14132
  showWhen: {
14109
14133
  field: "motionSources",
@@ -14115,14 +14139,18 @@ var RunnerCameraDeviceUIFields = [
14115
14139
  type: "boolean",
14116
14140
  style: "checkbox",
14117
14141
  label: "Detect in the pre-roll",
14142
+ labelKey: "server:runnerCameraDeviceUIFields.preRollInferenceEnabled.label",
14118
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",
14119
14145
  default: true
14120
14146
  },
14121
14147
  {
14122
14148
  key: "preRollInferenceFrames",
14123
14149
  type: "slider",
14124
14150
  label: "Pre-roll frames",
14151
+ labelKey: "server:runnerCameraDeviceUIFields.preRollInferenceFrames.label",
14125
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",
14126
14154
  min: preRollInferenceFramesField.min,
14127
14155
  max: preRollInferenceFramesField.max,
14128
14156
  step: preRollInferenceFramesField.step,
@@ -14138,14 +14166,18 @@ var RunnerCameraDeviceUIFields = [
14138
14166
  type: "boolean",
14139
14167
  style: "checkbox",
14140
14168
  label: "Occupancy re-check",
14169
+ labelKey: "server:runnerCameraDeviceUIFields.occupancyRecheckEnabled.label",
14141
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",
14142
14172
  default: true
14143
14173
  },
14144
14174
  {
14145
14175
  key: "occupancyRecheckSec",
14146
14176
  type: "slider",
14147
14177
  label: "Occupancy re-check interval",
14178
+ labelKey: "server:runnerCameraDeviceUIFields.occupancyRecheckSec.label",
14148
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",
14149
14181
  min: occupancyRecheckSecField.min,
14150
14182
  max: occupancyRecheckSecField.max,
14151
14183
  step: occupancyRecheckSecField.step,
@@ -14161,7 +14193,9 @@ var RunnerCameraDeviceUIFields = [
14161
14193
  key: "occupancyRecheckFrames",
14162
14194
  type: "slider",
14163
14195
  label: "Occupancy re-check frames",
14196
+ labelKey: "server:runnerCameraDeviceUIFields.occupancyRecheckFrames.label",
14164
14197
  description: "Number of frames sampled per occupancy re-check burst.",
14198
+ descriptionKey: "server:runnerCameraDeviceUIFields.occupancyRecheckFrames.description",
14165
14199
  min: occupancyRecheckFramesField.min,
14166
14200
  max: occupancyRecheckFramesField.max,
14167
14201
  step: occupancyRecheckFramesField.step,
@@ -18185,6 +18219,17 @@ function customAction(input, output, options) {
18185
18219
  };
18186
18220
  }
18187
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
18188
18233
  //#region ../types/dist/esm/device/device-profile.mjs
18189
18234
  /**
18190
18235
  * Heuristic check — `device.features?.includes(profile.when.hasFeature)`.
@@ -26402,7 +26447,7 @@ async function readSwitchAuthorities(api, deviceId, deps, sharedPass) {
26402
26447
  const providers = /* @__PURE__ */ new Map();
26403
26448
  for (const e of row.entries) {
26404
26449
  all.push(e.capName);
26405
- if (e.kind !== "wrapped") continue;
26450
+ if (!isWrapperBinding(e)) continue;
26406
26451
  active.push(e.capName);
26407
26452
  if (e.providerAddonId !== "") providers.set(e.capName, e.providerAddonId);
26408
26453
  }
@@ -28984,6 +29029,7 @@ var DeviceConfigContributions = class {
28984
29029
  const zonesSection = {
28985
29030
  id: "zones",
28986
29031
  title: "Detection Zones",
29032
+ titleKey: "pipeline-orchestrator:zonesSection.s_zones.title",
28987
29033
  tab: "zones",
28988
29034
  location: "top-tab",
28989
29035
  columns: 1,
@@ -28992,6 +29038,7 @@ var DeviceConfigContributions = class {
28992
29038
  type: "widget",
28993
29039
  key: "zones",
28994
29040
  label: "Detection Zones",
29041
+ labelKey: "pipeline-orchestrator:zonesSection.s_zones.zones.label",
28995
29042
  widgetId: "pipeline-orchestrator/zone-editor",
28996
29043
  span: 1
28997
29044
  }]
@@ -29004,6 +29051,7 @@ var DeviceConfigContributions = class {
29004
29051
  return { sections: [{
29005
29052
  id: "orchestrator-live",
29006
29053
  title: "Pipeline Status",
29054
+ titleKey: "pipeline-orchestrator:deviceConfigContributions.deviceLiveContribution.s_orchestrator-live.title",
29007
29055
  tab: "detection-pipeline",
29008
29056
  location: "top-tab",
29009
29057
  order: 100,
@@ -29011,12 +29059,14 @@ var DeviceConfigContributions = class {
29011
29059
  type: "text",
29012
29060
  key: "assignedRunner",
29013
29061
  label: "Assigned Runner",
29062
+ labelKey: "pipeline-orchestrator:deviceConfigContributions.deviceLiveContribution.s_orchestrator-live.assignedRunner.label",
29014
29063
  readonlyField: true,
29015
29064
  value: assignment.agentNodeId
29016
29065
  }, {
29017
29066
  type: "text",
29018
29067
  key: "assignmentReason",
29019
29068
  label: "Assignment Reason",
29069
+ labelKey: "pipeline-orchestrator:deviceConfigContributions.deviceLiveContribution.s_orchestrator-live.assignmentReason.label",
29020
29070
  readonlyField: true,
29021
29071
  value: assignment.pinned ? "pinned" : assignment.reason
29022
29072
  }]
@@ -33444,7 +33494,7 @@ var PipelineSettingsStore = class PipelineSettingsStore {
33444
33494
  const api = this.deps.api();
33445
33495
  if (!api) return true;
33446
33496
  try {
33447
- 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));
33448
33498
  } catch (err) {
33449
33499
  this.deps.logger.warn("binding lookup failed — defaulting cap:active", {
33450
33500
  tags: { deviceId },
@@ -38675,14 +38725,18 @@ function buildGlobalSettingsSections(options) {
38675
38725
  {
38676
38726
  id: "cluster",
38677
38727
  title: "Cluster Roles",
38728
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_cluster.title",
38678
38729
  tab: "pipeline",
38679
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",
38680
38732
  fields: [
38681
38733
  {
38682
38734
  key: "ingestNode",
38683
38735
  type: "node-select",
38684
38736
  label: "Ingest Node",
38737
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_cluster.ingestNode.label",
38685
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",
38686
38740
  default: "hub",
38687
38741
  showOffline: true
38688
38742
  },
@@ -38690,7 +38744,9 @@ function buildGlobalSettingsSections(options) {
38690
38744
  key: "audioNode",
38691
38745
  type: "node-select",
38692
38746
  label: "Audio Node",
38747
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_cluster.audioNode.label",
38693
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",
38694
38750
  default: "hub",
38695
38751
  showOffline: true
38696
38752
  },
@@ -38698,28 +38754,35 @@ function buildGlobalSettingsSections(options) {
38698
38754
  key: "motionNode",
38699
38755
  type: "node-select",
38700
38756
  label: "Motion Node",
38757
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_cluster.motionNode.label",
38701
38758
  default: "hub",
38702
38759
  showOffline: true,
38703
- 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"
38704
38762
  }
38705
38763
  ]
38706
38764
  },
38707
38765
  {
38708
38766
  id: "load",
38709
38767
  title: "Load Balancer",
38768
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_load.title",
38710
38769
  tab: "pipeline",
38711
38770
  fields: [
38712
38771
  {
38713
38772
  key: SESSION_PLACEMENT_SETTING_KEY,
38714
38773
  type: "select",
38715
38774
  label: "Session placement",
38775
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.sessionPlacement.label",
38716
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",
38717
38778
  options: [{
38718
38779
  value: "share",
38719
- label: "Honour shares"
38780
+ label: "Honour shares",
38781
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.o_share.label"
38720
38782
  }, {
38721
38783
  value: "least-loaded",
38722
- label: "Least-loaded"
38784
+ label: "Least-loaded",
38785
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.o_least-loaded.label"
38723
38786
  }],
38724
38787
  default: DEFAULT_SESSION_PLACEMENT_POLICY
38725
38788
  },
@@ -38727,7 +38790,9 @@ function buildGlobalSettingsSections(options) {
38727
38790
  key: "fpsMinThreshold",
38728
38791
  type: "slider",
38729
38792
  label: "Min FPS Threshold",
38793
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.fpsMinThreshold.label",
38730
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",
38731
38796
  min: 0,
38732
38797
  max: 10,
38733
38798
  step: 1,
@@ -38739,19 +38804,24 @@ function buildGlobalSettingsSections(options) {
38739
38804
  key: "nodeStressMode",
38740
38805
  type: "select",
38741
38806
  label: "Node stress handling",
38807
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.nodeStressMode.label",
38742
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",
38743
38810
  options: [
38744
38811
  {
38745
38812
  value: "off",
38746
- label: "Off"
38813
+ label: "Off",
38814
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.nodeStressMode.o_off.label"
38747
38815
  },
38748
38816
  {
38749
38817
  value: "observe",
38750
- label: "Observe (log only)"
38818
+ label: "Observe (log only)",
38819
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.nodeStressMode.o_observe.label"
38751
38820
  },
38752
38821
  {
38753
38822
  value: "failover",
38754
- label: "Failover (relocate a camera)"
38823
+ label: "Failover (relocate a camera)",
38824
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.nodeStressMode.o_failover.label"
38755
38825
  }
38756
38826
  ],
38757
38827
  default: "failover"
@@ -38760,7 +38830,9 @@ function buildGlobalSettingsSections(options) {
38760
38830
  key: "fpsLowWindowMs",
38761
38831
  type: "slider",
38762
38832
  label: "Low FPS Window",
38833
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_load.fpsLowWindowMs.label",
38763
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",
38764
38836
  min: 5e3,
38765
38837
  max: 6e5,
38766
38838
  step: 5e3,
@@ -38774,13 +38846,17 @@ function buildGlobalSettingsSections(options) {
38774
38846
  {
38775
38847
  id: CLUSTER_MODEL_SECTION_ID,
38776
38848
  title: "Enrichment models",
38849
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_cluster-step-models.title",
38777
38850
  tab: "pipeline",
38778
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",
38779
38853
  fields: [...CLUSTER_MODEL_SCOPED_STEPS.map((step) => ({
38780
38854
  key: clusterModelSettingKey(step.stepId),
38781
38855
  type: "select",
38782
38856
  label: step.label,
38857
+ labelKey: step.labelKey,
38783
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,
38784
38860
  options: step.options.map((o) => ({
38785
38861
  value: o.id,
38786
38862
  label: o.label
@@ -38790,7 +38866,9 @@ function buildGlobalSettingsSections(options) {
38790
38866
  key: clusterStepSettingKey(field.stepId, field.key),
38791
38867
  type: "slider",
38792
38868
  label: field.label,
38869
+ labelKey: field.labelKey,
38793
38870
  description: field.description,
38871
+ descriptionKey: field.descriptionKey,
38794
38872
  min: field.min,
38795
38873
  max: field.max,
38796
38874
  step: field.step,
@@ -38801,13 +38879,17 @@ function buildGlobalSettingsSections(options) {
38801
38879
  {
38802
38880
  id: DETAIL_CROP_SECTION_ID,
38803
38881
  title: "Enrichment crop",
38882
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_detail-crop.title",
38804
38883
  tab: "pipeline",
38805
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",
38806
38886
  fields: [{
38807
38887
  key: DETAIL_CROP_PADDING_KEY,
38808
38888
  type: "slider",
38809
38889
  label: "Crop margin",
38890
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_detail-crop.detailCropPaddingRatio.label",
38810
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",
38811
38893
  min: DETAIL_CROP_PADDING_FIELD.min,
38812
38894
  max: DETAIL_CROP_PADDING_FIELD.max,
38813
38895
  step: DETAIL_CROP_PADDING_FIELD.step,
@@ -38817,20 +38899,26 @@ function buildGlobalSettingsSections(options) {
38817
38899
  key: DETAIL_CROP_SQUARE_KEY,
38818
38900
  type: "boolean",
38819
38901
  label: "Square the crop",
38902
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_detail-crop.detailCropSquare.label",
38820
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",
38821
38905
  default: DEFAULT_DETAIL_CROP_CONVENTION.square
38822
38906
  }]
38823
38907
  },
38824
38908
  {
38825
38909
  id: FACE_RESCORE_SECTION_ID,
38826
38910
  title: "Face suggestions",
38911
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_face-rescore.title",
38827
38912
  tab: "pipeline",
38828
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",
38829
38915
  fields: [{
38830
38916
  key: FACE_RESCORE_INTERVAL_KEY,
38831
38917
  type: "slider",
38832
38918
  label: "Suggestion refresh interval",
38919
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_face-rescore.faceRescoreIntervalMinutes.label",
38833
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",
38834
38922
  min: FACE_RESCORE_INTERVAL_FIELD.min,
38835
38923
  max: FACE_RESCORE_INTERVAL_FIELD.max,
38836
38924
  step: FACE_RESCORE_INTERVAL_FIELD.step,
@@ -38842,14 +38930,18 @@ function buildGlobalSettingsSections(options) {
38842
38930
  {
38843
38931
  id: NATIVE_LEASE_SECTION_ID,
38844
38932
  title: "Native frame lease",
38933
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.title",
38845
38934
  tab: "pipeline",
38846
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",
38847
38937
  fields: [
38848
38938
  {
38849
38939
  key: NATIVE_LEASE_HOLD_KEY,
38850
38940
  type: "slider",
38851
38941
  label: "Frames held at once",
38942
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeLeaseHoldFrames.label",
38852
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",
38853
38945
  min: NATIVE_LEASE_HOLD_FIELD.min,
38854
38946
  max: NATIVE_LEASE_HOLD_FIELD.max,
38855
38947
  step: NATIVE_LEASE_HOLD_FIELD.step,
@@ -38861,7 +38953,9 @@ function buildGlobalSettingsSections(options) {
38861
38953
  key: NATIVE_LEASE_TILE_BUDGET_KEY,
38862
38954
  type: "slider",
38863
38955
  label: "Subject tile RAM",
38956
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeTileBudgetMb.label",
38864
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",
38865
38959
  min: NATIVE_LEASE_TILE_BUDGET_FIELD.min,
38866
38960
  max: NATIVE_LEASE_TILE_BUDGET_FIELD.max,
38867
38961
  step: NATIVE_LEASE_TILE_BUDGET_FIELD.step,
@@ -38873,7 +38967,9 @@ function buildGlobalSettingsSections(options) {
38873
38967
  key: NATIVE_LEASE_SCENE_BUDGET_KEY,
38874
38968
  type: "slider",
38875
38969
  label: "Scene tile RAM",
38970
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeSceneBudgetMb.label",
38876
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",
38877
38973
  min: NATIVE_LEASE_SCENE_BUDGET_FIELD.min,
38878
38974
  max: NATIVE_LEASE_SCENE_BUDGET_FIELD.max,
38879
38975
  step: NATIVE_LEASE_SCENE_BUDGET_FIELD.step,
@@ -38885,7 +38981,9 @@ function buildGlobalSettingsSections(options) {
38885
38981
  key: NATIVE_LEASE_BUDGET_KEY,
38886
38982
  type: "slider",
38887
38983
  label: "Lease RAM ceiling",
38984
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeLeaseBudgetMb.label",
38888
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",
38889
38987
  min: NATIVE_LEASE_BUDGET_FIELD.min,
38890
38988
  max: NATIVE_LEASE_BUDGET_FIELD.max,
38891
38989
  step: NATIVE_LEASE_BUDGET_FIELD.step,
@@ -38897,7 +38995,9 @@ function buildGlobalSettingsSections(options) {
38897
38995
  key: NATIVE_LEASE_ACTIVITY_KEY,
38898
38996
  type: "slider",
38899
38997
  label: "Demand window",
38998
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeLeaseActivityMs.label",
38900
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",
38901
39001
  min: NATIVE_LEASE_ACTIVITY_FIELD.min,
38902
39002
  max: NATIVE_LEASE_ACTIVITY_FIELD.max,
38903
39003
  step: NATIVE_LEASE_ACTIVITY_FIELD.step,
@@ -38910,7 +39010,9 @@ function buildGlobalSettingsSections(options) {
38910
39010
  key: NATIVE_LEASE_ADMISSION_KEY,
38911
39011
  type: "select",
38912
39012
  label: "What to retain",
39013
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_native-lease.nativeLeaseAdmission.label",
38913
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",
38914
39016
  options: NATIVE_LEASE_ADMISSION_FIELD.options,
38915
39017
  default: NATIVE_LEASE_ADMISSION_FIELD.default
38916
39018
  }
@@ -38919,47 +39021,60 @@ function buildGlobalSettingsSections(options) {
38919
39021
  {
38920
39022
  id: "failover",
38921
39023
  title: "Failover Policy",
39024
+ titleKey: "pipeline-orchestrator:globalSettingsSections.s_failover.title",
38922
39025
  fields: [
38923
39026
  {
38924
39027
  key: "onDisconnect",
38925
39028
  type: "select",
38926
39029
  label: "When a node disconnects",
39030
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onDisconnect.label",
38927
39031
  description: "Move its unpinned cameras to other nodes, or leave them stopped.",
39032
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onDisconnect.description",
38928
39033
  default: DEFAULT_FAILOVER_POLICY.onDisconnect,
38929
39034
  options: [{
38930
39035
  value: "migrate",
38931
- label: "Migrate non-pinned cameras"
39036
+ label: "Migrate non-pinned cameras",
39037
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onDisconnect.o_migrate.label"
38932
39038
  }, {
38933
39039
  value: "leave-unassigned",
38934
- label: "Leave all cameras unassigned"
39040
+ label: "Leave all cameras unassigned",
39041
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onDisconnect.o_leave-unassigned.label"
38935
39042
  }]
38936
39043
  },
38937
39044
  {
38938
39045
  key: "pinnedOnDisconnect",
38939
39046
  type: "select",
38940
39047
  label: "Its pinned cameras",
39048
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.pinnedOnDisconnect.label",
38941
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",
38942
39051
  default: DEFAULT_FAILOVER_POLICY.pinnedOnDisconnect,
38943
39052
  options: [{
38944
39053
  value: "leave-pinned",
38945
- label: "Leave pinned, unassigned"
39054
+ label: "Leave pinned, unassigned",
39055
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.pinnedOnDisconnect.o_leave-pinned.label"
38946
39056
  }, {
38947
39057
  value: "unpin-and-migrate",
38948
- label: "Auto-unpin and migrate"
39058
+ label: "Auto-unpin and migrate",
39059
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.pinnedOnDisconnect.o_unpin-and-migrate.label"
38949
39060
  }]
38950
39061
  },
38951
39062
  {
38952
39063
  key: "onReconnect",
38953
39064
  type: "select",
38954
39065
  label: "When it comes back",
39066
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onReconnect.label",
38955
39067
  description: "Put its cameras back where they were, or rebalance the whole cluster.",
39068
+ descriptionKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onReconnect.description",
38956
39069
  default: DEFAULT_FAILOVER_POLICY.onReconnect,
38957
39070
  options: [{
38958
39071
  value: "restore",
38959
- label: "Restore previous assignments"
39072
+ label: "Restore previous assignments",
39073
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onReconnect.o_restore.label"
38960
39074
  }, {
38961
39075
  value: "rebalance",
38962
- label: "Trigger full rebalance"
39076
+ label: "Trigger full rebalance",
39077
+ labelKey: "pipeline-orchestrator:globalSettingsSections.s_failover.onReconnect.o_rebalance.label"
38963
39078
  }]
38964
39079
  }
38965
39080
  ]
@@ -38972,6 +39087,7 @@ function buildDeviceSettingsSections(nodeOptions) {
38972
39087
  {
38973
39088
  id: "motion-tuning",
38974
39089
  title: "Motion",
39090
+ titleKey: "pipeline-orchestrator:deviceSettingsSections.s_motion-tuning.title",
38975
39091
  tab: "detection-pipeline",
38976
39092
  location: "top-tab",
38977
39093
  order: 4,
@@ -38979,19 +39095,23 @@ function buildDeviceSettingsSections(nodeOptions) {
38979
39095
  key: "motionStreamProfile",
38980
39096
  type: "select",
38981
39097
  label: "Motion Stream (analyzer)",
39098
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_motion-tuning.motionStreamProfile.label",
38982
39099
  default: "low",
38983
39100
  options: [
38984
39101
  {
38985
39102
  value: "high",
38986
- label: "High"
39103
+ label: "High",
39104
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_motion-tuning.motionStreamProfile.o_high.label"
38987
39105
  },
38988
39106
  {
38989
39107
  value: "mid",
38990
- label: "Medium"
39108
+ label: "Medium",
39109
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_motion-tuning.motionStreamProfile.o_mid.label"
38991
39110
  },
38992
39111
  {
38993
39112
  value: "low",
38994
- label: "Low"
39113
+ label: "Low",
39114
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_motion-tuning.motionStreamProfile.o_low.label"
38995
39115
  }
38996
39116
  ],
38997
39117
  showWhen: {
@@ -39003,28 +39123,34 @@ function buildDeviceSettingsSections(nodeOptions) {
39003
39123
  {
39004
39124
  id: "pipeline-object-detection",
39005
39125
  title: "Object Detection",
39126
+ titleKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.title",
39006
39127
  tab: "detection-pipeline",
39007
39128
  location: "top-tab",
39008
39129
  order: 5,
39009
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",
39010
39132
  fields: [
39011
39133
  {
39012
39134
  key: "detectionMode",
39013
39135
  type: "select",
39014
39136
  label: "Object detection",
39137
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionMode.label",
39015
39138
  default: "on-motion",
39016
39139
  options: [
39017
39140
  {
39018
39141
  value: "disabled",
39019
- label: "Disabled"
39142
+ label: "Disabled",
39143
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionMode.o_disabled.label"
39020
39144
  },
39021
39145
  {
39022
39146
  value: "always-on",
39023
- label: "Always on"
39147
+ label: "Always on",
39148
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionMode.o_always-on.label"
39024
39149
  },
39025
39150
  {
39026
39151
  value: "on-motion",
39027
- 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"
39028
39154
  }
39029
39155
  ]
39030
39156
  },
@@ -39032,19 +39158,23 @@ function buildDeviceSettingsSections(nodeOptions) {
39032
39158
  key: "detectionStreamProfile",
39033
39159
  type: "select",
39034
39160
  label: "Detection Stream",
39161
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionStreamProfile.label",
39035
39162
  default: "high",
39036
39163
  options: [
39037
39164
  {
39038
39165
  value: "high",
39039
- label: "High"
39166
+ label: "High",
39167
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionStreamProfile.o_high.label"
39040
39168
  },
39041
39169
  {
39042
39170
  value: "mid",
39043
- label: "Medium"
39171
+ label: "Medium",
39172
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionStreamProfile.o_mid.label"
39044
39173
  },
39045
39174
  {
39046
39175
  value: "low",
39047
- label: "Low"
39176
+ label: "Low",
39177
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionStreamProfile.o_low.label"
39048
39178
  }
39049
39179
  ],
39050
39180
  showWhen: {
@@ -39056,6 +39186,7 @@ function buildDeviceSettingsSections(nodeOptions) {
39056
39186
  key: "detectionFps",
39057
39187
  type: "slider",
39058
39188
  label: "Detection FPS",
39189
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionFps.label",
39059
39190
  min: 1,
39060
39191
  max: 30,
39061
39192
  step: 1,
@@ -39063,6 +39194,7 @@ function buildDeviceSettingsSections(nodeOptions) {
39063
39194
  showValue: true,
39064
39195
  unit: "fps",
39065
39196
  description: "Maximum frames decoded and sent to object detection each second",
39197
+ descriptionKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.detectionFps.description",
39066
39198
  showWhen: {
39067
39199
  field: "detectionMode",
39068
39200
  notEquals: "disabled"
@@ -39072,6 +39204,7 @@ function buildDeviceSettingsSections(nodeOptions) {
39072
39204
  key: "activityDetectionFps",
39073
39205
  type: "slider",
39074
39206
  label: "Detection FPS while the device is working",
39207
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-object-detection.activityDetectionFps.label",
39075
39208
  min: 1,
39076
39209
  max: 10,
39077
39210
  step: 1,
@@ -39079,6 +39212,7 @@ function buildDeviceSettingsSections(nodeOptions) {
39079
39212
  showValue: true,
39080
39213
  unit: "fps",
39081
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",
39082
39216
  showWhen: {
39083
39217
  field: "motionSources",
39084
39218
  includes: "device-activity"
@@ -39089,51 +39223,63 @@ function buildDeviceSettingsSections(nodeOptions) {
39089
39223
  {
39090
39224
  id: "pipeline-audio",
39091
39225
  title: "Audio classification",
39226
+ titleKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.title",
39092
39227
  tab: "detection-pipeline",
39093
39228
  location: "top-tab",
39094
39229
  order: 6,
39095
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",
39096
39232
  fields: [{
39097
39233
  key: "audioMode",
39098
39234
  type: "select",
39099
39235
  label: "Audio classification",
39236
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioMode.label",
39100
39237
  default: "always-on",
39101
39238
  options: [
39102
39239
  {
39103
39240
  value: "disabled",
39104
- label: "Disabled"
39241
+ label: "Disabled",
39242
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioMode.o_disabled.label"
39105
39243
  },
39106
39244
  {
39107
39245
  value: "always-on",
39108
- label: "Always on"
39246
+ label: "Always on",
39247
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioMode.o_always-on.label"
39109
39248
  },
39110
39249
  {
39111
39250
  value: "on-motion",
39112
- 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"
39113
39253
  }
39114
39254
  ]
39115
39255
  }, {
39116
39256
  key: "audioStreamPick",
39117
39257
  type: "select",
39118
39258
  label: "Audio stream",
39259
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioStreamPick.label",
39119
39260
  default: "auto",
39120
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",
39121
39263
  options: [
39122
39264
  {
39123
39265
  value: "auto",
39124
- label: "Auto (lowest native)"
39266
+ label: "Auto (lowest native)",
39267
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioStreamPick.o_auto.label"
39125
39268
  },
39126
39269
  {
39127
39270
  value: "high",
39128
- label: "High"
39271
+ label: "High",
39272
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioStreamPick.o_high.label"
39129
39273
  },
39130
39274
  {
39131
39275
  value: "mid",
39132
- label: "Medium"
39276
+ label: "Medium",
39277
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioStreamPick.o_mid.label"
39133
39278
  },
39134
39279
  {
39135
39280
  value: "low",
39136
- label: "Low"
39281
+ label: "Low",
39282
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_pipeline-audio.audioStreamPick.o_low.label"
39137
39283
  }
39138
39284
  ],
39139
39285
  showWhen: {
@@ -39145,24 +39291,29 @@ function buildDeviceSettingsSections(nodeOptions) {
39145
39291
  {
39146
39292
  id: "occupancy",
39147
39293
  title: "Occupancy",
39294
+ titleKey: "pipeline-orchestrator:deviceSettingsSections.s_occupancy.title",
39148
39295
  tab: "detection-pipeline",
39149
39296
  location: "top-tab",
39150
39297
  order: 7,
39151
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",
39152
39300
  fields: RunnerCameraDeviceUIFields.filter((f) => f.key === "occupancyRecheckSec" || f.key === "occupancyRecheckFrames")
39153
39301
  },
39154
39302
  {
39155
39303
  id: "pre-roll-detection",
39156
39304
  title: "Pre-roll detection",
39305
+ titleKey: "pipeline-orchestrator:deviceSettingsSections.s_pre-roll-detection.title",
39157
39306
  tab: "detection-pipeline",
39158
39307
  location: "top-tab",
39159
39308
  order: 8,
39160
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",
39161
39311
  fields: RunnerCameraDeviceUIFields.filter((f) => f.key === "preRollInferenceEnabled" || f.key === "preRollInferenceFrames")
39162
39312
  },
39163
39313
  {
39164
39314
  id: "cluster-assignment",
39165
39315
  title: "Cluster Assignment",
39316
+ titleKey: "pipeline-orchestrator:deviceSettingsSections.s_cluster-assignment.title",
39166
39317
  tab: "detection-pipeline",
39167
39318
  location: "top-tab",
39168
39319
  order: 10,
@@ -39170,10 +39321,13 @@ function buildDeviceSettingsSections(nodeOptions) {
39170
39321
  key: "pipelineNodeId",
39171
39322
  type: "select",
39172
39323
  label: "Pipeline Node",
39324
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_cluster-assignment.pipelineNodeId.label",
39173
39325
  description: "Which node runs the detection pipeline for this camera.",
39326
+ descriptionKey: "pipeline-orchestrator:deviceSettingsSections.s_cluster-assignment.pipelineNodeId.description",
39174
39327
  options: [{
39175
39328
  value: "auto",
39176
- label: "Auto (load balanced)"
39329
+ label: "Auto (load balanced)",
39330
+ labelKey: "pipeline-orchestrator:deviceSettingsSections.s_cluster-assignment.pipelineNodeId.o_auto.label"
39177
39331
  }, ...nodeOptions.runnerNodeIds.map((id) => ({
39178
39332
  value: id,
39179
39333
  label: id
@@ -39364,7 +39518,10 @@ function buildViewerApp() {
39364
39518
  key: "apps.viewer",
39365
39519
  fallback: "Viewer"
39366
39520
  },
39367
- icon: "monitor",
39521
+ icon: {
39522
+ kind: "image",
39523
+ asset: "assets/viewer/favicon.svg"
39524
+ },
39368
39525
  order: 10,
39369
39526
  entry: {
39370
39527
  kind: "web",
@@ -43269,7 +43426,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
43269
43426
  const api = this.api;
43270
43427
  if (!api) return true;
43271
43428
  try {
43272
- 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));
43273
43430
  } catch (err) {
43274
43431
  this.ctx.logger.warn("binding lookup failed — defaulting cap:active", {
43275
43432
  tags: { deviceId },
@@ -43314,7 +43471,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
43314
43471
  const api = this.api;
43315
43472
  if (!api) return false;
43316
43473
  try {
43317
- 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");
43318
43475
  } catch {
43319
43476
  return false;
43320
43477
  }
@@ -43323,7 +43480,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
43323
43480
  const api = this.api;
43324
43481
  if (!api) return false;
43325
43482
  try {
43326
- 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"));
43327
43484
  } catch {
43328
43485
  return false;
43329
43486
  }
@@ -43337,7 +43494,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
43337
43494
  const api = this.api;
43338
43495
  if (!api) return false;
43339
43496
  try {
43340
- 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");
43341
43498
  } catch {
43342
43499
  return false;
43343
43500
  }