@camstack/addon-pipeline 1.0.7 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/audio-analyzer/index.js +7 -8
  2. package/dist/audio-analyzer/index.mjs +3 -4
  3. package/dist/audio-codec-nodeav/index.js +2 -2
  4. package/dist/audio-codec-nodeav/index.mjs +2 -2
  5. package/dist/decoder-nodeav/index.js +1 -1
  6. package/dist/decoder-nodeav/index.mjs +1 -1
  7. package/dist/detection-pipeline/index.js +862 -696
  8. package/dist/detection-pipeline/index.mjs +850 -684
  9. package/dist/{dist-CjrjeaDd.mjs → dist-BA6DR_jV.mjs} +128 -5
  10. package/dist/{dist-G45MVm6i.js → dist-BLcTVvol.js} +151 -4
  11. package/dist/{model-download-service-C7AjBsX9-rXY-VFDk.js → model-download-service-RxAOiYvX-C8rTRJy_.js} +36 -6
  12. package/dist/{model-download-service-C7AjBsX9-B0ekM6dF.mjs → model-download-service-RxAOiYvX-CMAvhgO7.mjs} +36 -6
  13. package/dist/motion-wasm/index.js +1 -1
  14. package/dist/motion-wasm/index.mjs +1 -1
  15. package/dist/pipeline-runner/index.js +1 -1
  16. package/dist/pipeline-runner/index.mjs +1 -1
  17. package/dist/recorder/index.js +6 -6
  18. package/dist/recorder/index.mjs +4 -4
  19. package/dist/stream-broker/_stub.js +1 -1
  20. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Tbqpu0v3.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-DrohyZ5L.mjs} +3 -3
  21. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-COa17XL2.mjs +26 -0
  22. package/dist/stream-broker/{hostInit-tIev5Gd9.mjs → hostInit-zLZbYJcg.mjs} +3 -3
  23. package/dist/stream-broker/index.js +26 -26
  24. package/dist/stream-broker/index.mjs +20 -20
  25. package/dist/stream-broker/remoteEntry.js +1 -1
  26. package/embed-dist/assets/{MaskShapeCanvas-DI4BY7W2-C0kKwNX_.js → MaskShapeCanvas-DI4BY7W2-DJ7ztnFv.js} +1 -1
  27. package/embed-dist/assets/MotionZonesSettings-NcxxQN8r-CQzEnQoq.js +1 -0
  28. package/embed-dist/assets/{PrivacyMaskSettings-APgPLF7p-C2SRtNe6.js → PrivacyMaskSettings-APgPLF7p-Cl0eOy_U.js} +1 -1
  29. package/embed-dist/assets/{index-B2LRyXWh.js → index-CSuLwWK-.js} +3 -3
  30. package/embed-dist/index.html +1 -1
  31. package/package.json +1 -1
  32. package/python/inference_pool.py +65 -6
  33. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DCsgcqTa.mjs +0 -26
  34. package/embed-dist/assets/MotionZonesSettings-C1EEbk2V-CYtJc892.js +0 -1
@@ -2,12 +2,12 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_model_download_service_C7AjBsX9 = require("../model-download-service-C7AjBsX9-rXY-VFDk.js");
6
- const require_dist = require("../dist-G45MVm6i.js");
5
+ const require_model_download_service_RxAOiYvX = require("../model-download-service-RxAOiYvX-C8rTRJy_.js");
6
+ const require_dist = require("../dist-BLcTVvol.js");
7
7
  let node_fs = require("node:fs");
8
- node_fs = require_model_download_service_C7AjBsX9.__toESM(node_fs);
8
+ node_fs = require_model_download_service_RxAOiYvX.__toESM(node_fs);
9
9
  let node_path = require("node:path");
10
- node_path = require_model_download_service_C7AjBsX9.__toESM(node_path);
10
+ node_path = require_model_download_service_RxAOiYvX.__toESM(node_path);
11
11
  //#region src/audio-analyzer/audio-pipeline.ts
