@camstack/addon-pipeline 1.2.237 → 1.2.238

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.
@@ -5791,19 +5791,27 @@ var PipelineRunner = class {
5791
5791
  if (entry.frame.frameRef) this.config.releaseFrameRef?.(entry.frame.frameRef, "drop");
5792
5792
  });
5793
5793
  const initialPhase = registration.detectionMode === "disabled" ? "idle" : registration.detectionMode === "always-on" ? "active" : "watching";
5794
+ const preRollQueue = new PreRollLane({
5795
+ capacity: this.config.maxPreRollQueueDepth ?? 12,
5796
+ clone: ownDetectionEntry,
5797
+ dispose: (entry) => {
5798
+ if (entry.handle) this.config.releaseRetention?.(entry.handle, "drop");
5799
+ if (entry.frame.frameRef) this.config.releaseFrameRef?.(entry.frame.frameRef, "drop");
5800
+ }
5801
+ });
5802
+ this.logger?.info("camera registered: root detectors", {
5803
+ tags: { deviceId },
5804
+ meta: {
5805
+ detectionSources: registration.detectionSources ?? null,
5806
+ ...planDetectionSources(registration.detectionSources)
5807
+ }
5808
+ });
5794
5809
  const state = {
5795
5810
  registration,
5796
5811
  onboardSlot: null,
5797
5812
  motionQueue,
5798
5813
  detectionQueue,
5799
- preRollQueue: new PreRollLane({
5800
- capacity: this.config.maxPreRollQueueDepth ?? 12,
5801
- clone: ownDetectionEntry,
5802
- dispose: (entry) => {
5803
- if (entry.handle) this.config.releaseRetention?.(entry.handle, "drop");
5804
- if (entry.frame.frameRef) this.config.releaseFrameRef?.(entry.frame.frameRef, "drop");
5805
- }
5806
- }),
5814
+ preRollQueue,
5807
5815
  inferenceTimes: [],
5808
5816
  shedFrames: 0,
5809
5817
  inflight: 0,
@@ -5783,19 +5783,27 @@ var PipelineRunner = class {
5783
5783
  if (entry.frame.frameRef) this.config.releaseFrameRef?.(entry.frame.frameRef, "drop");
5784
5784
  });
5785
5785
  const initialPhase = registration.detectionMode === "disabled" ? "idle" : registration.detectionMode === "always-on" ? "active" : "watching";
5786
+ const preRollQueue = new PreRollLane({
5787
+ capacity: this.config.maxPreRollQueueDepth ?? 12,
5788
+ clone: ownDetectionEntry,
5789
+ dispose: (entry) => {
5790
+ if (entry.handle) this.config.releaseRetention?.(entry.handle, "drop");
5791
+ if (entry.frame.frameRef) this.config.releaseFrameRef?.(entry.frame.frameRef, "drop");
5792
+ }
5793
+ });
5794
+ this.logger?.info("camera registered: root detectors", {
5795
+ tags: { deviceId },
5796
+ meta: {
5797
+ detectionSources: registration.detectionSources ?? null,
5798
+ ...planDetectionSources(registration.detectionSources)
5799
+ }
5800
+ });
5786
5801
  const state = {
5787
5802
  registration,
5788
5803
  onboardSlot: null,
5789
5804
  motionQueue,
5790
5805
  detectionQueue,
5791
- preRollQueue: new PreRollLane({
5792
- capacity: this.config.maxPreRollQueueDepth ?? 12,
5793
- clone: ownDetectionEntry,
5794
- dispose: (entry) => {
5795
- if (entry.handle) this.config.releaseRetention?.(entry.handle, "drop");
5796
- if (entry.frame.frameRef) this.config.releaseFrameRef?.(entry.frame.frameRef, "drop");
5797
- }
5798
- }),
5806
+ preRollQueue,
5799
5807
  inferenceTimes: [],
5800
5808
  shedFrames: 0,
5801
5809
  inflight: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-pipeline",
3
- "version": "1.2.237",
3
+ "version": "1.2.238",
4
4
  "description": "Pipeline bundle — runner, detection, motion, audio + stream broker. Multi-entry npm package shipping pipeline addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",