12
12
  /**
13
13
  * Create the appropriate audio pipeline.
@@ -82,7 +82,7 @@ var YamnetPythonPipeline = class {
82
82
  url: YAMNET_MODEL_URL,
83
83
  dest: modelPath
84
84
  } });
85
- await require_model_download_service_C7AjBsX9.downloadFile(YAMNET_MODEL_URL, modelPath);
85
+ await require_model_download_service_RxAOiYvX.downloadFile(YAMNET_MODEL_URL, modelPath);
86
86
  this.log.info("YAMNet ONNX model downloaded", { meta: { sizeBytes: node_fs.statSync(modelPath).size } });
87
87
  }
88
88
  if (!node_fs.existsSync(labelsPath)) {
@@ -90,7 +90,7 @@ var YamnetPythonPipeline = class {
90
90
  url: YAMNET_LABELS_URL,
91
91
  dest: labelsPath
92
92
  } });
93
- await require_model_download_service_C7AjBsX9.downloadFile(YAMNET_LABELS_URL, labelsPath);
93
+ await require_model_download_service_RxAOiYvX.downloadFile(YAMNET_LABELS_URL, labelsPath);
94
94
  }
95
95
  const pythonDir = resolveAudioPythonDir();
96
96
  if (this.installPythonRequirements) await this.installPythonRequirements(node_path.join(pythonDir, "requirements-audio.txt"));
@@ -778,10 +778,9 @@ var AudioAnalyzerAddon = class extends require_dist.BaseAddon {
778
778
  if (!this.config.probedBestAudioBackend) this.reprobeAudioEngine().catch((err) => {
779
779
  logger.warn("audio: auto-reprobe failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
780
780
  });
781
- const self = this;
782
781
  const deviceSettingsResolver = async (deviceId) => {
783
782
  try {
784
- const stepSettings = (await self.ctx.api.pipelineOrchestrator.resolvePipeline.query({ deviceId })).audio?.settings ?? {};
783
+ const stepSettings = (await this.ctx.api.pipelineOrchestrator.resolvePipeline.query({ deviceId })).audio?.settings ?? {};
785
784
  return {
786
785
  minConfidence: typeof stepSettings["minConfidence"] === "number" ? stepSettings["minConfidence"] : .3,
787
786
  allowedClasses: Array.isArray(stepSettings["enabledAudioClasses"]) ? stepSettings["enabledAudioClasses"] : []
@@ -1,6 +1,6 @@
1
1
  import { t as __require } from "../chunk-BdkLduGY.mjs";
2
- import { F as errMsg, I as BaseAddon, T as mapAudioLabelToMacro, W as hydrateSchema, g as audioAnalyzerCapability, h as audioAnalysisCapability, l as HF_BASE_URL, n as AUDIO_BACKEND_CHOICES, o as DEFAULT_AUDIO_ANALYZER_CONFIG } from "../dist-CjrjeaDd.mjs";
3
- import { r as downloadFile } from "../model-download-service-C7AjBsX9-B0ekM6dF.mjs";
2
+ import { B as BaseAddon, E as mapAudioLabelToMacro, J as hydrateSchema, g as audioAnalyzerCapability, h as audioAnalysisCapability, l as HF_BASE_URL, n as AUDIO_BACKEND_CHOICES, o as DEFAULT_AUDIO_ANALYZER_CONFIG, z as errMsg } from "../dist-BA6DR_jV.mjs";
3
+ import { r as downloadFile } from "../model-download-service-RxAOiYvX-CMAvhgO7.mjs";
4
4
  import * as fs from "node:fs";
5
5
  import * as path$1 from "node:path";
6
6
  //#region src/audio-analyzer/audio-pipeline.ts
@@ -773,10 +773,9 @@ var AudioAnalyzerAddon = class extends BaseAddon {
773
773
  if (!this.config.probedBestAudioBackend) this.reprobeAudioEngine().catch((err) => {
774
774
  logger.warn("audio: auto-reprobe failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
775
775
  });
776
- const self = this;
777
776
  const deviceSettingsResolver = async (deviceId) => {
778
777
  try {
779
- const stepSettings = (await self.ctx.api.pipelineOrchestrator.resolvePipeline.query({ deviceId })).audio?.settings ?? {};
778
+ const stepSettings = (await this.ctx.api.pipelineOrchestrator.resolvePipeline.query({ deviceId })).audio?.settings ?? {};
780
779
  return {
781
780
  minConfidence: typeof stepSettings["minConfidence"] === "number" ? stepSettings["minConfidence"] : .3,
782
781
  allowedClasses: Array.isArray(stepSettings["enabledAudioClasses"]) ? stepSettings["enabledAudioClasses"] : []
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-G45MVm6i.js");
5
+ const require_dist = require("../dist-BLcTVvol.js");
6
6
  const require_codec_runtime = require("../codec-runtime-BOk-13PN.js");
7
7
  let node_crypto = require("node:crypto");
8
8
  //#region src/audio-codec-nodeav/addon/index.ts
@@ -87,7 +87,7 @@ var AudioCodecNodeAvAddon = class extends require_dist.BaseAddon {
87
87
  clearInterval(this.reaperTimer);
88
88
  this.reaperTimer = null;
89
89
  }
90
- for (const s of [...this.sessions.values()]) this.disposeSession(s);
90
+ for (const s of this.sessions.values()) this.disposeSession(s);
91
91
  this.sessions.clear();
92
92
  }
93
93
  async listSupportedCodecs() {
@@ -1,4 +1,4 @@
1
- import { F as errMsg, I as BaseAddon, _ as audioCodecCapability } from "../dist-CjrjeaDd.mjs";
1
+ import { B as BaseAddon, _ as audioCodecCapability, z as errMsg } from "../dist-BA6DR_jV.mjs";
2
2
  import { t as DecodeRuntime } from "../codec-runtime-BsqlEjPi.mjs";
3
3
  import { randomUUID } from "node:crypto";
4
4
  //#region src/audio-codec-nodeav/addon/index.ts
@@ -83,7 +83,7 @@ var AudioCodecNodeAvAddon = class extends BaseAddon {
83
83
  clearInterval(this.reaperTimer);
84
84
  this.reaperTimer = null;
85
85
  }
86
- for (const s of [...this.sessions.values()]) this.disposeSession(s);
86
+ for (const s of this.sessions.values()) this.disposeSession(s);
87
87
  this.sessions.clear();
88
88
  }
89
89
  async listSupportedCodecs() {
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-G45MVm6i.js");
5
+ const require_dist = require("../dist-BLcTVvol.js");
6
6
  let _camstack_shm_ring = require("@camstack/shm-ring");
7
7
  let node_crypto = require("node:crypto");
8
8
  //#region src/decoder-nodeav/frame-ring-sink.ts
@@ -1,4 +1,4 @@
1
- import { F as errMsg, I as BaseAddon, b as decoderCapability, f as RingBuffer, s as DEFAULT_DECODER_HWACCEL_CONFIG, u as HWACCEL_OPTIONS } from "../dist-CjrjeaDd.mjs";
1
+ import { B as BaseAddon, b as decoderCapability, f as RingBuffer, s as DEFAULT_DECODER_HWACCEL_CONFIG, u as HWACCEL_OPTIONS, z as errMsg } from "../dist-BA6DR_jV.mjs";
2
2
  import { FrameRingReaderCache, FrameRingWriter, MIN_RING_SLOTS, computeSegmentSize, computeSlotByteLength, createSegment, deriveSlotCount } from "@camstack/shm-ring";
3
3
  import { randomUUID } from "node:crypto";
4
4
  //#region src/decoder-nodeav/frame-ring-sink.ts